mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix announce for directory change
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ else{
|
||||
|
||||
$res = sql_query("SELECT name, filename, save_as, size, owner,banned FROM torrents WHERE id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
|
||||
$row = mysql_fetch_assoc($res);
|
||||
$fn = "$torrent_dir/$id.torrent";
|
||||
$fn = ROOT_PATH . "$torrent_dir/$id.torrent";
|
||||
if ($CURUSER['downloadpos']=="no")
|
||||
permissiondenied();
|
||||
if (!$row || !is_file($fn) || !is_readable($fn))
|
||||
|
||||
Reference in New Issue
Block a user