Update ip-info/index.php
This commit is contained in:
parent
c41969531e
commit
bd47fb304f
|
@ -1,23 +1,7 @@
|
|||
<?php
|
||||
$client_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
|
||||
$client_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>IP Info - Snowcake</title>
|
||||
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.png">
|
||||
<link rel="stylesheet" href="/main_theme.css">
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<h1>IP Info</h1>
|
||||
<div>
|
||||
<a href="/" class="button">🏠 Back to Home</a>
|
||||
</div>
|
||||
<div class="content">
|
||||
Your IP address is: echo "<p>IP address: <b>$client_ip</b></p>";
|
||||
Your hostname is: echo "<p>Hostname: <b>$client_hostname</b></p>";
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
echo "<p>IP address: <b>$client_ip</b></p>";
|
||||
echo "<p>Hostname: <b>$client_hostname</b></p>";
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue