aboutsummaryrefslogtreecommitdiff
path: root/ip.rhtml.php
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-09 12:24:36 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-09 12:24:36 +0200
commit089ba73c3e357cb25d18c99fd05e70c8340578d1 (patch)
tree73b3cd674355c4dc68e93ff5cb7283a3b8ff4de6 /ip.rhtml.php
parenteb6998f8ce4119f208f97cbfc9180a605617732f (diff)
downloadwebsite-089ba73c3e357cb25d18c99fd05e70c8340578d1.tar.gz
website-089ba73c3e357cb25d18c99fd05e70c8340578d1.zip
Rename ip.rhtml to ip.rphp
Diffstat (limited to 'ip.rhtml.php')
-rw-r--r--ip.rhtml.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/ip.rhtml.php b/ip.rhtml.php
deleted file mode 100644
index 94b63fb..0000000
--- a/ip.rhtml.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<h1>Il tuo IP</h1>
-<p>
-<?php
-// Function to get the client IP address
-function get_client_ip() {
- $ipaddress = '';
- if (isset($_SERVER['HTTP_CLIENT_IP']))
- $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
- else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
- $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
- else if(isset($_SERVER['HTTP_X_FORWARDED']))
- $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
- else if(isset($_SERVER['HTTP_FORWARDED_FOR']))
- $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
- else if(isset($_SERVER['HTTP_FORWARDED']))
- $ipaddress = $_SERVER['HTTP_FORWARDED'];
- else if(isset($_SERVER['REMOTE_ADDR']))
- $ipaddress = $_SERVER['REMOTE_ADDR'];
- else
- $ipaddress = 'UNKNOWN';
- return $ipaddress;
-}
-
-echo get_client_ip();
-?>
-</p> \ No newline at end of file