mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
#370 - Added some debug info which may help
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
require_once("../../class2.php");
|
require_once("../../class2.php");
|
||||||
|
|
||||||
include_lan(e_PLUGIN."download/languages/".e_LANGUAGE."/download.php");
|
include_lan(e_PLUGIN."download/languages/".e_LANGUAGE."/download.php");
|
||||||
|
$log = e107::getAdminLog(); // temporary debug
|
||||||
$id = FALSE;
|
$id = FALSE;
|
||||||
|
|
||||||
if (!is_numeric(e_QUERY))
|
if (!is_numeric(e_QUERY))
|
||||||
@@ -205,6 +205,9 @@ if ($type == "file")
|
|||||||
e107::getFile()->send(e_UPLOAD.$download_url);
|
e107::getFile()->send(e_UPLOAD.$download_url);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
$log->addError("Couldn't find ".e_UPLOAD.$download_url." or ".e_DOWNLOAD.$download_url);
|
||||||
|
$log->toFile('download_requests','Download Requests', true); // temporary debug
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -317,7 +320,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$log->toFile('download_requests','Download Requests', true); // temporary debug
|
||||||
|
|
||||||
function check_download_limits()
|
function check_download_limits()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user