Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / beg.php
index d90f4ff9bd708afba5326e85741db263e6a72f54..b936b787ef49756c469993ced38221a8c2ca8b8a 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'] = "beg";\r
@@ -145,7 +145,7 @@ if (defined('mxchange_installed') && (mxchange_installed))
 \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
                                // Is begging rallye active?\r
                                if ($CONFIG['beg_rallye'] == "Y")\r