* * 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('AUTH_HANDLER', true); @define('HORDE_BASE', dirname(__FILE__) . '/..'); require_once HORDE_BASE . '/lib/core.php'; $registry = &Registry::singleton(); $apps = $registry->listApps(array('notoolbar', 'active', 'admin', 'inactive', 'hidden'), true); ksort($apps); if (($app = basename(Util::getFormData('app'))) && isset($apps[$app])) { // Provide a non-white background for eyeballing transparency. echo '
'; $themeDir = $registry->get('themesfs', $app); if (!is_dir($themeDir)) { exit(sprintf(_("Themes directory \"%s\" not found."), $themeDir)); } // Base graphics for now, feel free to add theme support. $basedir = $dir = $themeDir . DIRECTORY_SEPARATOR . 'graphics'; if (!is_dir($dir)) { exit(sprintf(_("Base graphics directory \"%s\" not found."), $dir)); } if (($subdir = basename(htmlentities(Util::getFormData('subdir')), ENT_QUOTES))) { $dir .= DIRECTORY_SEPARATOR . $subdir; if (!is_dir($dir)) { exit(sprintf(_("Subdirectory \"%s\" not found."), $dir)); } } // Breadcrumbs. echo Horde::link('icon_browser.php') . _("Application List") . '