69 $args = func_get_args();
70 $this->param=array_slice($args, 2);
76 $this->param=
"Error # $error in Class $clsid, Value is $param. (sorry, no text for this error in your language at the moment)";
93 if (is_string($this->error)) {
95 $str = $this->error.
"\n";
98 $str = _(
"err_".$this->clsid.
"_".$this->error).
"\n";
101 if (is_array($args)) {
102 array_unshift($args, $str);
103 $msg = call_user_func_array(
"sprintf", $args);
120 @file_put_contents($this->logfile, date(
"d/m/Y H:i:s").
" - ERROR - ".$mem->user[
"login"].
" - ".$this->errstr(), FILE_APPEND );
137 return @file_put_contents($this->logfile,date(
"d/m/Y H:i:s").
" - " .
get_remote_ip().
" - CALL - ".$mem->user[
"login"].
" - $clsid - $function - $param\n", FILE_APPEND );