diff options
author | Git <git@what.cd> | 2015-09-11 08:00:26 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2015-09-11 08:00:26 +0000 |
commit | 4dfca978c8397147a7c7cfdf33ce81b81dbff01c (patch) | |
tree | 013e1d0cda621a72076177910c44a9d8abbf5ded | |
parent | bbca29d141747901e0aedecb95cbc77376e4dcf1 (diff) | |
download | Gazelle-4dfca978c8397147a7c7cfdf33ce81b81dbff01c.zip Gazelle-4dfca978c8397147a7c7cfdf33ce81b81dbff01c.tar.gz Gazelle-4dfca978c8397147a7c7cfdf33ce81b81dbff01c.tar.bz2 |
Empty commit
-rw-r--r-- | sections/user/takemoderate.php | 4 | ||||
-rw-r--r-- | sections/userhistory/ip_history.php | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sections/user/takemoderate.php b/sections/user/takemoderate.php index 638c7c1..d7538ee 100644 --- a/sections/user/takemoderate.php +++ b/sections/user/takemoderate.php @@ -212,6 +212,10 @@ if ($_POST['ResetIPHistory'] && check_perms('users_edit_reset_keys')) { UPDATE users_history_passkeys SET ChangerIP = '' WHERE UserID = $UserID"); + $DB->query(" + UPDATE users_sessions + SET IP = '127.0.0.1' + WHERE UserID = $UserID"); $EditSummary[] = 'IP history cleared'; } diff --git a/sections/userhistory/ip_history.php b/sections/userhistory/ip_history.php index 20d53d5..da1c3aa 100644 --- a/sections/userhistory/ip_history.php +++ b/sections/userhistory/ip_history.php @@ -121,6 +121,7 @@ if ($UsersOnly) { LIMIT $Limit"); } + if (isset($QueryID)) { $DB->query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); @@ -172,13 +173,15 @@ $Pages = Format::get_pages($Page, $NumResults, IPS_PER_PAGE, 9); <div class="header"> <h2>IP address history for <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2> <div class="linkbox"> -<? if ($UsersOnly) { ?> +<? +if ($UsersOnly) { ?> <a href="userhistory.php?<?=Format::get_url(array('usersonly'))?>" class="brackets">View all IP addresses</a> <? } else { ?> <a href="userhistory.php?<?=Format::get_url()?>&usersonly=1" class="brackets">View IP addresses with users</a> <? } ?> </div> -<? if ($Pages) { ?> +<? + if ($Pages) { ?> <div class="linkbox pager"><?=$Pages?></div> <? } ?> </div> |