* @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
*/
-require dirname(__FILE__) . '/main.php';
+require_once dirname(__FILE__) . '/lib/Application.php';
+Horde_Registry::appInit('jeta');
+
+$applet = Jeta_Applet::factory($prefs->getValue('sshdriver'));
+
+$template = new Horde_Template();
+$template->set('menu', Jeta::getMenu()->render());
+$template->set('notification', $notification->notify(array('listeners' => 'status')));
+$template->set('applet', $applet->generateAppletCode());
+
+require JETA_TEMPLATES . '/common-header.inc';
+echo $template->fetch(JETA_TEMPLATES . '/main.html');
+require $registry->get('templates', 'horde') . '/common-footer.inc';
* @author Michael Slusarz <slusarz@curecanti.org>
* @package Jeta
*/
-class Jeta {
-
+class Jeta
+{
/**
* Build Jeta's list of menu items.
*/
- function getMenu()
+ public function getMenu()
{
- global $registry, $conf;
-
$menu = new Horde_Menu();
/* Jeta Home. */
- $menu->addArray(array('url' => Horde::applicationUrl('main.php'), 'text' => _("_Shell"), 'icon' => 'jeta.png', 'class' => (basename($_SERVER['PHP_SELF']) == 'main.php' || basename($_SERVER['PHP_SELF']) == 'index.php') ? 'current' : ''));
+ $menu->addArray(array('url' => Horde::applicationUrl('index.php'), 'text' => _("_Shell"), 'icon' => 'jeta.png', 'class' => (basename($_SERVER['PHP_SELF']) == 'index.php') ? 'current' : ''));
return $menu;
}
+++ /dev/null
-<?php
-/**
- * Copyright 2002-2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
- */
-
-require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('jeta');
-
-$applet = Jeta_Applet::factory($prefs->getValue('sshdriver'));
-
-$template = new Horde_Template();
-$template->set('menu', Jeta::getMenu()->render());
-$template->set('notification', $notification->notify(array('listeners' => 'status')));
-$template->set('applet', $applet->generateAppletCode());
-
-require JETA_TEMPLATES . '/common-header.inc';
-echo $template->fetch(JETA_TEMPLATES . '/main.html');
-require $registry->get('templates', 'horde') . '/common-footer.inc';