]> git.mxchange.org Git - mailer.git/blobdiff - agb.php
and rewritten to functions
[mailer.git] / agb.php
diff --git a/agb.php b/agb.php
index a321428bc3cdb7dc8d9514cd6763348c3229be97..c5f79b55f4837f4ecc59ab73f5a67ed07fda1603 100644 (file)
--- a/agb.php
+++ b/agb.php
  ************************************************************************/
 
 // 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'] = "";
 
 // 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... ;-)
 ?>