-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathproxy.php
68 lines (58 loc) · 1.38 KB
/
proxy.php
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
<?php
// require(dirname(__FILE__).'/include/config.inc.php');
/**
* Created by PhpStorm.
* User: 重剑无锋
* Date: 17/7/23
* Time: 下午9:19
*/
function index()
{
$mode = $_GET['m'];
global $db;
$sql = "SELECT * FROM valid_ip order by score desc";
$results = $db->query($sql);
// echo $results
if (mysql_num_rows($results) > 0) {
$i = 1;
while ($fs = $db->fetch_array($results)) {
$id = $i;
$ip = $fs["0"];
$test_times = $fs["1"];
$failure_times = $fs["2"];
$response_time = $fs["4"];
$score = $fs["5"];
$html_str .= "
<tr class=\"$class\">
<td>
$id
</td>
<td style=\"word-break:break-all; word-wrap:break-word;\">
<a href=\"http://$ip\" target=\"_blank\">$ip</a>
</td>
<td>
$test_times
</td>
<td>
$failure_times
</td>
<td>
$response_time
</td>
<td>
$score
</td>
<td>
<a href=\"?m=reflush\">刷新</a>|<a href=\"javascript:alert('请以管理员身份登录')\">删除</a>
</td>
</tr>\r\n";
$i++;
}
return $html_str;
}
else {
print "False";
}
#include("html/proxy.html");
}
?>