* Copyright 1999-2003 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(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'; } ?> ow['user_id'] . " " . $g['sql']['photo_vis'] . " LIMIT 1", 0, 2); if ($row['photo_id'] != "" and file_exists($g['path']['dir_files'] . "photo/" . $row['user_id'] . "_" . $row['photo_id'] . "_s.jpg")) $row['photo'] = "photo/" . $row['user_id'] . "_" . $row['photo_id'] . "_" . $g['options']['main_users_photo_size'] . ".jpg"; else $row['photo'] = "nophoto_" . $row['gender'] . "_" . $g['options']['main_users_photo_size'] . ".jpg"; foreach ($row as $k => $v) $html->setvar($k, $v); $html->parse("user", true); } $html->parse("users", true); } if ($g['options']['main_search'] == "Y" and $html->blockexists("search")) { $html->setvar("p_age_from_options", n_options($g['options']['users_age'], $g['options']['users_age_max'], get_param("p_age_from", $g['options']['users_age']))); $html->setvar("p_age_to_options", n_options($g['options']['users_age'], $g['options']['users_age_max'], get_param("p_age_to", $g['options']['users_age_max']))); $html->setvar("orientatio