first commit

This commit is contained in:
Erreur32 2020-06-15 14:51:17 +02:00
parent f476e87e5e
commit 0a123fb613
6 changed files with 35 additions and 5 deletions

View file

@ -2,7 +2,12 @@
include "uinfo.class.php"; 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"); header("Content-type: image/jpeg");
@ -24,3 +29,4 @@ function imagewritestring($img, $font_size, $string)
$x = 40; $x = 40;
imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string); imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string);
} }

View file

@ -7,7 +7,10 @@ $site = array(
"version" => "2.3", "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"]);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>

3
Info/phpinfo.php Normal file
View file

@ -0,0 +1,3 @@
<?php
phpinfo(32);
?>

View file

@ -268,7 +268,7 @@ class uInfo {
$this->_ip = $ip_address; $this->_ip = $ip_address;
if (!is_null($this->_ip)) { 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"));
} }
} }

View file

@ -482,7 +482,7 @@ $geoip_longitude = getenv('GEOIP_LONGITUDE');
<div class="main"> <div class="main">
<h3>Your IP</h3> <h3>Your IP</h3>
<span class="list-heading0" style="color: #cc0000;text-shadow: 1px 1px 1px #000;"><?php echo "$ipaddress";?></span> / <span class="list-heading0" style="color: #cc0000;text-shadow: 1px 1px 1px #000;"> <?php echo gethostname(); ?> </span> <span class="list-heading0" style="color: #cc0000;text-shadow: 1px 1px 1px #000;"><?php echo "$ipaddress";?></span> / <span class="list-heading0" style="color: #cc0000;text-shadow: 1px 1px 1px #000;"> <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo "$hostname"; ?> </span>
<br> <br>
<ul> <ul>
<li> <li>
@ -505,7 +505,7 @@ $geoip_longitude = getenv('GEOIP_LONGITUDE');
<div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 80px;"> <div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 80px;">
<h2 class="post-title"> IP locale (lan) <span style="color: #cc0000;text-shadow: -1px -1px 2px #000;"> <?php echo "$ipaddress"; ?> </span> </h2> <h2 class="post-title"> IP locale (lan) <span style="color: #cc0000;text-shadow: -1px -1px 2px #000;"> <?php echo "$ipaddress"; ?> </span> </h2>
<h2 style="text-align:center;"> Hostname: <span style="color: #cc0000;text-shadow: -1px -1px 2px #000;"><?php echo gethostname(); ?></span> <br> <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo "$hostname"; ?></h2> <h2 style="text-align:center;"> Hostname: <span style="color: #cc0000;text-shadow: -1px -1px 2px #000;"> <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo "$hostname"; ?></h2>
</div> </div>
</div> </div>

18
key.asc Normal file
View file

@ -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-----