Empty commit

This commit is contained in:
Git 2012-02-01 08:00:25 +00:00
parent 22c29ba0e1
commit ea11c1a88d
2 changed files with 6 additions and 1 deletions

View File

@ -272,7 +272,8 @@
$OldPassKey = db_string($LoggedUser['torrent_pass']);
$UserInfo = user_heavy_info($UserID);
$OldPassKey = db_string($UserInfo['torrent_pass']);
$NewPassKey = db_string(make_secret());
$ChangerIP = db_string($LoggedUser['IP']);
$SQL.=",m.torrent_pass='$NewPassKey'";

View File

@ -540,6 +540,10 @@
$HeavyUpdates['torrent_pass']=$Passkey;
$Cache->delete_value('user_'.$Cur['torrent_pass']);
//MUST come after the case for updating can_leech.
$DB->query("INSERT INTO users_history_passkeys
(UserID, OldPassKey, NewPassKey, ChangerIP, ChangeTime) VALUES
('$UserID', '".$Cur['torrent_pass']."', '$Passkey', '0.0.0.0', '".sqltime()."')");
update_tracker('change_passkey', array('oldpasskey' => $Cur['torrent_pass'], 'newpasskey' => $Passkey));
}