X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=sponsor_ref.php;h=cd35f52e164e2ba1a11f05ca2cbb5de00436366b;hp=bbcb00a7f2dbfce00c5db9cc03e106e96d648975;hb=7989ec603971c0dc8dc35d8be4e72f8098b83baa;hpb=e71e9e1380d65ccd06beef6fbc594bec10371f5f diff --git a/sponsor_ref.php b/sponsor_ref.php index bbcb00a7f2..cd35f52e16 100644 --- a/sponsor_ref.php +++ b/sponsor_ref.php @@ -31,15 +31,15 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Load the required file(s) require("inc/config.php"); // Redirect only to registration page when this script is installed -if (defined('mxchange_installed') && (isBooleanConstantAndTrue(mxchange_installed))) { +if (isBooleanConstantAndTrue('mxchange_installed')) { // Base URL for redirection - $URL = "modules.php?module=index&what=sponsor_reg&refid="; + $URL = "modules.php?module=index&what=sponsor_reg&refid="; // Get referal ID from ref or refid variable $ref = 0; @@ -56,10 +56,8 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue(mxchange_installe // Load the URL LOAD_URL($URL); - - // Redirection should be done here } else { - // You have to configure first! + // You have to install first! LOAD_URL("install.php"); }