/************************************************************************ ||------------|| User passkey history page ||--------------------------|| This page lists previous passkeys a user has used on the site. It gets called if $_GET['action'] == 'passkey'. It also requires $_GET['userid'] in order to get the data for the correct user. ************************************************************************/ if(!check_perms('users_view_keys')) { error(403); } $UserID = $_GET['userid']; if (!is_number($UserID)) { error(404); } $DB->query("SELECT UserName FROM users_main WHERE ID = $UserID"); list($Username) = $DB->next_record(); show_header("PassKey history for $Username"); $DB->query("SELECT OldPassKey, NewPassKey, ChangeTime, ChangerIP FROM users_history_passkeys WHERE UserID=$UserID ORDER BY ChangeTime DESC"); ?>
Old | New | Changed | IP [H] |
=display_str($OldPassKey)?> | =display_str($NewPassKey)?> | =time_diff($ChangeTime)?> | =display_str($ChangerIP)?> [S] =display_str(gethostbyip($ChangerIP))?> |