NIWPI/Info/index.php

83 lines
3 KiB
PHP
Raw Normal View History

2018-12-17 14:55:52 +01:00
<?php
include "uinfo.class.php";
$site = array(
"uri" => "//" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"],
"version" => "2.3",
);
2020-06-15 14:51:17 +02:00
$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"]);
2018-12-17 14:55:52 +01:00
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Ip Info">
<meta name="keywords" content="ip">
<meta name="viewport" content="width=device-width">
<title>Ip Info - Information about your IP</title>
<link rel="shortcut icon" type="image/x-icon" href="https://ip.echosystem.fr/favicon.ico">
</head>
<body>
<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">
<div id="content">
<div id="text">
<div id="ip"><?php echo $user->host->ip; ?></div>
<div id="list">
<table>
<tr><td data-i18n="info.computer_name">Computer name:</td><td><?php echo $user->host->name; ?></td></tr>
<tr><td data-i18n="info.os">Operating system:</td><td><?php echo $user->os->name . " " . $user->os->version; ?></td></tr>
<tr><td data-i18n="info.browser">Browser:</td><td><?php echo $user->browser->name . " " . $user->browser->version; ?></td></tr>
<tr><td data-i18n="info.city">City:</td><td><?php echo $user->host->city; ?></td></tr>
<tr><td data-i18n="info.region">Region:</td><td><?php echo $user->host->region; ?></td></tr>
<tr><td data-i18n="info.country">Country:</td><td><?php echo $user->host->country; ?></td></tr>
<tr><td data-i18n="info.location">Location:</td><td><?php echo $user->host->loc; ?></td></tr>
<tr><td data-i18n="info.organization">Organization:</td><td><?php echo $user->host->org; ?></td></tr>
</table>
</div>
</div>
<div id="img">
<div id="image">
2018-12-17 15:01:38 +01:00
<a href="<?php echo $site['uri']; ?>image.php"><img src="<?php echo $site['uri']; ?>image.php"></a>
2018-12-17 14:55:52 +01:00
</div>
<div id="img_links">
<div class="link">
<div class="link_text" data-i18n="app.htmlcode">HTML code:</div>
2018-12-17 15:01:38 +01:00
<textarea onClick="select()"><img src="<?php echo $site['uri']; ?>image.php"></textarea>
2018-12-17 14:55:52 +01:00
</div>
<div class="link">
<div class="link_text" data-i18n="app.bbcode">BB code:</div>
2018-12-17 15:01:38 +01:00
<textarea onClick="select()">[img]<?php echo $site['uri']; ?>image.php[/img]</textarea>
2018-12-17 14:55:52 +01:00
</div>
<br></div>
</div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/i18next-2.4.0.min.js"></script>
<script src="js/i18nextXHRBackend.min.js"></script>
<script src="js/i18nextBrowserLanguageDetector.min.js"></script>
<script src="js/init.js"></script>
</body>
</html>