X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=ref.php;h=66d545f342c0fe37f95ef79d58ffdc28fe35d8c1;hb=9e1f6d2cff0bbef912d605d4ae1728f0382b83a4;hp=a9dc0ecc22d85c9b3d0fa635075b70b518d6310f;hpb=59bd8a9805c51c895a92cc12825f4cbdfd792597;p=mailer.git diff --git a/ref.php b/ref.php index a9dc0ecc22..66d545f342 100644 --- a/ref.php +++ b/ref.php @@ -35,17 +35,18 @@ require("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; -$GLOBALS['what'] = ""; $GLOBALS['action'] = ""; +$GLOBALS['what'] = ""; +$GLOBALS['action'] = ""; // Set module -$GLOBALS['module'] = "ref"; $GLOBALS['output_mode'] = -1; +$GLOBALS['module'] = "ref"; +$GLOBALS['output_mode'] = -1; // Load the required file(s) require("inc/config.php"); // Redirect only to registration page when this script is installed -if (isBooleanConstantAndTrue('mxchange_installed')) { +if (isInstalled()) { // Base URL for redirection switch (getConfig('refid_target')) { @@ -59,8 +60,8 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { } // Get referal ID from ref or refid variable - if (!empty($_GET['ref'])) $ref = secureString($_GET['ref']); - elseif (!empty($_GET['refid'])) $ref = secureString($_GET['refid']); + if (REQUEST_ISSET_GET(('ref'))) $ref = REQUEST_GET('ref'); + elseif (REQUEST_ISSET_GET(('refid'))) $ref = REQUEST_GET('refid'); if (!empty($ref)) { // Test if nickname or numeric id