-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
34 lines (34 loc) · 787 Bytes
/
index.php
File metadata and controls
34 lines (34 loc) · 787 Bytes
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Show IP</title>
</head>
<body>
<?php date_default_timezone_set('UTC'); ?>
<table border="0">
<tr>
<td>Current time:</td>
<td><?php echo date(DATE_ATOM); ?></td>
</tr>
<?php
$ipdata = file_get_contents("ip.txt");
if ($ipdata === FALSE){
echo "<tr><td>ERROR</td></tr></table></body></html>";
exit;
}
$lines = explode("\n", $ipdata);
foreach ($lines as $line) {
$ipdata = explode(" - ", $line);
?>
<tr>
<td><?php echo $ipdata[0] ?></td>
<td><?php echo $ipdata[1] ?></td>
</tr>
<?php
}
?>
</table>
</body>
</html>