Repository navigation
Expand file tree
/
Copy pathchack.php
More file actions
107 lines (85 loc) · 2.13 KB
/
Copy pathchack.php
File metadata and controls
107 lines (85 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
function is_have($f){
return function_exists($f)?"<font color='green'>开启</font>":"<font color='red'>关闭</font>";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>T1支付 - 网站安装检测程序</title>
<meta charset="utf-8">
</head>
<body>
<h3>环境相关内容检测:</h3>
<table border="1">
<tr>
<th>项目</th>
<th>状态</th>
<th>说明</th>
</tr>
<tr>
<td>php版本</td>
<td><?=substr(PHP_VERSION,0,3)?></td>
<td>php版本必须大于7.0</td>
</tr>
<tr>
<td>GD2库</td>
<td><?=is_have("imagecreate")?></td>
<td>验证码图像生成处理库</td>
</tr>
<tr>
<td>Mysqli库</td>
<td><?=is_have("mysqli_connect")?></td>
<td>数据库链接函数</td>
</tr>
<tr>
<td>Curl库</td>
<td><?=is_have("curl_init")?></td>
<td>网络请求相关函数</td>
</tr>
<tr>
<td>mb_strlen函数</td>
<td><?=is_have("mb_strlen")?></td>
<td>中文字符串处理函数</td>
</tr>
<tr>
<td>伪静态</td>
<td>
<img src="randcode.img" style="height: 30px;width: 50px">
</td>
<td>若看得见验证码说明伪静态配置成功!</td>
</tr>
</table>
<br>
<br>
<h3>服务器配置状态检测:</h3>
<table border="1">
<tr>
<th>项目</th>
<th>状态</th>
<th>说明</th>
</tr>
<tr>
<td>数据库链接</td>
<td>
<?php
@include("lib/config.php");
$mysql = @mysqli_connect($loca,$user,$pass,$name);
if($mysql)echo "<font color='green'>已链接</font>";
else echo "<font color='red'>未连接</font>";
?>
</td>
<td>未链接数据库网站将无法运行</td>
</tr>
<tr>
<td>文件上传最大值</td>
<td>
<?php
echo ini_get('upload_max_filesize');
?>
</td>
<td>建议设置为20M,网盘系统限制为1k~20m</td>
</tr>
</table>
</body>
</html>