function statistic() { $this->loadNavigation(); $arr = array('NODES' => ''); $stat = array('NAME' => 'Движок', 'STATISTIC' => 'Пользователей онлайн: ' . SessionManager::getConnectedCount()); $stat['STATISTIC'] .= ' IP-адресов в списке: ' . Engine::getIpCount(); $stat['STATISTIC'] .= ' Софт в списке: ' . Engine::getStuffCount(); $stat['STATISTIC'] .= ' Подключено контроллеров: ' . Engine::getControllersCount(); $stat['STATISTIC'] .= ', из них активно: ' . Engine::getActivedControllersCount(); $arr['NODES'] = View::load(array('engine', 'statisticNode'), $stat); $files = Engine::loadControllers(); foreach ($files as $file) { if ($file['name'] != strtolower(__CLASS__)) { $class = Route::getDir(Settings::$controllersDir, $file['name']); if ($class) { include_once $class; $class = new $file['name'](true); $arr['NODES'] .= $class->statistic(); } } } View::loadContent('statistic', $arr, 'engine'); View::render(); }