mirror of
https://github.com/e107inc/e107.git
synced 2025-10-21 17:56:07 +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:
@@ -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)
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -17,8 +17,9 @@
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
define ('CRON_MAIL_DEBUG', TRUE);
|
||||
define ('CRON_RETRIGGER_DEBUG', TRUE);
|
||||
define ('CRON_MAIL_DEBUG', false);
|
||||
define ('CRON_RETRIGGER_DEBUG', false);
|
||||
|
||||
class _system_cron
|
||||
{
|
||||
|
||||
|
@@ -1032,7 +1032,8 @@ class e107MailManager
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::getAdminLog()->addDebug("Couldn't select emails", true);
|
||||
|
||||
// e107::getAdminLog()->addDebug("Couldn't select emails", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user