// Check for cache extension, cache-array and if the requested configuration is in cache
if ((isset($GLOBALS['cache_array'])) && (is_array($GLOBALS['cache_array'])) && (isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {
// Load config from cache
- //* DEBUG: */ echo gettype($GLOBALS['cache_array']['config'][$no])."<br />\n";
+ //* DEBUG: */ OUTPUT_HTML(gettype($GLOBALS['cache_array']['config'][$no])."<br />");
foreach ($GLOBALS['cache_array']['config'][$no] as $key => $value) {
setConfigEntry($key, $value);
} // END - foreach
// Is the line found?
if ((substr($line, 0, strlen($old)) == $old) && (!isset($done[$old]))) {
// Entry found!
- //* DEBUG: */ print htmlentities($line) . " - FOUND!<br />\n";
+ //* DEBUG: */ OUTPUT_HTML(htmlentities($line) . " - FOUND!<br />");
// Eval the line...
eval($line);
} // END - if
/// ... and write it to the new config
- //* DEBUG: */ print 'function=' . $function . ',new=' . $new . ',comment=' . $comment . "<br />\n";
+ //* DEBUG: */ OUTPUT_HTML('function=' . $function . ',new=' . $new . ',comment=' . $comment . "<br />");
changeDataInFile(constant('PATH') . 'inc/cache/config-local.php', $comment, $function . "('" . $oldNew . "', \"", "\");", constant($new), 0);
- //* DEBUG: */ print "CHANGED!<br />\n";
+ //* DEBUG: */ OUTPUT_HTML("CHANGED!<br />");
// Mark it as done
$done[$old] = 1;
}
// Debug output only
- //* DEBUG: */ print htmlentities($line) . " - MySQL!<br />\n";
+ //* DEBUG: */ OUTPUT_HTML(htmlentities($line) . " - MySQL!<br />");
// Split parts so we can check them and prepare them
$parts = explode('=>', $line);