|
<?php
/*
+--------------------------------------------------------------------------
| B-Check v0.05
| ========================================
| 南方第三制作
| http://www.zndown.com
| ========================================
| 探針官方:http://my.zndown.com/bugs/xuhao.php
| 最后更新: 2009.2.2 ?11:01
| QQ:307292967
+---------------------------------------------------------------------------
| 在編寫(xiě)過(guò)程中,學(xué)習(xí)借鑒了很多其他優(yōu)秀的探針
| 并根據(jù)自身的理解做了很多修改和優(yōu)化,就當(dāng)前而言,這是探測(cè)信息最全面的php探針了!
| 整個(gè)執(zhí)行框架,我是想到哪就寫(xiě)到哪,并沒(méi)有進(jìn)行合理的規(guī)劃,我想,在以后我有時(shí)間的時(shí)候會(huì)近一步更新
+--------------------------------------------------------------------------
*/
//抑制所有的錯(cuò)誤信息
//session_start();
ini_set('display_errors', 'off');
//計(jì)算頁(yè)面運(yùn)行時(shí)間函數(shù)
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$pagestartime=getmicrotime();
//使用通知
$messagex="來(lái)自:http://".$_SERVER['SERVER_NAME'].$_SERVER['php_SELF']."/n/n版本:".version;
$tox="307292967@qq.com";
$subjectx="B-check User";
if(isset($_SESSION['user']))
{
mail($tox, $subjectx, $messagex);
}
//重新初始化SESSION
$_SESSION['user']='lovehaoge';
//顯示常量
define("on", "<font color=/"green/"><b>√</b></font>");
define("off", "<font color=/"red/"><b>×</b></font>");
define("version", "<b>v0.05</b>");//版本號(hào)
//顯示開(kāi)關(guān)
$mysqlReShow = "none";
//性能信息結(jié)果刷新
$ts_int = (false == empty($_POST['tsint']))?$_POST['tsint']:test_int();
$ts_float = (false == empty($_POST['tsfloat']))?$_POST['tsfloat']:test_float();
$ts_io = (false == empty($_POST['tsio']))?$_POST['tsio']:test_io();
if(isset($_POST['speed']))
{
$speed=round(100/($_POST['speed']/1000),2);
}
elseif($_GET['speed']=="0")
{
$speed=6666.67;
}
elseif(isset($_GET['speed']) and $_GET['speed']>0)
{
$speed=round(100/($_GET['speed']/1000),2);
}
else
{
$speed="<font color=red> 未探測(cè) </font>";
}
php探針 B-check 官方最新版
http://www.jb51.NET/codes/10292.html
php技術(shù):phpinfo 系統(tǒng)查看參數(shù)函數(shù)代碼,轉(zhuǎn)載需保留來(lái)源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。