* Copyright 1999-2002 Jon Parise * * 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('./config/horde.php') && @file_exists('./config/html.php') && @file_exists('./config/mime_drivers.php') && @file_exists('./config/mime_mapping.php') && @file_exists('./config/registry.php')); if ($horde_configured) { include_once HORDE_BASE . '/lib/base.php'; if (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'; } ?>