diff -r 49dee7f374bf -r 16b5b89c8055 plugins/admin/SecurityLog.php --- a/plugins/admin/SecurityLog.php Tue Jul 22 17:05:59 2008 -0500 +++ b/plugins/admin/SecurityLog.php Tue Jul 22 17:06:29 2008 -0500 @@ -68,6 +68,8 @@ function get_security_log($num = false) { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; + 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\',' . time() . ',"' . $db->escape($_SERVER['REMOTE_ADDR']) . '","' . $db->escape($session->username) . '");'); @@ -78,7 +80,7 @@ $return = '
Type | Date | Username | IP Address |
---|---|---|---|
' . $lang->get('acpsl_col_type') . ' | ' . $lang->get('acpsl_col_date') . ' | ' . $lang->get('acpsl_col_username') . ' | ' . $lang->get('acpsl_col_ip') . ' |