Compare commits

...

18 Commits
1.3 ... master

Author SHA1 Message Date
Erreur32 fb0ae6d009 Mettre à jour 'README.md' 2020-07-20 15:33:21 +02:00
Erreur32 d953909c59 first commit 2020-06-25 11:25:37 +02:00
Erreur32 4e150b6db9 first commit 2020-06-17 22:34:22 +02:00
Erreur32 3ba01e4904 Mettre à jour 'README.md' 2020-06-16 22:08:45 +02:00
Erreur32 24bd95ad6d Transférer les fichiers vers 'Screenshot' 2020-06-16 22:08:09 +02:00
Erreur32 f9a9f858a5 Supprimer 'Screenshot/Firefox_Screenshot_2020.png' 2020-06-16 22:07:55 +02:00
Erreur32 8888dc2643 Mettre à jour 'README.md' 2020-06-16 22:00:14 +02:00
Erreur32 3d1cb1b6f0 Mettre à jour 'README.md' 2020-06-16 21:59:43 +02:00
Erreur32 c1ad422732 Mettre à jour 'README.md' 2020-06-16 21:58:47 +02:00
Erreur32 4e1c955ca4 Mettre à jour 'README.md' 2020-06-16 21:58:23 +02:00
Erreur32 aa69c29c09 Mettre à jour 'README.md' 2020-06-16 21:56:11 +02:00
Erreur32 822c069a35 Transférer les fichiers vers 'Screenshot' 2020-06-16 21:53:20 +02:00
Erreur32 4aaca73d7c first commit 2020-06-16 21:22:16 +02:00
Erreur32 28e791f7f5 first commit 2020-06-16 18:26:19 +02:00
Erreur32 200c342de3 first commit 2020-06-15 16:37:36 +02:00
Erreur32 746fe9f4d3 first commit 2020-06-15 14:58:40 +02:00
Erreur32 64ce833539 first commit 2020-06-15 14:53:18 +02:00
Erreur32 0a123fb613 first commit 2020-06-15 14:51:17 +02:00
11 changed files with 146 additions and 131 deletions

View File

@ -1,5 +1,3 @@
updater-geoip.sh
#!/bin/bash
# geoip-lite-update -- update geoip lite database(s).

View File

@ -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");
@ -20,7 +25,8 @@ function imagewritestring($img, $font_size, $string)
{
$color = imagecolorallocate($img, 180, 180, 180);
static $y = 110;
$y += $font_size + 12;
$y += $font_size + 14;
$x = 40;
imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string);
}

30
Info/image0.php Normal file
View File

@ -0,0 +1,30 @@
<?php
include "uinfo.class.php";
#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");
$img = imagecreatefromjpeg("img/type0.jpg");
imagewritestring($img, 1, $user->host->ip);
imagewritestring($img, 2, $user->host->city . " , " . $user->os->name . " " . $user->os->version);
imagewritestring($img, 3, $user->browser->name . " , " . $user->browser->version . " " . 'Pays: ' . $user->host->country);
imagejpeg($img, NULL, 100);
imagedestroy($img);
function imagewritestring($img, $font_size, $string)
{
$color = imagecolorallocate($img, 180, 180, 180);
static $y = 2;
$y += $font_size + 10;
$x = 10;
imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string);
}

View File

@ -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"]);
?>
<!DOCTYPE html>
@ -27,8 +30,6 @@ $user = new uInfo($_SERVER["HTTP_USER_AGENT"], $_SERVER["REMOTE_ADDR"]);
<div id="info">
<span><span data-i18n="app.name">uInfo</span> <?php echo $site['version']; ?></span>
<span><a href="https://ip.echosystem.fr">Retour</a></span>
<!-- <span><a href="https://github.com/ziggi/uInfo" target="_blank" data-i18n="app.github">GitHub</a></span>
<span><a href="https://ziggi.org/" target="_blank" data-i18n="app.home">Home</a></span>-->
</div>
<div id="middle">

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

@ -49,10 +49,12 @@ https://ip.echosystem.fr/resolution.html
## Screenshot
### IP
![https://ip.echosystem.fr](https://git.echosystem.fr/Erreur32/NIWPI/raw/master/Screenshot/ip.echosystem.fr.jpg)
![https://ip.echosystem.fr/Info](https://git.echosystem.fr/Erreur32/NIWPI/raw/master/Screenshot/Info_ip_Screenshot_2020_2.png)
### Screen Resolution detection
@ -80,3 +82,4 @@ https://ip.echosystem.fr/resolution.html
By erreur32.
[![Contribution Stats](https://github-contribution-stats.vercel.app/api/?username=erreur32)](https://github.com/LordDashMe/github-contribution-stats/)

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 KiB

View File

@ -2,51 +2,19 @@
/*width: 50%;*/
/*opacity: 0.9;*/
background: #F9F9F9;
filter: alpha(opacity=70);
[#orange]filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);[/#]
-moz-opacity: 0.70; opacity:0.7;
margin: 5 auto;
filter: alpha(opacity=80);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);
-moz-opacity: 0.80; opacity:0.8;
/*margin: auto;*/
/* border: 1px solid #EAEAEA;*/
}
.main {
/*width: 50%;*/
/*margin: 0 auto;*/
/*opacity: 0.9;*/
/* background: #F9F9F9;
width: 20%;
padding: 30px 0;
margin: 0 auto;
border: 1px solid #EAEAEA;*/
}
.main .list-heading {
color: #e93937;
/* text-transform: uppercase;
margin-top: 10px;
margin-bottom: 5px;
font-weight: 600;
padding-left: 20px;*/
/* color: #e93937;*/
}
.main li {
list-style-type: none;
/* color: #636363;*/
/* line-height: 1.2em;
padding-top: 10px;
font-weight: 500;
padding: 5px 20px ;
transition: all .2s ease;
position: relative;
overflow: hidden;
box-sizing: border-box;*/
width: 100%;
/* border-bottom: 1px solid #EFEFEF;*/
}
.main li:first-child {
/* border-top: 1px solid #EFEFEF;*/
}
.main li:hover {
/* background-color: #EFEFEF;*/
}
.main li:hover:after {
bottom: 0;
@ -119,7 +87,7 @@ list-style-type: none;
background-position-y: center;*/
}
.success:after {
content: "Copied!";
content: "Copied ✔";
/* color: #fff;
height: 20%;*/
color: #000;
@ -130,8 +98,7 @@ color: #000;
font-size: 8vw;
font-weight: bold;
font-family: Helvetica;
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2
), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
/* display: inline-block;
vertical-align: middle;*/

169
index.php
View File

@ -5,13 +5,15 @@
<title>Your IP info</title>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, minimal-ui" />
<meta name="viewport" content="width=device-width">
<script src="js/jquery.2.1.3.min.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/spectre.min.css">
<link rel="stylesheet" href="css/spectre-icons.css">
<script src="js/copy.js"></script>
<link rel="stylesheet" type="text/css" href="css/copy.css">
<!-- <link rel="stylesheet" href="style.css"> -->
<link rel="icon" type="image/png" href="./ip.ico.png" />
<!--
// Nice IP Web Page Info - NIWPI
@ -192,7 +194,7 @@ h5 {
border-radius: 5px;
background-color: white;
color: black;
padding: 14px 28px;
/* padding: 14px 28px;*/
font-size: 12px;
cursor: pointer;
}
@ -210,13 +212,13 @@ h5 {
/* Green */
.success {
border-color: #4CAF50;
color: green;
/* border-color: #4CAF50;*/
/* color: green;*/
}
.success:hover {
background-color: #4CAF50;
color: white;
/* background-color: #4CAF50;
color: white;*/
}
/* Blue */
@ -411,21 +413,27 @@ display: inline-block;
}
}
ol, ul {
margin: 0;
padding: 0;
}
.hit-the-floor {
color: #000;
/*background-color: #777;*/
/*opacity: 0.6;*/
opacity: 0.9;
/*font-size-adjust: 4;*/
/*font-size: 12em;*/
font-size: 8vw;
font-weight: bold;
font-family: Helvetica;
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
}
}
.hit-the-floor {
text-align: center;
}
.resolution {
text-align:center;
width:340px;
@ -445,6 +453,26 @@ text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px
text-transform:lowercase;
}
@media only screen and (max-width: 520px) {
#middle {
width: 100%;
height: 70%;
margin: 25px 0 25px 0;
}
#img {
max-width: 80%;
}
#img img {
width: 100%;
}
}
#img {
width: 520px;
margin: 0 auto;
}
</style>
<?php
@ -475,45 +503,36 @@ $geoip_longitude = getenv('GEOIP_LONGITUDE');
</head>
<body>
<!--
<section id="sectionIP"></section>
-->
<div class="bgimg-1">
<div class="caption">
<div class="main">
<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>
<br>
<ul>
<div class="bgimg-1" style="height: 500px;">
<div class="caption main">
<h3>Your IP</h3>
<span class="list-heading00" 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>
<ul><br>
<li>
<div class="copy-content">
<div class="hit-the-floor"><p><span><?php echo "$ipaddress";?></span></p></div>
</div>
<div class="hit-the-floor copy-content"><?php echo "$ipaddress";?></div>
<button class="copy-btn"></button>
</li>
</li>
</ul>
</div>
<br/><br/> <br/><br/>
<section id="section05" class="demo"> <a href="#sectionIn"> <span></span>Scroll<br/><br/>
<section id="section05" class="demo"><br/><br/> <br/><br/> <a href="#sectionIn"> <span></span>Scroll<br/><br/>
<img src="https://echosystem.fr/_img/1skull-50.png" alt="" width="24" height="24"></a></section>
</div>
</div>
</div>
<section id="sectionIn" class="demo">
<div style="position:relative;">
<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 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"; ?> </span></h2>
</div>
</div>
</section>
<div class="bgimg-2">
<div class="captionIn">
<span class="border" style="background-color:#000000;font-size:25px;color: #f7f7f7; text-align: center;">
Cette adresse a été localisée dans la belle ville de <b><?php echo '<span style="color:#cc0000;text-shadow: -1px -1px 2px #000;">'.$geoip_city.'</span><br>'; ?>
<?php
@ -525,10 +544,12 @@ echo 'Latitude: <span style="color:#cc0000;text-shadow: -1px -1px 2px #000;">'.
echo 'Longitude: <span style="color:#cc0000;text-shadow: -1px -1px 2px #000;">'.$geoip_longitude.'</span><br>';
?>
</span>
<br/><br/><br/><br/>
<section id="section03" class="demo">
<a href="#sectionMAP"><span></span>Map<br><i class="icon icon-location" style="color:#7FFF00;"></i></a>
<br/><br/><br/><br/><br/><br/>
<section id="section03" class="demo">
<a href="#sectionMAP"><span></span><br><br>Map<br><i class="icon icon-location" style="color:#7FFF00;"></i></a>
<!--<a href="#sectionMAP"><br><i class="icon icon-location" style="color:#7FFF00;"></i></a>-->
</section>
<br/><br/>
</div>
</div>
@ -540,66 +561,52 @@ echo 'Longitude: <span style="color:#cc0000;text-shadow: -1px -1px 2px #000;">'
</div>
</div>
</section>
<div class="bgimg-3">
<div class="bgimg-3" style="height: 450px;">
<div class="captionMap">
<i class="icon icon-location" style="color:#777;"></i>
<h2><span style="text-shadow: -1px -1px 1px #000;"><?php echo "$geoip_city"; ?></span></h2>
<iframe style="height: 35%; width: 60%" scrolling="no" frameborder="0" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=AIzaSyCRTD-ARSWquI_i1P0AlZrRPxnzmtIntd4&q=<?php echo "$geoip_latitude"?>,<?php echo "$geoip_longitude"?>&zoom=12" allowfullscreen></iframe>
<br /><br /><br /><br />
<span class="label label-rounded label-error"> NEW </span>
<a href="Info"> <h2>Your IP image.</h2> </a>
<span></span>Map<br>
<!-- <i class="icon icon-location" style="color:#7FFF00;"></i>-->
<i class="icon icon-location" style="color:#777;"></i>
<h2><span style="text-shadow: -1px -1px 1px #000;"><?php echo "$geoip_city"; ?></span></h2>
<iframe style="height: 35%;width: 60%;border:none;" scrolling="no" frameborder="0" src="https://www.google.com/maps/embed/v1/place?key=AIzaSyCRTD-ARSWquI_i1P0AlZrRPxnzmtIntd4&q=<?php echo "$geoip_latitude"?>,<?php echo "$geoip_longitude"?>&zoom=12" allowfullscreen></iframe>
<br /><br />
<span class="label label-rounded label-error"> NEW </span>
<a href="Info"> <h2>Your IP image.</h2> </a>
<br>
<a href="Info/"><img src="Info/image.php"></a>
<br /><br /><br />
<a href="https://git.echosystem.fr/Erreur32/NIWPI">NIWPI Page</a> by <a href="https://erreur32.echosystem.fr"> erreur32 </a>
<div id="img">
<a href="https://ip.echosystem.fr/Info/"><img src="Info/image.php"></a>
</div>
<!--
<br /><br /><br>
<section class="demo">
<a href="#sectionIP"><span><i class="icon icon-arrow-up" style="color:#ddd;"></i></span> TOP</a>
</section>
<section id="sectionb" class="demo">
<a href="#sectionbas"><span><i class="icon icon-arrow-down" style="color:#ddd;"></i></span> end</a>
</section>
<picture>
<source srcset="Info/image.php" media="(min-width: 768px)">
<source srcset="Info/image0.php" media="(max-width: 767px)">
<img srcset="Info/image.php" alt="Your-ip-image">
</picture>
-->
</div>
</div>
<!--
<section id="sectionReso" class="demo">
<div style="position:relative;">
<div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 80px;">
<h2 class="post-title"> Votre Résolution: <span style="color: #cc0000;text-shadow: -1px -1px 2px #000;" id="resolutionNumber"></span></h2>
<!-- <a href="Info/"><img src="Info/image.php" alt="Your-ip-image">-->
<!--<br /> <a href="https://git.echosystem.fr/Erreur32/NIWPI">NIWPI Page</a> by <a href="https://erreur32.echosystem.fr"> erreur32 </a>-->
</div>
</div>
</section>
<div class="bgimg-1">
<div class="captionReso">
<center> <div class="hit-the-floor">
<span id="resolutionNumber"></span>
<div style="position:relative; bottom: 0px; margin-top: 0px;">
<div class="captionEnd" style="color:#ddd;background-color:#282E34;text-align:center;text-decoration: none; transition: opacity .3s;">
<section id="sectionbas" class="demo2" style="color:#ddd;background-color:#282E34;text-align:center;text-decoration: none; transition: opacity .3s;"> </section>
<a href="https://git.echosystem.fr/" style="font-size: 19px;"><i class="fa fa-code"></i></a> with <a href="#"><i class="fa fa-heart-o"></i></a> by <a href="https://erreur32.echosystem.fr">Erreur32</a>.
<br><a href="https://echosystem.fr"><img src="https://echosystem.fr/_img/1skull-50.png" alt="skull" style="align-center;" width="24" height="24">
<br>Echo'system'</a> <br>
<i>
<a href="resolution.html" style="font-size: 10px;">Your Screen (<span style="font-size: 10px;color:#cc0000;text-shadow: -1px -1px 1px #000;" id="resolutionNumber"></span>)</a>
- <span style="font-size: 9px;"> <?php setlocale(LC_ALL,'french'); echo "Dernière modification de la page: ".date("m/d/y H:i", getlastmod()); ?> </span>
</i>
</div>
</div>
</div></center>
</div>
-->
<div class="captionEnd" style="color:#ddd;background-color:#282E34;text-align:center;text-decoration: none; transition: opacity .3s;">
<section id="sectionbas" class="demo2" style="color:#ddd;background-color:#282E34;text-align:center;text-decoration: none; transition: opacity .3s;"> </section>
<a href="https://git.echosystem.fr/" style="font-size: 19px;"><i class="fa fa-code"></i></a> with <a href="#"><i class="fa fa-heart-o"></i></a> by <a href="https://erreur32.echosystem.fr">Erreur32</a>.
<br><a href="https://echosystem.fr"><img src="https://echosystem.fr/_img/1skull-50.png" alt="skull" style="align-center;" width="24" height="24">
<br>Echo'system'</a>
<br>
<i> <a href="resolution.html" style="font-size: 10px;">Your Screen (<span style="font-size: 10px;color:#cc0000;text-shadow: -1px -1px 1px #000;" id="resolutionNumber"></span>)</a> - <span style="font-size: 9px;"> <?php setlocale(LC_ALL,'french'); echo "Dernière modification de la page: ".date("m/d/y H:i", getlastmod()); ?> </span></i>
</div>
</body>

BIN
ip.ico.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB