-
Notifications
You must be signed in to change notification settings - Fork 1
/
console.php
executable file
·59 lines (46 loc) · 1.92 KB
/
console.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
<?php
ini_set('display_errors', 'on');
error_reporting(1);
log_display();
function log_display() {
echo '
<table class="table table-striped pull-left">
<thead>
<th></th>
<th>Date</th>
<th>Time</th>
<th>IP</th>
<th class="align-right">Tor Request</th>
<th></th>
</thead>
<tbody>
';
$myfile = fopen("./logs/visitors.log", "r") or die("Unable to open file!");
$i=0;
while(!feof($myfile)) {
echo" <tr>
<td class='align-center'>
</td>";
$i++;
$linex=fgets($myfile);
list($date_post, $time_post, $ip_post, $tor_req) = split("\t", $linex);
if ($tor_req == 1){
$message = "<font color='red'>$tor_req - DETECTED</font>";
}else {
$message = "false - real ip";
}
echo "<td>$date_post</td>";
echo "<td>$time_post</td>";
echo "<td><a href='http://www.telize.com/geoip/$ip_post' target='_blank'>$ip_post</a></td>";
echo "<td class='align-right'><span class='price'>
Is TOR:
$tor_req $message
</span></td>";
echo" <td class='align-right'><a href='#'>View</a> | <a href='#'>Delete</a></td>
</tr>";
}
fclose($myfile);
echo ' </tbody>
</table>';
}
?>