File: index.php

package info (click to toggle)
horde2 2.2.8-1sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,832 kB
  • ctags: 2,897
  • sloc: php: 12,784; sh: 954; sql: 149; makefile: 104; perl: 97; xml: 24; pascal: 6
file content (47 lines) | stat: -rw-r--r-- 1,855 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
 * $Horde: horde/index.php,v 2.43.2.12 2005/01/03 11:25:44 jan Exp $
 *
 * Copyright 1999-2005 Charles J. Hagenbuch <chuck@horde.org>
 * Copyright 1999-2005 Jon Parise <jon@horde.org>
 *
 * See the enclosed file COPYING for license information (LGPL).  If you
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
 */

define('HORDE_BASE', dirname(__FILE__));
$horde_configured = (@file_exists(HORDE_BASE . '/config/horde.php') &&
                     @file_exists(HORDE_BASE . '/config/html.php') &&
                     @file_exists(HORDE_BASE . '/config/mime_drivers.php') &&
                     @file_exists(HORDE_BASE . '/config/mime_mapping.php') &&
                     @file_exists(HORDE_BASE . '/config/registry.php'));

if ($horde_configured) {
    include_once HORDE_BASE . '/lib/base.php';

    $initial_app = $prefs->getValue('initial_application');
    if (!empty($initial_app)) {
        $main_page = Horde::url($registry->getInitialPage($initial_app));
    } elseif (isset($registry->applications['horde']['initial_page'])) {
        $main_page = Horde::applicationUrl($registry->applications['horde']['initial_page']);
    } else {
        $main_page = Horde::applicationUrl('login.php');
    }
    if ($browser->hasFeature('wml')) {
        include HORDE_TEMPLATES . '/index/wap.inc';
    } elseif ($conf['menu']['floating_bar'] && (!$browser->hasQuirk('avoid_popup_windows'))) {
        $flmenu_width = count($registry->applications) * 60;
        include HORDE_TEMPLATES . '/index/floating_index.inc';
    } else {
        if ($browser->hasQuirk('scrollbar_in_way')) {
            $scrollbar = 'yes';
        } else {
            $scrollbar = 'auto';
        }
        include HORDE_TEMPLATES . '/index/frames_index.inc';
    }
} else {
    include HORDE_BASE . '/templates/index/notconfigured.inc';
}

?>