1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Fixes for user audit log and rolling log. Removed some debug information from logs. Corrected bounce-handler line-ending encoding (could cause the following PHP error "Error in argument 1, char 3: option not found ")

This commit is contained in:
Cameron
2015-05-21 12:37:44 -07:00
parent 97ac03e9aa
commit e28997f420
6 changed files with 969 additions and 951 deletions

View File

@@ -303,7 +303,7 @@ class e_admin_log
'dblog_remarks' => $explain
);
$this->rldb->db_Insert("admin_log", $adminLogInsert);
$this->rldb->insert("admin_log", $adminLogInsert);
}
//---------------------------------------
@@ -360,10 +360,14 @@ class e_admin_log
// else $source_call is a string
// Save new rolling log record
$this->rldb->db_Insert("dblog", "0, ".intval($time_sec).', '.intval($time_usec).", '{$importance}', '{$eventcode}', {$userid}, '{$userstring}', '{$userIP}', '{$source_call}', '{$event_title}', '{$explain}' ");
$this->rldb->insert("dblog", "0, ".intval($time_sec).', '.intval($time_usec).", '{$importance}', '{$eventcode}', {$userid}, '{$userstring}', '{$userIP}', '{$source_call}', '{$event_title}', '{$explain}' ");
// Now delete any old stuff
$this->rldb->db_Delete("dblog", "dblog_datestamp < '".intval(time() - (varset($pref['roll_log_days'], 7) * 86400))."' ");
if(!empty($pref['roll_log_days']))
{
$days = intval($pref['roll_log_days']);
$this->rldb->delete("dblog", "dblog_datestamp < '".intval(time() - ($days * 86400))."' ");
}
}
if ($finished)