"; 162 | Echo "This shows all the functions disable by the system\n"; 163 | print_r($arr); 164 | echo ""; 165 | exit(); 166 | } 167 | 168 | //MySQL Detection 169 | if ($_POST['act'] == 'MySQL Test') 170 | { 171 | $host = isset($_POST['host']) ? trim($_POST['host']) : ''; 172 | $port = isset($_POST['port']) ? (int) $_POST['port'] : ''; 173 | $login = isset($_POST['login']) ? trim($_POST['login']) : ''; 174 | $password = isset($_POST['password']) ? trim($_POST['password']) : ''; 175 | $host = preg_match('~[^a-z0-9\-\.]+~i', $host) ? '' : $host; 176 | $port = intval($port) ? intval($port) : ''; 177 | $login = preg_match('~[^a-z0-9\_\-]+~i', $login) ? '' : htmlspecialchars($login); 178 | $password = is_string($password) ? htmlspecialchars($password) : ''; 179 | } 180 | elseif ($_POST['act'] == 'Function Test') 181 | { 182 | $funRe = "Function".$_POST['funName']."Test results support the position: ".isfun1($_POST['funName']); 183 | } 184 | elseif ($_POST['act'] == 'Mail Test') 185 | { 186 | $mailRe = "Mail test results: send"; 187 | if($_SERVER['SERVER_PORT']==80){$mailContent = "http://".$_SERVER['SERVER_NAME'].($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);} 188 | else{$mailContent = "http://".$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT'].($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);} 189 | $mailRe .= (false !== @mail($_POST["mailAdd"], $mailContent, "This is a test mail!")) ? "Complete":"Failure"; 190 | } 191 | 192 | //Network speed test 193 | if(isset($_POST['speed'])) 194 | { 195 | $speed=round(100/($_POST['speed']/1000),2); 196 | } 197 | elseif($_GET['speed']=="0") 198 | { 199 | $speed=6666.67; 200 | } 201 | elseif(isset($_GET['speed']) and $_GET['speed']>0) 202 | { 203 | $speed=round(100/($_GET['speed']/1000),2); //下载速度: $speed kb/s 204 | } 205 | else 206 | { 207 | $speed=" No Test "; 208 | } 209 | 210 | 211 | // Detection function support 212 | function isfun($funName = '') 213 | { 214 | if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误'; 215 | return (false !== function_exists($funName)) ? '√' : '×'; 216 | } 217 | function isfun1($funName = '') 218 | { 219 | if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误'; 220 | return (false !== function_exists($funName)) ? '√' : '×'; 221 | } 222 | 223 | //Integer arithmetic ability test 224 | function test_int() 225 | { 226 | $timeStart = gettimeofday(); 227 | for($i = 0; $i < 3000000; $i++) 228 | { 229 | $t = 1+1; 230 | } 231 | $timeEnd = gettimeofday(); 232 | $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"]; 233 | $time = round($time, 3)." Second"; 234 | return $time; 235 | } 236 | 237 | //Floating-point computing power test 238 | function test_float() 239 | { 240 | //Value of pi 241 | $t = pi(); 242 | $timeStart = gettimeofday(); 243 | 244 | for($i = 0; $i < 3000000; $i++) 245 | { 246 | //Square root 247 | sqrt($t); 248 | } 249 | 250 | $timeEnd = gettimeofday(); 251 | $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"]; 252 | $time = round($time, 3)."Second"; 253 | return $time; 254 | } 255 | 256 | //IO proficiency test 257 | function test_io() 258 | { 259 | $fp = @fopen(PHPSELF, "r"); 260 | $timeStart = gettimeofday(); 261 | for($i = 0; $i < 10000; $i++) 262 | { 263 | @fread($fp, 10240); 264 | @rewind($fp); 265 | } 266 | $timeEnd = gettimeofday(); 267 | @fclose($fp); 268 | $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"]; 269 | $time = round($time, 3)."Second"; 270 | return($time); 271 | } 272 | 273 | function GetCoreInformation() {$data = file('/proc/stat');$cores = array();foreach( $data as $line ) {if( preg_match('/^cpu[0-9]/', $line) ){$info = explode(' ', $line);$cores[]=array('user'=>$info[1],'nice'=>$info[2],'sys' => $info[3],'idle'=>$info[4],'iowait'=>$info[5],'irq' => $info[6],'softirq' => $info[7]);}}return $cores;} 274 | function GetCpuPercentages($stat1, $stat2) {if(count($stat1)!==count($stat2)){return;}$cpus=array();for( $i = 0, $l = count($stat1); $i < $l; $i++) { $dif = array(); $dif['user'] = $stat2[$i]['user'] - $stat1[$i]['user'];$dif['nice'] = $stat2[$i]['nice'] - $stat1[$i]['nice']; $dif['sys'] = $stat2[$i]['sys'] - $stat1[$i]['sys'];$dif['idle'] = $stat2[$i]['idle'] - $stat1[$i]['idle'];$dif['iowait'] = $stat2[$i]['iowait'] - $stat1[$i]['iowait'];$dif['irq'] = $stat2[$i]['irq'] - $stat1[$i]['irq'];$dif['softirq'] = $stat2[$i]['softirq'] - $stat1[$i]['softirq'];$total = array_sum($dif);$cpu = array();foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 2);$cpus['cpu' . $i] = $cpu;}return $cpus;} 275 | $stat1 = GetCoreInformation();sleep(1);$stat2 = GetCoreInformation();$data = GetCpuPercentages($stat1, $stat2); 276 | $cpu_show = $data['cpu0']['user']."%us, ".$data['cpu0']['sys']."%sy, ".$data['cpu0']['nice']."%ni, ".$data['cpu0']['idle']."%id, ".$data['cpu0']['iowait']."%wa, ".$data['cpu0']['irq']."%irq, ".$data['cpu0']['softirq']."%softirq"; 277 | 278 | 279 | // CPU-related information according to the different systems 280 | switch(PHP_OS) 281 | { 282 | case "Linux": 283 | $sysReShow = (false !== ($sysInfo = sys_linux()))?"show":"none"; 284 | break; 285 | 286 | case "FreeBSD": 287 | $sysReShow = (false !== ($sysInfo = sys_freebsd()))?"show":"none"; 288 | break; 289 | 290 | /* 291 | case "WINNT": 292 | $sysReShow = (false !== ($sysInfo = sys_windows()))?"show":"none"; 293 | break; 294 | */ 295 | 296 | default: 297 | break; 298 | } 299 | 300 | //linux System detects 301 | function sys_linux() 302 | { 303 | // CPU 304 | if (false === ($str = @file("/proc/cpuinfo"))) return false; 305 | $str = implode("", $str); 306 | @preg_match_all("/model\s+name\s{0,}\:+\s{0,}([\w\s\)\(\@.-]+)([\r\n]+)/s", $str, $model); 307 | @preg_match_all("/cpu\s+MHz\s{0,}\:+\s{0,}([\d\.]+)[\r\n]+/", $str, $mhz); 308 | @preg_match_all("/cache\s+size\s{0,}\:+\s{0,}([\d\.]+\s{0,}[A-Z]+[\r\n]+)/", $str, $cache); 309 | @preg_match_all("/bogomips\s{0,}\:+\s{0,}([\d\.]+)[\r\n]+/", $str, $bogomips); 310 | if (false !== is_array($model[1])) 311 | { 312 | $res['cpu']['num'] = sizeof($model[1]); 313 | /* 314 | for($i = 0; $i < $res['cpu']['num']; $i++) 315 | { 316 | $res['cpu']['model'][] = $model[1][$i].' ('.$mhz[1][$i].')'; 317 | $res['cpu']['mhz'][] = $mhz[1][$i]; 318 | $res['cpu']['cache'][] = $cache[1][$i]; 319 | $res['cpu']['bogomips'][] = $bogomips[1][$i]; 320 | }*/ 321 | if($res['cpu']['num']==1) 322 | $x1 = ''; 323 | else 324 | $x1 = ' ×'.$res['cpu']['num']; 325 | $mhz[1][0] = ' | Frequency:'.$mhz[1][0]; 326 | $cache[1][0] = ' | Secondary cache:'.$cache[1][0]; 327 | $bogomips[1][0] = ' | Bogomips:'.$bogomips[1][0]; 328 | $res['cpu']['model'][] = $model[1][0].$mhz[1][0].$cache[1][0].$bogomips[1][0].$x1; 329 | if (false !== is_array($res['cpu']['model'])) $res['cpu']['model'] = implode("
| Alo By Asif | 779 |PHP | 780 |Module | 781 |Other | 782 |Database | 783 |Performance | 784 |Speed | 785 |MySQL | 786 |Function | 787 |Asif.im | 789 |
|---|
| Server Parameters | |||
|---|---|---|---|
| User - Server - IP | 797 |- () Your IP address is: | 798 |||
| Server identifier | 801 |802 | | ||
| Server OS | 805 |Kernel version: | 806 |Web Server | 807 |808 | |
| Server Language | 811 |812 | | Server Port | 813 |814 | |
| Server HostName | 817 |818 | | Absolute Path | 819 |820 | |
| Administrator Mail | 823 |824 | | Alo Path | 825 |826 | |
| Real-time Data Server | |||||
|---|---|---|---|---|---|
| Current Server Time | 834 |835 | | Server Uptime | 836 |837 | | ||
| CPU Model [Core] | 840 |841 | | ||||
| CPU usage | 844 |";}else{echo "Only supports the Linux system";}?> 845 | | 846 |||||
| Space usage | 849 |850 | Total Space G, 851 | Used G, 852 | Free G, 853 | Rate % 854 | 855 | | 856 |||||
| Memory usage | 859 |860 | 870 | Total Memory: 871 | 872 | , Used 873 | 874 | , Free 875 | 876 | , Rate 877 | 878 | 879 | 0) 882 | { 883 | ?> 884 | Cache Memory 885 | , Rate 886 | 887 | % | Buffers 888 | 889 | 890 | Real Memory Used 891 | 892 | , Real Memory Free 893 | 894 | , Rate 895 | 896 | % 897 | 898 | 0) 902 | { 903 | ?> 904 | SWAP: 905 | 906 | , Used 907 | 908 | , Free 909 | 910 | , Rate 911 | 912 | % 913 | 914 | 915 | 918 | | 919 |||||
| Average System Load | 922 |923 | | ||||
| NetWork | ||||
|---|---|---|---|---|
| : | 934 |In : | 935 |Real time: 0B/s | 936 |Out : | 937 |Real time: 0B/s | 938 |
| PHP has been compiled module testing | 946 ||||
|---|---|---|---|
|
949 | $value) {
952 | if ($key!=0 && $key%13==0) {
953 | echo ' '; 954 | } 955 | echo "$value "; 956 | } 957 | ?> 958 | |
959 |
| PHP Parameters | |||
|---|---|---|---|
| PHP Info: | 967 |968 | 972 | ×' :"PHPINFO";?> 973 | | 974 |PHP Version: | 975 |976 | |
| Run PHP: | 979 |980 | | Memory Limit: | 981 |982 | |
| PHP Safe Mode: | 985 |986 | | Post Max Size: | 987 |988 | |
| Upload Max Filesize: | 991 |992 | | Floating-point data of significant digits: | 993 |994 | |
| Max Execution Time: | 997 |Second | 998 |Socket TimeOut: | 999 |Second | 1000 |
| PHP Doc Root: | 1003 |1004 | | User Dir: | 1005 |1006 | |
| Enable Dl: | 1009 |1010 | | Include Path: | 1011 |1012 | |
| Display Errors: | 1015 |1016 | | Register Globals: | 1017 |1018 | |
| Magic Quotes Gpc: | 1021 |1022 | | "<?...?>"Short Open Tag: | 1023 |1024 | |
| "<% %>"ASP Tags: | 1027 |1028 | | Ignore Repeated Errors: | 1029 |1030 | |
| Ignore Repeated Source: | 1033 |1034 | | Report Memleaks: | 1035 |1036 | |
| Magic Quotes Gpc: | 1039 |1040 | | Magic Quotes Runtime: | 1041 |1042 | |
| Allow URL Fopen: | 1045 |1046 | | Register Argc Argv: | 1047 |1048 | |
| Cookie: | 1051 |√' : '×';?> | 1052 |Spell check(ASpell Library): | 1053 |1054 | |
| High-precision math(BCMath): | 1057 |1058 | | PREL(PCRE): | 1059 |1060 | |
| PDF: | 1062 |1063 | | SNMP: | 1064 |1065 | |
| VMailMgr: | 1068 |1069 | | Curl: | 1070 |1071 | |
| SMTP: | 1074 |√' : '×';?> | 1075 |SMTP: | 1076 |×';?> | 1077 |
| Enable Functions: | 1080 |Click here to view more! | 1081 |||
| Disable Functions: | 1084 |
1085 | ×';
1090 | }
1091 | else
1092 | {
1093 | //echo $disFuns;
1094 | $disFuns_array = explode(',',$disFuns);
1095 | foreach ($disFuns_array as $key=>$value)
1096 | {
1097 | if ($key!=0 && $key%5==0) {
1098 | echo ' '; 1099 | } 1100 | echo "$value "; 1101 | } 1102 | } 1103 | 1104 | ?> 1105 | |
1106 | ||
| Components | |||
|---|---|---|---|
| FTP: | 1115 |1116 | | XML: | 1117 |1118 | |
| Session: | 1121 |1122 | | Socket: | 1123 |1124 | |
| Calendar | 1127 |1128 | | 1129 |Allow Url Fopen: | 1130 |1131 | |
| GD Library: | 1134 |1135 | ×';} 1140 | ?> | 1141 |Zlib: | 1142 |1143 | |
| IMAP: | 1146 |1147 | | JDToGregorian: | 1148 |1149 | |
| Preg Match: | 1152 |1153 | | WDDX: | 1154 |1155 | |
| Iconv: | 1158 |1159 | | mbstring: | 1160 |1161 | |
| BCADD: | 1164 |1165 | | LDAP: | 1166 |1167 | |
| MCrypt: | 1170 |1171 | | Mhash Count: | 1172 |1173 | |
| Other Components | |||
|---|---|---|---|
| Zend Version | 1182 |×';}else{echo $zend_version;}?> | 1183 |1184 | 2) 1188 | { 1189 | echo "ZendGuardLoader[On]"; 1190 | } 1191 | else 1192 | { 1193 | echo "Zend Optimizer"; 1194 | } 1195 | ?> 1196 | | 1197 |2){echo (get_cfg_var("zend_loader.enable"))?'√':'×';} else{if(function_exists('zend_optimizer_version')){ echo zend_optimizer_version();}else{ echo (get_cfg_var("zend_optimizer.optimization_level")||get_cfg_var("zend_extension_manager.optimizer_ts")||get_cfg_var("zend.ze1_compatibility_mode")||get_cfg_var("zend_extension_ts"))?'√':'×';}}?> | 1198 |
| eAccelerator | 1201 |×";} ?> | 1202 |ioncube | 1203 |×";}?> | 1204 |
| XCache | 1207 |×";} ?> | 1208 |APC | 1209 |×";} ?> | 1210 |
| Database | |||
|---|---|---|---|
| MySQL: | 1219 |1220 | 1228 | | 1229 |ODBC: | 1230 |1231 | |
| Oracle: | 1234 |1235 | | SQL Server: | 1236 |1237 | |
| dBASE: | 1240 |1241 | | mSQL: | 1242 |1243 | |
| SQLite: | 1246 |√ ';echo "SQLite3 Ver ";echo $sqliteVer[versionString];}else {echo isfun("sqlite_close");if(isfun("sqlite_close") == '√') {echo " : ".@sqlite_libversion();}}?> | 1247 |Hyperwave: | 1248 |1249 | |
| Postgre SQL: | 1252 |1253 | | Informix: | 1254 |1255 | |
| DBA database: | 1258 |1259 | | DBM database: | 1260 |1261 | |
| FilePro database: | 1264 |1265 | | SyBase database: | 1266 |1267 | |
| By M Asif Rahman | 1471 |Processed in seconds. memory usage. | 1472 |TOP | 1473 |