From 640f7f112c58f4e46c34d76daa900d165f1bf3b0 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Mon, 26 Nov 2001 13:02:47 +0000 Subject: [PATCH] Add check of configuration file. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1805 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/login.php b/src/login.php index 4f0e7aea..11537e7d 100644 --- a/src/login.php +++ b/src/login.php @@ -53,6 +53,22 @@ $rcptaddress = urlencode($rcptaddress); } + /* Check if system has been configured */ + if ( !file_exists( '../config/config.php' ) ) { + echo "\n". + "\n". + '' . _("Configuration Error") . "\n". + "\n". + "\n" . + '

' . + _("This system has not been configured yet.") . + '
' . + _("Please contact system administrator.") . + '

'. + "\n"; + exit; + } + require_once('../functions/strings.php'); require_once('../config/config.php'); require_once('../functions/i18n.php'); -- 2.25.1