mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix downloadsubs.php
This commit is contained in:
@@ -22,7 +22,7 @@ if (!$arr)
|
|||||||
die("Not found\n");
|
die("Not found\n");
|
||||||
|
|
||||||
sql_query("UPDATE subs SET hits=hits+1 WHERE id=$filename") or sqlerr(__FILE__, __LINE__);
|
sql_query("UPDATE subs SET hits=hits+1 WHERE id=$filename") or sqlerr(__FILE__, __LINE__);
|
||||||
$file = "$SUBSPATH/$dirname/$filename.$arr[ext]";
|
$file = ROOT_PATH . "$SUBSPATH/$dirname/$filename.$arr[ext]";
|
||||||
|
|
||||||
if (!is_file($file))
|
if (!is_file($file))
|
||||||
die("File not found\n");
|
die("File not found\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user