Copy CodeThe code is as follows:
/*
+--------------------------------------------------------------------------
| B-check v0.05
| ========================================
| South Third production
| Http://www.zndown.com
| ========================================
| Probe official: http://my.zndown.com/bugs/xuhao.php
| Last update: 2009.2.2 11:01
| qq:307292967
+---------------------------------------------------------------------------
| During the writing process, learning from a lot of other excellent probes
| And according to their own understanding to do a lot of modification and optimization, for the moment, this is the most comprehensive detection information PHP probe!
| The entire implementation framework, I was thinking of where to write, and did not carry out reasonable planning, I think, in the future I have time will be nearly one step later update
+--------------------------------------------------------------------------
*/
Suppress all error messages
Session_Start ();
Ini_set (' display_errors ', ' off ');
Calculate the page run time function
function Getmicrotime () {
List ($usec, $sec) = Explode ("", Microtime ());
return (float) $usec + (float) $sec);
}
$pagestartime =getmicrotime ();
Use notifications
$messagex = "From:/http". $_server[' server_name '].$_server[' php_self ']. " \ n \ nthe version: ". versions;
$tox = "307292967@qq.com";
$subjectx = "B-check User";
if (Isset ($_session[' user '))
{
Mail ($tox, $subjectx, $messagex);
}
Re-initialize session
$_session[' user ']= ' lovehaoge ';
Display constants
Define ("On", "
√");
Define ("Off", "
x");
Define ("Version", "
v0.05");//Version number
Display switch
$mysqlReShow = "None";
Performance Information Results Refresh
$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 = "not detected";
}
PHP Probe B-check official latest version
Http://www.jb51.net/codes/10292.html
http://www.bkjia.com/PHPjc/320263.html www.bkjia.com true http://www.bkjia.com/PHPjc/320263.html techarticle Copy the code code as follows: PHP/* +--------------------------------------------------------------------------| B-check v0.05 | ======================================== | South Third ...