public function indexAction()
 {
     $data = [];
     $data['framework_version'] = Version::get();
     $data['php_version'] = PHP_VERSION;
     $data['sapi'] = PHP_SAPI;
     if (function_exists('apache_get_version')) {
         $data['apache_version'] = apache_get_version();
     }
     $data['operating_system'] = php_uname();
     $data['system_time'] = date('Y-m-d H:i:s');
     $data['loaded_ini'] = '';
     $data['server_ip'] = $_SERVER['SERVER_ADDR'];
     $data['client_ip'] = $_SERVER['REMOTE_ADDR'];
     $data['upload_max_filesize'] = ini_get('upload_max_filesize');
     $data['post_max_size'] = ini_get('post_max_size');
     $data['loaded_ini'] = php_ini_loaded_file();
     $loaded_extensions = get_loaded_extensions();
     sort($loaded_extensions);
     $data['loaded_extensions'] = implode(', ', $loaded_extensions);
     $this->view->setVar('data', $data);
 }
예제 #2
0
 public function aboutAction()
 {
     $this->view->setVar('version', Version::get());
     $this->view->setVar('current_time', date('Y-m-d H:i:s'));
     $this->flash->error(date('Y-m-d H:i:s'));
 }
예제 #3
0
 /**
  * @return array
  */
 protected function _getBasic()
 {
     $loaded_extensions = get_loaded_extensions();
     sort($loaded_extensions, SORT_STRING | SORT_FLAG_CASE);
     $r = ['mvc' => $this->router->getModuleName() . '::' . $this->router->getControllerName() . '::' . $this->router->getActionName(), 'request_method' => $_SERVER['REQUEST_METHOD'], 'request_url' => $this->request->getUrl(), 'query_count' => $this->_sql_count, 'execute_time' => round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 4), 'memory_usage' => (int) (memory_get_usage(true) / 1024) . 'k/' . (int) (memory_get_peak_usage(true) / 1024) . 'k', 'system_time' => date('Y-m-d H:i:s'), 'server_ip' => $_SERVER['SERVER_ADDR'], 'client_ip' => $_SERVER['REMOTE_ADDR'], 'operating_system' => php_uname(), 'manaphp_version' => Version::get(), 'php_version' => PHP_VERSION, 'sapi' => PHP_SAPI, 'loaded_ini' => php_ini_loaded_file(), 'loaded_extensions' => implode(', ', $loaded_extensions)];
     return $r;
 }