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); } }
function Right() { return array(array('help' => 'Credits', 'link' => RootApp() . 'main/credits', 'title' => 'Credits')); }
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'); }