]> git.mxchange.org Git - mailer.git/commitdiff
Extension wernis now should fully work again, withdraw was broken
authorRoland Häder <roland@mxchange.org>
Sat, 22 Nov 2008 20:43:35 +0000 (20:43 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 22 Nov 2008 20:43:35 +0000 (20:43 +0000)
inc/databases.php
inc/libs/wernis_functions.php

index 40403a2eedc6ccec2eac7e303d9cd51130bebfbe..8ed9085ae06811041a6ba0f58877f7359213e123 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "543");
+define('CURR_SVN_REVISION', "544");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index db76a6474938c2dd600972ecaef8dec50e8292db..635b33885232ad16be439c04586abed6feb44b00 100644 (file)
@@ -215,13 +215,15 @@ function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
        global $_CONFIG;
 
        // Is the sponsor extension installed?
-       if (!EXT_IS_ACTIVE("sponsor")) {
-               // No, abort here
-               return false;
-       } elseif (!IS_SPONSOR()) {
-               // No sponsor, not allowed to withdraw!
-               return false;
-       }
+       if ($_CONFIG['wernis_withdraw_active'] == "N") {
+               if (!EXT_IS_ACTIVE("sponsor")) {
+                       // No, abort here
+                       return false;
+               } elseif (!IS_SPONSOR()) {
+                       // No sponsor, not allowed to withdraw!
+                       return false;
+               }
+       } // END - if
 
        // Default is failed attempt
        $result = false;