X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=login.php;h=89cf5207b06639199eb37b482a6cf850591a7c54;hp=218b3c4414103c6527bc12fe7060cf5fbd4099c2;hb=98077af43126dd7c274fe57f6ea0494e906e8943;hpb=05e9ddd952a47d42b9970a9d2afef20d77d3aecf diff --git a/login.php b/login.php index 218b3c4414..89cf5207b0 100644 --- a/login.php +++ b/login.php @@ -39,10 +39,6 @@ // Load security stuff here require('inc/libs/security_functions.php'); -// Init "action" and "what" -$GLOBALS['what'] = ''; -$GLOBALS['action'] = ''; - // Set module $GLOBALS['module'] = 'login'; @@ -50,25 +46,22 @@ $GLOBALS['module'] = 'login'; $GLOBALS['output_mode'] = '0'; // Load the required file(s) -require('inc/config.php'); +require('inc/config-global.php'); // Is the script installed? -if (isInstalled()) { - // Is this a member? - if (IS_MEMBER()) { - // Then redirect into login area - redirectToUrl('modules.php?module=login'); - } else { - // Guests will be redirected to login form - redirectToUrl('modules.php?module=index&what=login'); - } -} else { +if (!isInstalled()) { // You have to install first! redirectToUrl('install.php'); -} +} // END - if -// Really all done here... ;-) -shutdown(); +// Is this a member? +if (IS_MEMBER()) { + // Then redirect into login area + redirectToUrl('modules.php?module=login'); +} else { + // Guests will be redirected to login form + redirectToUrl('modules.php?module=index&what=login'); +} -// +// [EOF] ?>