function _handleFilelistTag($element, $curDir = '') { foreach ($element['children'] as $child) { switch ($child['name']) { case 'file': $this->_handleFileTag($child, $curDir); break; case 'dir': $this->_handleDirTag($child, $curDir); break; default: $cli =& Horde_CLI::singleton(); $cli->message('Got no handler for tag: ' . $child['name'], 'cli-warning'); break; } } }
/** * Redirects to the main Horde login page on authentication failure. */ function authenticationFailureRedirect() { require_once 'Horde/CLI.php'; if (Horde_CLI::runningFromCLI()) { $cli =& Horde_CLI::singleton(); $cli->fatal(_("You are not authenticated.")); } $url = $GLOBALS['registry']->get('webroot', 'horde') . '/login.php'; $url = Util::addParameter($url, array('url' => Horde::selfUrl(true), 'nosidebar' => 1), null, false); $url = Auth::addLogoutParameters($url); header('Location: ' . Horde::url($url, true)); exit; }