mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 18:37:31 +08:00
fix downloadsubs.php
This commit is contained in:
@@ -22,7 +22,7 @@ if (!$arr)
|
||||
die("Not found\n");
|
||||
|
||||
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))
|
||||
die("File not found\n");
|
||||
|
||||
Reference in New Issue
Block a user