Empty commit

This commit is contained in:
Git 2012-06-20 08:00:14 +00:00
parent ab2daf37f0
commit f3a1cc184e

View File

@ -4,6 +4,7 @@
$TorrentPass = $LoggedUser['torrent_pass'];
$DownloadAlt = $LoggedUser['DownloadAlt'];
$UserID = $LoggedUser['ID'];
$AuthKey = $LoggedUser['AuthKey'];
} else {
$UserInfo = $Cache->get_value('user_'.$_REQUEST['torrent_pass']);
if(!is_array($UserInfo)) {
@ -21,13 +22,14 @@
list($UserID,$DownloadAlt)=array_shift($UserInfo);
if(!$UserID) { error(403); }
$TorrentPass = $_REQUEST['torrent_pass'];
$AuthKey = $_REQUEST['authkey'];
}
require(SERVER_ROOT.'/classes/class_torrent.php');
$TorrentID = $_REQUEST['id'];
$uih = user_heavy_info($UserID);
if ($_REQUEST['authkey'] != $uih['AuthKey']) {
if ($AuthKey != $uih['AuthKey']) {
error(403);
die;