X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=agb.php;h=19947b5efa804cc9ea0ce819634e81eafd71c774;hb=d234d1de6ad6e7afe77507f421c9930833731d88;hp=652ad4b25759bed578b875e3df380f7181a89b80;hpb=05e9ddd952a47d42b9970a9d2afef20d77d3aecf;p=mailer.git diff --git a/agb.php b/agb.php index 652ad4b257..19947b5efa 100644 --- a/agb.php +++ b/agb.php @@ -39,28 +39,21 @@ // Load security stuff here require('inc/libs/security_functions.php'); -// Init "action" and "what" -$GLOBALS['what'] = ''; -$GLOBALS['action'] = ''; - // Set module $GLOBALS['module'] = 'agb'; $GLOBALS['output_mode'] = -1; // Load the required file(s) -require('inc/config.php'); +require('inc/config-global.php'); // Is the script installed? -if (isInstalled()) { - // Simply redirect... :-) - redirectToUrl('modules.php?module=index&what=agb'); -} else { +if (!isInstalled()) { // You have to install first! redirectToUrl('install.php'); -} +} // END - if -// Really all done here... ;-) -shutdown(); +// Simply redirect... :-) +redirectToUrl('modules.php?module=index&what=agb'); -// +// [EOF] ?>