mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix bugs
This commit is contained in:
@@ -15,21 +15,18 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
if ($hidenotice){
|
||||
sql_query("UPDATE users SET showdlnotice=0 WHERE id=".sqlesc($CURUSER['id']));
|
||||
}
|
||||
header("Location: " . get_protocol_prefix() . "$BASEURL/download.php?id=".$torrentid."&letdown=1");
|
||||
die;
|
||||
nexus_redirect(getSchemeAndHttpHost(). "/download.php?id=".$torrentid."&letdown=1");
|
||||
}
|
||||
elseif ($type == 'client')
|
||||
{
|
||||
if ($hidenotice){
|
||||
sql_query("UPDATE users SET showclienterror='no' WHERE id=".sqlesc($CURUSER['id']));
|
||||
}
|
||||
header("Location: " . get_protocol_prefix() . "$BASEURL/download.php?id=".$torrentid."&letdown=1");
|
||||
die;
|
||||
nexus_redirect(getSchemeAndHttpHost() . "/download.php?id=".$torrentid."&letdown=1");
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: " . get_protocol_prefix() . "$BASEURL/download.php?id=".$torrentid."&letdown=1");
|
||||
die;
|
||||
nexus_redirect(getSchemeAndHttpHost() . "/download.php?id=".$torrentid."&letdown=1");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user