function loadIncludeOnce ($INC) {
// Is it not loaded?
if (!isset($GLOBALS['load_once'][$INC])) {
+ // Mark it as loaded
+ $GLOBALS['load_once'][$INC] = "loaded";
+
// Then try to load it
loadInclude($INC);
-
- // And mark it as loaded
- $GLOBALS['load_once'][$INC] = "loaded";
} // END - if
}
// Check wether this script is installed
function isInstalled () {
- return (getConfig('MXCHANGE_INSTALLED') == 'Y');
+ return ((getConfig('MXCHANGE_INSTALLED') == 'Y') || (isIncludeReadable('inc/cache/config-local.php')));
}
// Check wether an admin is registered
return countSelection(REQUEST_POST('sel'));
}
+// Checks wether the config-local.php is loaded
+function isConfigLocalLoaded () {
+ return ((isset($GLOBALS['config_local_loaded'])) && ($GLOBALS['config_local_loaded'] === true));
+}
+
// [EOF]
?>