Skip to content
Snippets Groups Projects
Commit 1bcedabb authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

debug now driven by config

parent 1519af6b
No related branches found
No related tags found
1 merge request!26621 update to php82
......@@ -6,7 +6,8 @@
* GET /packages/[phase]/[ID]/[filename]
*
* ----------------------------------------------------------------------
* 2021-03-31 v0.0 <axel.hahn@iml.unibe.ch> init
* 2021-03-31 v1.0 <axel.hahn@iml.unibe.ch> init
* 2023-09-15 v1.1 <axel.hahn@unibe.ch> debug now driven by config
* ======================================================================
*/
......@@ -16,9 +17,9 @@
error_reporting(E_ALL);
require_once('../inc_functions.php');
$aConfig=require_once("../inc_config.php");
$aConfig=require_once("../inc_config.php");
$bDebug=(isset($aConfig['debug']) && $aConfig['debug']) ? true : false;
$bDebug=isset($aConfig['debug']) && $aConfig['debug'] ? true : false;
$lockfile=$aConfig['tmpdir'].'/used_hashes.txt';
$iMaxAge=$aConfig['maxage'];
......@@ -78,7 +79,7 @@
if (!file_exists($sMyFile)){
_quit('File not found.', 404);
}
_wd('file exists send X-Sendfile header...');
// let the webserver deliver a given file
header('X-Sendfile: ' . $sMyFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment