X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=agb.php;h=19947b5efa804cc9ea0ce819634e81eafd71c774;hp=652ad4b25759bed578b875e3df380f7181a89b80;hb=53e518016b97748e6554bd7aa324f4e6d92d3201;hpb=05e9ddd952a47d42b9970a9d2afef20d77d3aecf 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] ?>