count(); $picturesize = Attachment::where('mimetype', 'like', 'image/%')->sum('filesize'); // 服务器与运行环境信息 $serverInfo = [ 'os' => PHP_OS . ' (' . php_uname('r') . ')', 'php_version' => PHP_VERSION, 'sapi' => php_sapi_name(), 'server_soft' => $_SERVER['SERVER_SOFTWARE'] ?? 'Nginx / PHP', 'upload_max' => ini_get('upload_max_filesize'), 'post_max' => ini_get('post_max_size'), 'max_exec_time' => ini_get('max_execution_time') . 's', 'memory_limit' => ini_get('memory_limit'), 'mysql_version' => Db::query("SELECT VERSION() as v")[0]['v'] ?? '5.7', 'server_time' => date('Y-m-d H:i:s'), 'timezone' => date_default_timezone_get(), ]; $this->view->assign([ 'dbtablenums' => count($dbTableList), 'dbsize' => $dbsize, 'totaladdon' => $totaladdon, 'totalworkingaddon' => $totalworkingaddon, 'attachmentnums' => $attachmentnums, 'attachmentsize' => $attachmentsize, 'picturenums' => $picturenums, 'picturesize' => $picturesize, 'serverInfo' => $serverInfo, ]); return $this->view->fetch(); } }