]> git.mxchange.org Git - mailer.git/blobdiff - sponsor_ref.php
SQL_IS_LINK_UP() aborts if wether no resource or null is given
[mailer.git] / sponsor_ref.php
index ba8819687e80c882f3f3c1b7f59dc932b1b76f18..0b3345e3cecfa0138b9baec61c2cb90e49bfa8de 100644 (file)
 require("inc/libs/security_functions.php");
 
 // Init "action" and "what"
-global $what, $action;
 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
 
 // Set module
 $GLOBALS['module'] = "sponsor_ref";
 
 // Set "CSS-Mode"
-$CSS = "0";
+$GLOBALS['output_mode'] = "0";
 
 // Load the required file(s)
 require("inc/config.php");
@@ -53,8 +52,8 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
 
        // Get referal ID from ref or refid variable
        $ref = 0;
-       if (!empty($_GET['ref']))        $ref = bigintval($_GET['ref']);
-        elseif (!empty($_GET['refid'])) $ref = bigintval($_GET['refid']);
+       if (REQUEST_ISSET_GET(('ref')))        $ref = bigintval(REQUEST_GET('ref'));
+        elseif (REQUEST_ISSET_GET(('refid'))) $ref = bigintval(REQUEST_GET('refid'));
 
        if (!empty($ref)) {
                // We have an refid here. So we simply add it