<?php
/*
 * $Horde: imp/index.php,v 2.58.2.6 2003/01/18 22:52:29 slusarz Exp $
 *
 * Copyright 1999-2003 Charles J. Hagenbuch <chuck@horde.org>
 * Copyright 1999-2003 Jon Parise <jon@horde.org>
 *
 * See the enclosed file COPYING for license information (GPL).  If you
 * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
 */

define('IMP_BASE', dirname(__FILE__));
$imp_configured = (@is_readable(IMP_BASE . '/config/conf.php') &&
                   @is_readable(IMP_BASE . '/config/html.php') &&
                   @is_readable(IMP_BASE . '/config/mime_drivers.php') &&
                   @is_readable(IMP_BASE . '/config/prefs.php') &&
                   @is_readable(IMP_BASE . '/config/servers.php'));

if (!$imp_configured) {
    /* IMP isn't configured. */
    include IMP_BASE . '/templates/index/notconfigured.inc';
    exit;
}

require IMP_BASE . '/redirect.php';
