]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/inc/modules/admin/what-config_points.php
Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / inc / modules / admin / what-config_points.php
index 018fee1af798fdf1ec3908f80f43a8b1ab0b309d..a997f017afa9f84bc8dfb413e8917779a1b205fe 100644 (file)
@@ -34,7 +34,7 @@
 // Some security stuff...\r
 if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))\r
 {\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";\r
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
        require($INC);\r
 }\r
 \r
@@ -125,7 +125,7 @@ allow_direct_pay='%s',
 reg_points_mode='%s',\r
 ref_payout='%d'\r
 WHERE config='0' LIMIT 1",\r
- $_POST['direct_pay'],\r
+ $_POST['allow_direct_pay'],\r
  $_POST['refmode'],\r
  $REF\r
                );\r
@@ -185,7 +185,7 @@ WHERE mails_confirmed < %d", $REF, $REF);
 {\r
        // Setup some settings like direct pay and so on\r
        // Including new add-mode for one-time referral bonus\r
-       switch ($CONFIG['direct_pay'])\r
+       switch ($CONFIG['allow_direct_pay'])\r
        {\r
        case "Y":\r
                define('__DIRECT_Y', " checked");\r