View file system/inc/classes/log.class.php

File size: 479B
<?
class log_class {


    public static function log_system($title, $mod = 'shcms') {

        $log_time = $timedate->times(time());
        $log_files = basename($mod). '.log';

            if($loging = @fopen($log_files,'a')) {
                return false;
            }
        $cont = "\r\n(".$log_times.') '. $text;
            if(!@fwrite($loging, $cont)) {
                return false;
            } 
            fclose($loging);
        return true;
    }





}



?>