$GLOBALS['is_installed'] = (
(
// First is config
- getConfig('MXCHANGE_INSTALLED') == 'Y'
+ (
+ (
+ isConfigEntrySet('MXCHANGE_INSTALLED')
+ ) && (
+ getConfig('MXCHANGE_INSTALLED') == 'Y'
+ )
+ )
) || (
// New config file found and loaded
isIncludeReadable(getConfig('CACHE_PATH') . 'config-local.php')
// Check wether an admin is registered
function isAdminRegistered () {
- return (getConfig('ADMIN_REGISTERED') == 'Y');
+ return ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y'));
}
// Checks wether the reset mode is active
// Checks wether the debug mode is enabled
function isDebugModeEnabled () {
// Simply check it
- return (getConfig('DEBUG_MODE') == 'Y');
+ return ((isConfigEntrySet('DEBUG_MODE')) && (getConfig('DEBUG_MODE') == 'Y'));
}
// Checks wether we shall debug regular expressions
function isDebugRegExpressionEnabled () {
// Simply check it
- return (getConfig('DEBUG_REGEX') == 'Y');
+ return ((isConfigEntrySet('DEBUG_REGEX')) && (getConfig('DEBUG_REGEX') == 'Y'));
}
// Checks wether the cache instance is valid
// Should we abort here?
if (($abortOnMiss === true) && ($isset === false)) {
// Output backtrace
- print '<pre>';
+ print 'Module not set!<pre>';
debug_print_backtrace();
die('</pre');
debug_report_bug('module is empty.');
// Wrapper function for checking if extension is installed and newer or same version
function isExtensionInstalledAndNewer ($ext_name, $version) {
// Return it
+ //* DEBUG: */ print __FUNCTION__.':'.$ext_name.'=>'.$version.'<br />';
return ((isExtensionInstalled($ext_name)) && (getExtensionVersion($ext_name) >= $version));
}
// Wrapper function for checking if extension is installed and older than given version
function isExtensionInstalledAndOlder ($ext_name, $version) {
// Return it
+ //* DEBUG: */ print __FUNCTION__.':'.$ext_name.'<'.$version.'<br />';
return ((isExtensionInstalled($ext_name)) && (isExtensionOlder($ext_name, $version)));
}