X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=ref.php;h=66d545f342c0fe37f95ef79d58ffdc28fe35d8c1;hp=34fe633411a77cb65c3135af6de2a93b06f7f990;hb=d6a604a7d028cff4e198a52c4619ec7c7b265b00;hpb=d016e24dd4686f613a17733b96bc28fac936a4ac diff --git a/ref.php b/ref.php index 34fe633411..66d545f342 100644 --- a/ref.php +++ b/ref.php @@ -46,7 +46,7 @@ $GLOBALS['output_mode'] = -1; 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')) { @@ -60,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