basic layout finished

This commit is contained in:
Kristjan Komlosi
2020-07-01 15:49:57 +02:00
parent 7b3f290bf4
commit dfd393ced3
7 changed files with 65 additions and 21 deletions

25
ipinfo-pretty.php Normal file
View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo "$_SERVER[HTTP_HOST]"; ?></title>
<link rel="stylesheet" href="ipinfo-pretty.css"/>
</head>
<body>
<h1><?php echo "$_SERVER[HTTP_HOST]"; ?> - IP info</h1>
<table>
<tr>
<td>Your IP:</td><td><?php echo "$_SERVER[REMOTE_ADDR]"; ?></td>
</tr>
<tr>
<td>Your hostname:</td><td><?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']);?></td>
</tr>
<tr>
<td>Your user agent:</td><td><?php echo "$_SERVER[HTTP_USER_AGENT]"; ?></td>
</tr>
</table>
<footer>
This site runs <a href="https://github.com/cls-02/ipinfo-lite">ipinfo-lite</a> - a tiny IP info webapp
</footer>
</body>
</html>