if-block rewrittten, some TODOs/default added
[mailer.git] / login.php
index 9a0c074af2cdf0ee5406627a1941ac8efc7af7da..9a63243365fe0fbd260230b91ce8296407331c66 100644 (file)
--- a/login.php
+++ b/login.php
@@ -53,22 +53,19 @@ $GLOBALS['output_mode'] = '0';
 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]
 ?>