]> git.mxchange.org Git - mailer.git/blobdiff - sponsor_ref.php
New method generateExtensionInactiveMessage() introduced
[mailer.git] / sponsor_ref.php
index 1f9a3eec0a9482264242f69f632223e54c20f143..6550c315912e23b979a43c7384b7a7d68832747c 100644 (file)
@@ -35,7 +35,7 @@
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
-// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
+// Load security stuff here
 require('inc/libs/security_functions.php');
 
 // Init "action" and "what"
@@ -49,7 +49,7 @@ $GLOBALS['module'] = 'sponsor_ref';
 $GLOBALS['output_mode'] = '0';
 
 // Load the required file(s)
-require('inc/config.php');
+require('inc/config-global.php');
 
 // Redirect only to registration page when this script is installed
 if (isInstalled()) {
@@ -59,7 +59,7 @@ if (isInstalled()) {
        // Get referal ID from ref or refid variable
        $ref = 0;
        if (REQUEST_ISSET_GET(('ref')))        $ref = bigintval(REQUEST_GET('ref'));
-        elseif (REQUEST_ISSET_GET(('refid'))) $ref = bigintval(REQUEST_GET('refid'));
+       elseif (REQUEST_ISSET_GET(('refid'))) $ref = bigintval(REQUEST_GET('refid'));
 
        if (!empty($ref)) {
                // We have an refid here. So we simply add it
@@ -70,10 +70,10 @@ if (isInstalled()) {
        }
 
        // Load the URL
-       LOAD_URL($URL);
+       redirectToUrl($URL);
 } else {
        // You have to install first!
-       LOAD_URL('install.php');
+       redirectToUrl('install.php');
 }
 
 // Really all done here... ;-)