Empty commit

This commit is contained in:
Git 2015-09-11 08:00:26 +00:00
parent bbca29d141
commit 4dfca978c8
2 changed files with 9 additions and 2 deletions

View File

@ -212,6 +212,10 @@
UPDATE users_history_passkeys UPDATE users_history_passkeys
SET ChangerIP = '' SET ChangerIP = ''
WHERE UserID = $UserID"); WHERE UserID = $UserID");
$DB->query("
UPDATE users_sessions
SET IP = '127.0.0.1'
WHERE UserID = $UserID");
$EditSummary[] = 'IP history cleared'; $EditSummary[] = 'IP history cleared';
} }

View File

@ -121,6 +121,7 @@ function UnBan(ip, id, elemID) {
LIMIT $Limit"); LIMIT $Limit");
} }
if (isset($QueryID)) { if (isset($QueryID)) {
$DB->query('SELECT FOUND_ROWS()'); $DB->query('SELECT FOUND_ROWS()');
list($NumResults) = $DB->next_record(); list($NumResults) = $DB->next_record();
@ -172,13 +173,15 @@ function UnBan(ip, id, elemID) {
<div class="header"> <div class="header">
<h2>IP address history for <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2> <h2>IP address history for <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2>
<div class="linkbox"> <div class="linkbox">
<? if ($UsersOnly) { ?> <?
if ($UsersOnly) { ?>
<a href="userhistory.php?<?=Format::get_url(array('usersonly'))?>" class="brackets">View all IP addresses</a> <a href="userhistory.php?<?=Format::get_url(array('usersonly'))?>" class="brackets">View all IP addresses</a>
<? } else { ?> <? } else { ?>
<a href="userhistory.php?<?=Format::get_url()?>&amp;usersonly=1" class="brackets">View IP addresses with users</a> <a href="userhistory.php?<?=Format::get_url()?>&amp;usersonly=1" class="brackets">View IP addresses with users</a>
<? } ?> <? } ?>
</div> </div>
<? if ($Pages) { ?> <?
if ($Pages) { ?>
<div class="linkbox pager"><?=$Pages?></div> <div class="linkbox pager"><?=$Pages?></div>
<? } ?> <? } ?>
</div> </div>