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

enable debug in config

parent 772e54ae
No related branches found
No related tags found
1 merge request!26621 update to php82
......@@ -27,4 +27,7 @@ return array(
// allow directory listing when accessing a path of a package
// true is required to fetch all packages
'showdircontent'=>true,
// Enable for troubleshooting
'debug'=>false,
);
\ No newline at end of file
......@@ -10,7 +10,7 @@
* ======================================================================
*/
$bDebug=false;
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
......@@ -18,6 +18,7 @@
require_once('../inc_functions.php');
$aConfig=require_once("../inc_config.php");
$bDebug=isset($aConfig['debug']) && $aConfig['debug'] ? true : false;
$lockfile=$aConfig['tmpdir'].'/used_hashes.txt';
$iMaxAge=$aConfig['maxage'];
......@@ -26,9 +27,9 @@
// MAIN
// ----------------------------------------------------------------------
_wd('Start: '.date('Y-m-d H:i:s').'<style>body{background:#eee; color:#456;}
.debug{background:#ddd; margin-bottom: 2px;}
</style>');
// _wd('Start: '.date('Y-m-d H:i:s').'<style>body{background:#eee; color:#456;}
// .debug{background:#ddd; margin-bottom: 2px;}
// </style>');
_wd('request uri is '.$_SERVER["REQUEST_URI"]);
_wd('<pre>GET: '.print_r($_GET, 1).'</pre>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment