Update of /cvsroot/squirrelmail/squirrelmail/src
In directory usw-pr-cvs1:/tmp/cvs-serv3100/src
Modified Files:
login.php
Log Message:
Add check of configuration file.
Index: login.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/login.php,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -w -r1.58 -r1.59
--- login.php 2001/11/21 18:48:34 1.58
+++ login.php 2001/11/26 13:02:47 1.59
@@ -53,6 +53,22 @@
$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');
|