X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=agb.php;h=adf6172c29460f86ac47541d73083c8eace89142;hp=a321428bc3cdb7dc8d9514cd6763348c3229be97;hb=af59daf6541b279989547829c95adc5bee8ca11d;hpb=60494e212a67fe360bfbb481eb4928480a6f379b diff --git a/agb.php b/agb.php index a321428bc3..adf6172c29 100644 --- a/agb.php +++ b/agb.php @@ -32,29 +32,27 @@ ************************************************************************/ // 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"); // Init "action" and "what" -global $what, $action; -$GLOBALS['what'] = ""; $GLOBALS['action'] = ""; +$GLOBALS['what'] = ""; +$GLOBALS['action'] = ""; // Set module -$GLOBALS['module'] = "agb"; $CSS = -1; +$GLOBALS['module'] = "agb"; +$GLOBALS['output_mode'] = -1; // Load the required file(s) -require ("inc/config.php"); +require("inc/config.php"); // Is the script installed? -if (defined('mxchange_installed') && (mxchange_installed)) -{ +if (isBooleanConstantAndTrue('mxchange_installed')) { // Simply redirect... :-) LOAD_URL("modules.php?module=index&what=agb"); - // Redirection should be done here -} - else -{ - // You have to configure first! +} else { + // You have to install first! LOAD_URL("install.php"); } + // Really all done here... ;-) ?>