X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=index.php;h=8d9e4e974f3ee237f5ae974eccb9dc7858ccf419;hp=45e3f8370d272e1445cc4de96682ced8866974ce;hb=0bdd0f3e12337e14f78e436c3d6f44e36ba77632;hpb=8241c8d9b8a93c44f94ebb403dfb8194d776e75c diff --git a/index.php b/index.php index 45e3f837..8d9e4e97 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,25 @@ +/** + * index.php + * + * Redirects to the login page. + * + * @copyright © 1999-2007 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package squirrelmail + */ + +// Are we configured yet? +if( ! file_exists ( 'config/config.php' ) ) { + echo '

ERROR: Config file ' . + '"config/config.php" not found. You need to ' . + 'configure SquirrelMail before you can use it.

'; + exit; +} + +// If we are, go ahead to the login page. +header('Location: src/login.php'); + +?> \ No newline at end of file