- case "admin_only":
- case "mem_only":
- case "done":
- // Does the module exists on local file system?
- if ((FILE_READABLE(constant('__MODULE'))) && (getTotalFatalErrors() == 0)) {
- // Module is valid, active and located on the local disc...
- $MOD_VALID = true;
- } elseif (!empty($URL)) {
- // An URL was specified so we load the de-referrer module
- LOAD_URL(DEREFERER($URL));
- } elseif (getTotalFatalErrors() == 0) {
- addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
- }
- break;
-
- case "404":
- addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
- break;
-
- case "locked":
- if (!FILE_READABLE(constant('__MODULE'))) {
- // Module does addionally not exists
- addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
- } // END - if
-
- // Add fatal message
- addFatalMessage(sprintf(getMessage('LANG_MOD_REG_LOCKED'), $GLOBALS['module']));
- break;
-
- default:
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $check, $GLOBALS['module']));
- addFatalMessage(sprintf(getMessage('LANG_MOD_REG_UNKNOWN'), $check));
- break;
+ case 'admin_only':
+ case 'mem_only':
+ case 'done':
+ // Does the module exists on local file system?
+ if ((isFileReadable(constant('__MODULE'))) && (getTotalFatalErrors() == 0)) {
+ // Module is valid, active and located on the local disc...
+ $MOD_VALID = true;
+ } elseif (!empty($URL)) {
+ // An URL was specified so we load the de-referrer module
+ redirectToUrl(DEREFERER($URL));
+ } elseif (getTotalFatalErrors() == 0) {
+ addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
+ }
+ break;
+
+ case '404':
+ addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
+ break;
+
+ case 'locked':
+ if (!isFileReadable(constant('__MODULE'))) {
+ // Module does addionally not exists
+ addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
+ } // END - if
+
+ // Add fatal message
+ addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_LOCKED'), $GLOBALS['module']));
+ break;
+
+ default:
+ DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $check, $GLOBALS['module']));
+ addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('LANG_MOD_REG_UNKNOWN'), $check));
+ break;