public function getOS()
{
? ? ? ? $info = array(
? ? ? ? ? ? '操作系統(tǒng)'=>PHP_OS,
? ? ? ? ? ? 'PHP版本'=> PHP_VERSION,
? ? ? ? ? ? 'MYSQL版本'=>? $this-> _mysql_version(),
//? ? ? ? ? ? 'Apache版本'=> apache_get_version(),
? ? ? ? ? ? '運(yùn)行環(huán)境'=>$_SERVER["SERVER_SOFTWARE"],
? ? ? ? ? ? 'PHP運(yùn)行方式'=>php_sapi_name(),
? ? ? ? ? ? 'ThinkPHP版本'=>THINK_VERSION.' [ <a target="_blank">查看最新版本</a> ]',
? ? ? ? ? ? '上傳附件限制'=>ini_get('upload_max_filesize'),
? ? ? ? ? ? '執(zhí)行時(shí)間限制'=>ini_get('max_execution_time').'秒',
? ? ? ? ? ? '服務(wù)器時(shí)間'=>date("Y年n月j日 H:i:s"),
? ? ? ? ? ? '服務(wù)器域名/IP'=>$_SERVER['SERVER_NAME'].' [ '.gethostbyname($_SERVER['SERVER_NAME']).' ]',
? ? ? ? ? ? '剩余空間'=>round((disk_free_space(".")/(1024*1024)),2).'M',
? ? ? ? ? ? 'register_globals'=>get_cfg_var("register_globals")=="1" ? "ON" : "OFF",
? ? ? ? ? ? 'magic_quotes_gpc'=>(1===get_magic_quotes_gpc())?'YES':'NO',
? ? ? ? ? ? 'magic_quotes_runtime'=>(1===get_magic_quotes_runtime())?'YES':'NO',
? ? ? ? );
? ? ? ? $this->assign('OS_info',$info);
? ? }
? ? private function _mysql_version()
{
? ? ? ? $db_info =? include(APP_PATH.'/database.php');
? ? ? ? $con = mysqli_connect($db_info['hostname'],$db_info['username'],$db_info['password']);
? ? ? ? $version = mysqli_get_server_info($con);
? ? ? ? mysqli_close($con);
? ? ? ? return? $version;
? ? }