data['logfile'] = $logfile; $this->enable = false; } function log($str) { if ($str != "" AND $this->enable) { $fp = fopen($this->data['logfile'],"a+"); fputs($fp,date("d.m.Y H:i ").$_SESSION['USMG']['NAME']."(".$_SESSION['USMG']['ROLE'].") : ".$str."\n"); fclose($fp); } } function log_normal($str) { if ($str != "" AND $this->enable) { $fp = fopen($this->data['logfile'],"a+"); fputs($fp,$str."\n"); fclose($fp); } } } ?>