diff -r 5d003b6c9e89 -r 40105681f495 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sat Jun 23 18:54:16 2007 -0400 +++ b/plugins/SpecialAdmin.php Sat Jun 23 19:27:41 2007 -0400 @@ -107,34 +107,45 @@ echo '
Type | Date | Username | IP Address |
---|---|---|---|
Logs are recorded but not displayed for privacy purposes in the demo. | |||
';
+ switch($r['action']) {
+ case "admin_auth_good": echo 'Successful elevated authentication'; if ( !empty($r['page_text']) ) { $level = $session->userlevel_to_string( intval($r['page_text']) ); echo " Authentication level: $level"; } break; + case "admin_auth_bad": echo 'Failed elevated authentication'; if ( !empty($r['page_text']) ) { $level = $session->userlevel_to_string( intval($r['page_text']) ); echo " Attempted auth level: $level"; } break; + case "activ_good": echo 'Successful account activation'; break; + case "auth_good": echo 'Successful regular user logon'; break; + case "activ_bad": echo 'Failed account activation'; break; + case "auth_bad": echo 'Failed regular user logon'; break; + case "sql_inject": echo 'SQL injection attempt Offending query: ' . htmlspecialchars($r['page_text']) . ' '; break;
+ case "db_backup": echo 'Database backup createdTables: ' . $r['page_text'] . ''; break; + case "install_enano": echo "Installed Enano version {$r['page_text']}"; break; + } + echo ' | '.date('d M Y h:i a', $r['time_id']).' | '.$r['author'].' | '.$r['edit_summary'].' |
';
- switch($r['action']) {
- case "admin_auth_good": echo 'Successful elevated authentication'; if ( !empty($r['page_text']) ) { $level = $session->userlevel_to_string( intval($r['page_text']) ); echo " Authentication level: $level"; } break; - case "admin_auth_bad": echo 'Failed elevated authentication'; if ( !empty($r['page_text']) ) { $level = $session->userlevel_to_string( intval($r['page_text']) ); echo " Attempted auth level: $level"; } break; - case "activ_good": echo 'Successful account activation'; break; - case "auth_good": echo 'Successful regular user logon'; break; - case "activ_bad": echo 'Failed account activation'; break; - case "auth_bad": echo 'Failed regular user logon'; break; - case "sql_inject": echo 'SQL injection attempt Offending query: ' . htmlspecialchars($r['page_text']) . ' '; break;
- case "db_backup": echo 'Database backup createdTables: ' . $r['page_text'] . ''; break; - case "install_enano": echo "Installed Enano version {$r['page_text']}"; break; - } - echo ' | '.date('d M Y h:i a', $r['time_id']).' | '.$r['author'].' | '.$r['edit_summary'].' |