// Loads an include file and logs any missing files for debug purposes
function LOAD_INC ($INC) {
- echo "LOAD:{$INC}<br />\n";
-
// Get constant path
$PATH = constant('PATH');
function LOAD_INC_ONCE ($INC) {
// Is it not loaded?
if (!isset($GLOBALS['cache_array']['load_once'][$INC])) {
- echo "ONCE:{$INC}<br />\n";
// Then try to load it
LOAD_INC($INC);
// And mark it as loaded
- $GLOBALS['cache_array']['load_once'][$INC] = true;
+ $GLOBALS['cache_array']['load_once'][$INC] = "loaded";
} // END - if
}