File: index.php

package info (click to toggle)
imp4 4.1.3-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 14,988 kB
  • ctags: 3,720
  • sloc: xml: 17,038; php: 16,350; makefile: 64
file content (25 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * $Horde: imp/index.php,v 2.73.10.3 2006/01/01 21:28:50 jan Exp $
 *
 * Copyright 1999-2006 Charles J. Hagenbuch <chuck@horde.org>
 * Copyright 1999-2006 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/mime_drivers.php') &&
                   @is_readable(IMP_BASE . '/config/prefs.php') &&
                   @is_readable(IMP_BASE . '/config/servers.php'));

if (!$imp_configured) {
    require IMP_BASE . '/../lib/Test.php';
    Horde_Test::configFilesMissing('IMP', IMP_BASE,
        array('conf.php', 'mime_drivers.php', 'prefs.php'),
        array('servers.php' => 'This file controls the default settings for IMP, and also defines the list of available servers if you are using the server list.'));
}

require IMP_BASE . '/redirect.php';