NIWPI/Info/index.php
2020-06-16 21:22:16 +02:00

80 lines
2.8 KiB
PHP

<?php
include "uinfo.class.php";
$site = array(
"uri" => "//" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"],
"version" => "2.3",
);
$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>
<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>
</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">
<a href="<?php echo $site['uri']; ?>image.php"><img src="<?php echo $site['uri']; ?>image.php"></a>
</div>
<div id="img_links">
<div class="link">
<div class="link_text" data-i18n="app.htmlcode">HTML code:</div>
<textarea onClick="select()"><img src="<?php echo $site['uri']; ?>image.php"></textarea>
</div>
<div class="link">
<div class="link_text" data-i18n="app.bbcode">BB code:</div>
<textarea onClick="select()">[img]<?php echo $site['uri']; ?>image.php[/img]</textarea>
</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>