コード例 #1
0
ファイル: menu.php プロジェクト: gnlcosta/eTunnel
 function Right($add = null)
 {
     if ($add == null) {
         return array(array('help' => 'Logout', 'link' => RootApp() . 'user/logout', 'title' => 'Logout'), array('help' => 'Lista utenti', 'link' => RootApp() . 'user/index', 'title' => 'Utenti'), array('help' => 'Credits', 'link' => RootApp() . 'main/credits', 'title' => 'Credits'));
     } else {
         return array(array('help' => 'Logout', 'link' => RootApp() . 'user/logout', 'title' => 'Logout'), array('help' => 'Lista utenti', 'link' => RootApp() . 'user/index', 'title' => 'Utenti'), array('help' => 'Credits', 'link' => RootApp() . 'main/credits', 'title' => 'Credits'), $add);
     }
 }
コード例 #2
0
ファイル: menu.php プロジェクト: gnlcosta/eTunnel
 function Right()
 {
     return array(array('help' => 'Credits', 'link' => RootApp() . 'main/credits', 'title' => 'Credits'));
 }
コード例 #3
0
ファイル: main.php プロジェクト: gnlcosta/eTunnel
 function EsBefore()
 {
     // setup menu, left and right
     TemplVar('menu_left', $this->Menu->Left());
     TemplVar('menu_left_active', -1);
     TemplVar('menu_right', $this->Menu->Right());
     TemplVar('menu_right_active', -1);
     TemplVar('title', '---');
     if (!SesVarCheck('user_type') && EsPage() != 'node') {
         EsRedir('user', 'login');
     }
     $reg = $this->RegNodes();
     if (count($reg) != 0) {
         TemplVar('menu_left', $this->Menu->Left(array('help' => 'Nodi registrati', 'link' => RootApp() . 'main/regist_list', 'title' => 'Nuovi nodi')));
     }
     $str = file_get_contents(RootDir() . '/../data/app.json');
     $appl = json_decode($str, true);
     TemplVar('app_version', $appl['version']);
     ViewVar('app_version', $appl['version']);
     $this->utype = SesVarGet('user_type');
 }