plugins/admin/SecurityLog.php
changeset 320 112debff64bd
parent 166 d53cc29308f4
child 322 5f1cd51bf1be
--- a/plugins/admin/SecurityLog.php	Wed Dec 12 21:46:28 2007 -0500
+++ b/plugins/admin/SecurityLog.php	Sat Dec 15 18:10:14 2007 -0500
@@ -62,7 +62,7 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   if ( $session->auth_level < USER_LEVEL_ADMIN )
   {
-    $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,edit_summary,author) VALUES("security","seclog_unauth",UNIX_TIMESTAMP(),"' . $db->escape($_SERVER['REMOTE_ADDR']) . '","' . $db->escape($session->username) . '");');
+    $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,edit_summary,author) VALUES(\'security\',\'seclog_unauth\',' . time() . ',"' . $db->escape($_SERVER['REMOTE_ADDR']) . '","' . $db->escape($session->username) . '");');
     if ( !$q )
       $db->_die();
     die('Security log: unauthorized attempt to fetch. Call has been logged and reported to the administrators.');