Your IP
- / + /-
@@ -505,7 +505,7 @@ $geoip_longitude = getenv('GEOIP_LONGITUDE');
IP locale (lan)
-Hostname:
+
Hostname:
diff --git a/Info/image.php b/Info/image.php index 97d56de..22e55f1 100644 --- a/Info/image.php +++ b/Info/image.php @@ -2,7 +2,12 @@ include "uinfo.class.php"; -$user = new uInfo($_SERVER['HTTP_USER_AGENT'], $_SERVER["REMOTE_ADDR"]); +#array_key_exists('HTTP_USER_AGENT', $_SERVER) && $_SERVER['HTTP_USER_AGENT'] ? $_SERVER["HTTP_USER_AGENT"] : "undefined" ; +#$user = new uInfo($_SERVER["HTTP_USER_AGENT"], $_SERVER["REMOTE_ADDR"]) ; + +$userAgent = array_key_exists('HTTP_USER_AGENT', $_SERVER) && $_SERVER['HTTP_USER_AGENT'] ? $_SERVER["HTTP_USER_AGENT"] : "undefined" ; + +$user = new uInfo($userAgent, $_SERVER["REMOTE_ADDR"]) ; header("Content-type: image/jpeg"); @@ -24,3 +29,4 @@ function imagewritestring($img, $font_size, $string) $x = 40; imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string); } + diff --git a/Info/index.php b/Info/index.php index 77e1f31..88c39f6 100644 --- a/Info/index.php +++ b/Info/index.php @@ -7,7 +7,10 @@ $site = array( "version" => "2.3", ); -$user = new uInfo($_SERVER["HTTP_USER_AGENT"], $_SERVER["REMOTE_ADDR"]); +$userAgent = array_key_exists('HTTP_USER_AGENT', $_SERVER) && $_SERVER['HTTP_USER_AGENT'] ? $_SERVER["HTTP_USER_AGENT"] : "undefined" ; + +$user = new uInfo($userAgent, $_SERVER["REMOTE_ADDR"]) ; +#$user = new uInfo($_SERVER["HTTP_USER_AGENT"], $_SERVER["REMOTE_ADDR"]); ?> diff --git a/Info/phpinfo.php b/Info/phpinfo.php new file mode 100644 index 0000000..83e3bb8 --- /dev/null +++ b/Info/phpinfo.php @@ -0,0 +1,3 @@ + diff --git a/Info/uinfo.class.php b/Info/uinfo.class.php index 85a58d4..ac05c59 100644 --- a/Info/uinfo.class.php +++ b/Info/uinfo.class.php @@ -268,7 +268,7 @@ class uInfo { $this->_ip = $ip_address; if (!is_null($this->_ip)) { - $this->_ipInfo = json_decode(@file_get_contents("http://ipinfo.io/" . $this->_ip . "/json")); + $this->_ipInfo = json_decode(@file_get_contents("https://ipinfo.io/" . $this->_ip . "/json")); } } diff --git a/index.php b/index.php index 67cf646..6550c33 100755 --- a/index.php +++ b/index.php @@ -482,7 +482,7 @@ $geoip_longitude = getenv('GEOIP_LONGITUDE');