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');

Your IP

- / + /
diff --git a/key.asc b/key.asc new file mode 100644 index 0000000..68bf0d1 --- /dev/null +++ b/key.asc @@ -0,0 +1,18 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBFo9lhYBCADbwg74EIVrun0m5g0tgXAAZ6mMDPCm6sFom7DKPhjqQWR1UmNn +9TdSIYhU6E/LKb8EB+Rowi1VK+woGRTB74kDGZC15xhZY/Cjp9JV8ZrVH0PSlBmo +Rc30hzJ8BEbUSFZE4Gdd5fDwSiQ0+yqs6Q00MrSNTMUS9pBlfC2NdZ7oG5ZlcEjc +JRY3Fb8jHTRtLAntZfEUxtVSl3o/9ACimgke4lb79m7cW4F2z7JIN19hGBgKobij +N6Y6n8VVMxz2C49xgqqCjHpcWa744GK+96fCXUsWS8qh1G7uN9coKwh13W6eldKP +DpXSdKYoE37lr32PiZiCG5P7BL60sM/bIotPABEBAAG0I1Jlc2lsaW8sIEluYy4g +PHN1cHBvcnRAZ2V0c3luYy5jb20+iQFOBBMBCAA4FiEE4bQhAuvsqWnjDSykvmbM +TD8XHeIFAlo9lhYCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQvmbMTD8X +HeJQEwgA0EwPb4DA8EgGNfSjen4pT+Qcf+ExJlnFwSCTEZB747B23PaVz9Gi1e/Y +qb+4OmgA5Rz1VDYERMioKrPhwYFv6t9ctSjot9PswrTYcSRYtJQ9i8OnwxFI7O0g +XE3Uefa54GP+yeusyB8HcdlZ1oIWSMY6XPK9NxPvyDdI4yHLWYoMW/NUoSDFoBlb +k/mUFMeQDVAerOLMNyW0jeCYjJFp8kreZ6pmgm1ZXyPwGBjKqfeMioHN3EZw0rDN +nn5u1QhraPaFfwpOUwJrzsp1tVc4E83xXjfuD0m7bhS9WQofU/CY9lpXXLku0GXH +4J2IJ1IsYaLqOiY1GSLeMoTqiJzXuw== +=40s7 +-----END PGP PUBLIC KEY BLOCK-----