/************************************************************************ ||------------|| Password reset history page ||------------------------|| This page lists password reset IP and Times a user has made on the site. It gets called if $_GET['action'] == 'password'. It also requires $_GET['userid'] in order to get the data for the correct user. ************************************************************************/ $UserID = $_GET['userid']; if (!is_number($UserID)) { error(404); } $DB->query("SELECT um.Username, p.Level AS Class FROM users_main AS um LEFT JOIN permissions AS p ON p.ID=um.PermissionID WHERE um.ID = ".$UserID); list($Username, $Class) = $DB->next_record(); if(!check_perms('users_view_keys', $Class)) { error(403); } show_header("Password reset history for $Username"); $DB->query("SELECT ChangeTime, ChangerIP FROM users_history_passwords WHERE UserID=$UserID ORDER BY ChangeTime DESC"); ?>
Changed | IP [H] |
=time_diff($ChangeTime)?> | =display_str($ChangerIP)?> [S] =get_host($ChangerIP)?> |