Add check of configuration file.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Nov 2001 13:02:47 +0000 (13:02 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Nov 2001 13:02:47 +0000 (13:02 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1805 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/login.php

index 4f0e7aea22a16beb5a55b125028e047a646a4fc7..11537e7dd9831920680616718f375be382deb8e4 100644 (file)
         $rcptaddress = urlencode($rcptaddress);
     }
 
+    /* Check if system has been configured */
+    if ( !file_exists( '../config/config.php' ) ) {
+        echo "<html>\n".
+             "<head>\n".
+             '<title>' . _("Configuration Error") . "</title>\n".
+             "</head>\n".
+             "<body>\n" .
+             '<center><h1>' . 
+             _("This system has not been configured yet.") .
+             '<br>' .
+             _("Please contact system administrator.") .
+             '</h1></center>'.
+             "</body></html>\n";
+        exit;
+    }
+
     require_once('../functions/strings.php');
     require_once('../config/config.php');
     require_once('../functions/i18n.php');