Update location of ip_info_index.php and update ip-info/index.php
This commit is contained in:
parent
7da3a66c1b
commit
c41969531e
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
$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>
|
||||||
|
?>
|
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
$client_ip = $_SERVER['REMOTE_ADDR'];
|
|
||||||
$client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
|
|
||||||
|
|
||||||
echo "<p>IP address: <b>$client_ip</b></p>";
|
|
||||||
echo "<p>Hostname: <b>$client_hostname</b></p>";
|
|
||||||
?>
|
|
Loading…
Reference in New Issue