Exemplo n.º 1
0
        }
        echo $buffer;
        /*eZClusterURLFilter::setUrlParameters( '/(targetnode)/' . $clusterProxyRequestTarget );
          stream_filter_register( 'urlFilter', 'eZClusterURLFilter' );
          stream_filter_append( $fp, 'urlFilter', STREAM_FILTER_READ );
          fpassthru( $fp );*/
    } else {
        eZDebug::writeWarning("Could not connect to {$url}");
    }
    eZExecution::cleanExit();
}
//$isClusterMasterRequest = count( ezSysinfoClusterManager::clusterNodes() ) && ezSysinfoModule::viewClusterMode( $view ) == 'split';
$tpl = sysInfoTools::eZTemplateFactory();
$tpl->setVariable('title', ezSysinfoModule::viewTitle($view));
$tpl->setVariable('description', ezSysinfoModule::viewDescription($view));
$tpl->setVariable('cluster_nodes', ezSysinfoClusterManager::clusterDataRetrievalUrls('proxy', $module->currentRedirectionURI()));
// note that we do not execute any php sub-view
// value to these vars can be set by the view code to alter response
$extra_path = '';
// fetch template to render results
$Result = array();
$Result['content'] = $tpl->fetch("design:sysinfo/clustermasterview.tpl");
// 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))));
}