eZDebug::writeWarning("Sysinfo view uses an unsupported response type: {$response_type}"); } // fetch template to render results $Result = array(); $Result['content'] = $tpl->fetch("design:sysinfo/{$view}.tpl"); // for requests which 'come from cluster', remove pagelayout, as they will be shown inside an iframe if ($isClusterSlaveRequest) { /// @todo rewrite links // remove pagelayout $Result['pagelayout'] = 'design:clusterview_pagelayout.tpl'; // shall we remove debug info as well? } else { // build nav menu & left-hand menu $Result['left_menu'] = 'design:parts/sysinfo/menu.tpl'; $url1stlevel = array(array('url' => 'sysinfo/index', 'text' => sysInfoTools::ezpI18ntr('SysInfo', 'System information'))); if ($view == 'index') { $url1stlevel[0]['url'] = false; $url2ndlevel = array(); } else { $url2ndlevel = array(array('url' => false, 'text' => sysInfoTools::ezpI18ntr('SysInfo', ezSysinfoModule::viewName($view)))); } if ($extra_path != '') { if (ezSysinfoModule::viewActive($view)) { $url2ndlevel[0]['url'] = "sysinfo/{$view}"; } $url3rdlevel = array(array('url' => false, 'text' => $extra_path)); } else { $url3rdlevel = array(); } $Result['path'] = array_merge($url1stlevel, $url2ndlevel, $url3rdlevel); }