// Check wether an admin is registered
function isAdminRegistered () {
// Is cache set?
- if (!isset($GLOBALS['is_admin_registered'])) {
+ if (!isset($GLOBALS[__FUNCTION__])) {
// Simply check it
- $GLOBALS['is_admin_registered'] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y'));
+ $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y'));
} // END - if
// Return it
- return $GLOBALS['is_admin_registered'];
+ return $GLOBALS[__FUNCTION__];
}
// Checks wether the reset mode is active
// Checks wether block-mode is enabled
function isBlockModeEnabled () {
// Abort if not set
- if (!isset($GLOBALS[__FUNCTION__])) {
+ if (!isset($GLOBALS['block_mode'])) {
// Needs to be fixed
debug_report_bug(__FUNCTION__, __LINE__, 'Block_mode is not set.');
} // END - if
// Return it
- return $GLOBALS[__FUNCTION__];
+ return $GLOBALS['block_mode'];
}
// Wrapper function for addPointsThroughReferalSystem()