]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/birthday_confirm.php
Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / birthday_confirm.php
index 3a96015fbd5498ca48d82618cfc4d83b671ada13..8b6b78948ee48fff1bb610e9e3eadc918f1c8dfa 100644 (file)
@@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php");
 // Init "action" and "what"\r
 global $what, $action;\r
 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";\r
-if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action']));\r
-if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what']));\r
+if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);\r
+if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);\r
 \r
 // Set module\r
 $GLOBALS['module'] = "birthday_confirm"; $CSS = -1;\r
@@ -73,7 +73,7 @@ WHERE b.userid=%d AND b.chk_value='%s' LIMIT 1",
                {\r
                        // Set mode depending on how many mails the member has to confirm\r
                        $locked = false;\r
-                       if (($ref_payout > 0) && ($CONFIG['direct_pay'] == "N")) $locked = true;\r
+                       if (($ref_payout > 0) && ($CONFIG['allow_direct_pay'] == "N")) $locked = true;\r
 \r
                        // Add points to account\r
                        ADD_POINTS_REFSYSTEM($uid, $GIFT, false, "0", $locked, strtolower($CONFIG['birthday_mode']));\r