Final fix for double/missing constant
authorRoland Häder <roland@mxchange.org>
Tue, 7 Oct 2008 19:06:55 +0000 (19:06 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 7 Oct 2008 19:06:55 +0000 (19:06 +0000)
beg.php
doubler.php
inc/databases.php
show_bonus.php

diff --git a/beg.php b/beg.php
index d212731055f79af25aff299f74f375cb66d01844..9d1ef62d0895f25fff1abad51f92b0ef2e476836 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -48,6 +48,12 @@ $msg = null;
 // Load the required file(s)
 require ("inc/config.php");
 
 // 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&amp;msg=".CODE_EXTENSION_PROBLEM."&amp;ext=beg");
+} // END - if
+
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Check for userid
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Check for userid
index 8c56144ccf589fb3c87e1e410d36067905e706f7..6f0517dbf0816d823adeee2cc9fd2e2f4517cf12 100644 (file)
@@ -48,6 +48,12 @@ $CSS = 0;
 // Load the required file(s)
 require ("inc/config.php");
 
 // 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&amp;msg=".CODE_EXTENSION_PROBLEM."&amp;ext=doubler");
+} // END - if
+
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Probe for referral ID
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Probe for referral ID
index 2b15a4b3121e78e1d3e91344c48f694149e5adc7..c7a135cf0a63335fc8d734e70db1e7932cb06181 100644 (file)
@@ -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_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... ;-)
 
 // 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('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);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 45019b90f62f869f5f18aabb8397c099f5dd2f7c..44bf06c84351922b8c84526d996828951a070437 100644 (file)
@@ -45,6 +45,12 @@ $GLOBALS['module'] = "show_bonus"; $CSS = 0;
 // Load the required file(s)
 require ("inc/config.php");
 
 // 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&amp;msg=".CODE_EXTENSION_PROBLEM."&amp;ext=bonus");
+} // END - if
+
 // List only rankings when script is installed
 if (isBooleanConstantAndTrue('mxchange_installed'))
 {
 // List only rankings when script is installed
 if (isBooleanConstantAndTrue('mxchange_installed'))
 {