From 06c7c6a05e15658be2d6e70b1cbe4812c8e3dcf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 7 Oct 2008 19:06:55 +0000 Subject: [PATCH] Final fix for double/missing constant --- beg.php | 6 ++++++ doubler.php | 6 ++++++ inc/databases.php | 3 +-- show_bonus.php | 6 ++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/beg.php b/beg.php index d212731055..9d1ef62d08 100644 --- a/beg.php +++ b/beg.php @@ -48,6 +48,12 @@ $msg = null; // Load the required file(s) require ("inc/config.php"); +// Is the "beg" extension active? +if (!EXT_IS_ACTIVE("beg")) { + // Redirect to index + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=beg"); +} // END - if + // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { // Check for userid diff --git a/doubler.php b/doubler.php index 8c56144ccf..6f0517dbf0 100644 --- a/doubler.php +++ b/doubler.php @@ -48,6 +48,12 @@ $CSS = 0; // Load the required file(s) require ("inc/config.php"); +// Is the "doubler" extension active? +if (!EXT_IS_ACTIVE("doubler")) { + // Redirect to index + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=doubler"); +} // END - if + // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { // Probe for referral ID diff --git a/inc/databases.php b/inc/databases.php index 2b15a4b312..c7a135cf0a 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -70,7 +70,6 @@ define('CODE_MORE_RECEIVERS3' , 29); define('CODE_INVALID_URL' , 30); define('CODE_MENU_NOT_VALID' , 31); define('CODE_LOGIN_FAILED' , 32); -define('CODE_BEG_SAME_AS_OWN' , 33); // Full version string: /([0-9]){1}\.([0-9]){1}\.([0-9]){1}(-(alpha|beta|pre|rc([1-3]))([0-9]+))?/ // If you understand regular expressions ^^^ you may know how I versionize... ;-) @@ -114,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "477"); +define('CURR_SVN_REVISION', "478"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/show_bonus.php b/show_bonus.php index 45019b90f6..44bf06c843 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -45,6 +45,12 @@ $GLOBALS['module'] = "show_bonus"; $CSS = 0; // Load the required file(s) require ("inc/config.php"); +// Is the "bonus" extension active? +if (!EXT_IS_ACTIVE("bonus")) { + // Redirect to index + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=bonus"); +} // END - if + // List only rankings when script is installed if (isBooleanConstantAndTrue('mxchange_installed')) { -- 2.39.5