print("<pre>");
debug_print_backtrace();
die("</pre>URL={$URL}");
- /**/
+ */
@header ("Location: ".str_replace("&", "&", $URL));
} else {
// Output error message
// In cache?
if (isset($constCache[$constName])) {
// Use cache
+ //* DEBUG: */ echo __FUNCTION__.": ".$constName."-CACHE!<br />\n";
$res = $constCache[$constName];
} else {
// Check constant
+ //* DEBUG: */ echo __FUNCTION__.": ".$constName."-RESOLVE!<br />\n";
if (defined($constName)) $res = (constant($constName) === true);
// Set cache
$constCache[$constName] = $res;
}
+ //* DEBUG: */ var_dump($res);
// Return value
return $res;
die("</pre>");
}
// Debug message logger
-function DEBUG_LOG ($message) {
+function DEBUG_LOG ($message, $force=false) {
// Is debug mode enabled?
- if (isBooleanConstantAndTrue('DEBUG_MODE')) {
+ if ((isBooleanConstantAndTrue('DEBUG_MODE')) || ($force)) {
// Log this message away
$fp = fopen(PATH."inc/cache/debug.log", 'a') or mxchange_die("Cannot write logfile debug.log!");
fwrite($fp, date("d.m.Y|H:i:s", time())."|{$message}\n");