Exemplo n.º 1
0
function index()
{
    $tpl_data = array('load_jquery_additionals' => true, 'nginx_version' => Serverstack::getVersion('nginx'), 'php_version' => Serverstack::getVersion('php'), 'mariadb_version' => Serverstack::getVersion('mariadb'), 'memcached_version' => Serverstack::getVersion('memcached'), 'xdebug_version' => Serverstack::getVersion('xdebug'), 'mongodb_version' => Serverstack::getVersion('mongodb'), 'postgresql_version' => Serverstack::getVersion('postgresql'), 'nginx_status' => Serverstack::getStatus('nginx'), 'php_status' => Serverstack::getStatus('php'), 'mariadb_status' => Serverstack::getStatus('mariadb'), 'xdebug_status' => Serverstack::getStatus('xdebug'), 'mongodb_status' => Serverstack::getStatus('mongodb'), 'phpext_mongo_status' => Serverstack::getStatus('phpext_mongo'), 'memcached_status' => Serverstack::getStatus('memcached'), 'phpext_memcached_status' => Serverstack::getStatus('phpext_memcache'), 'postgresql_status' => Serverstack::getStatus('postgresql'), 'my_ip' => Serverstack::getMyIP(), 'mariadb_password' => Serverstack::getPassword('mariadb'), 'memcached_installed' => Serverstack::isInstalled('memcached'), 'xdebug_installed' => Serverstack::isInstalled('xdebug'), 'mongodb_installed' => Serverstack::isInstalled('mongodb'), 'postgresql_installed' => Serverstack::isInstalled('postgresql'), 'phpext_memcached_installed' => Serverstack::isExtensionInstalled('memcached'), 'phpext_xdebug_installed' => Serverstack::isExtensionInstalled('xdebug'), 'xdebug_extension_type' => XDebug::getXDebugExtensionType(), 'xdebug_profiler_active' => XDebug::isProfilerActive(), 'server_is_nginx' => strpos($_SERVER["SERVER_SOFTWARE"], 'nginx') !== false ? true : false);
    render('page-action', $tpl_data);
}