ip-detect/templates/client_data.php

27 lines
767 B
PHP
Raw Permalink Normal View History

2017-09-05 01:28:08 +00:00
<?php /** @var \Slim\Views\PhpRenderer $this */ ?>
<!DOCTYPE html>
<html>
<head>
2017-09-05 01:36:39 +00:00
<meta charset="utf-8">
2017-09-05 01:28:08 +00:00
<title>IP address</title>
</head>
<body>
<h1><?php echo htmlspecialchars($this->getAttribute('ip_address')); ?></h1>
<pre>
locale: <?php echo htmlspecialchars($this->getAttribute('locale')); ?>
preferred language: <?php echo htmlspecialchars($this->getAttribute('preferred_language')); ?>
</pre>
2017-09-05 01:36:39 +00:00
<h2>Alternative formats:</h2>
<ul>
<li><a href="json">JSON</a></li>
<li><a href="plain">Plain text (only IP address)</a></li>
</ul>
2017-09-05 01:36:39 +00:00
<a href="https://skobk.in/">skobk.in</a> (<a href="https://bitbucket.org/skobkin/ip-detect/">src</a>)
2017-09-05 01:28:08 +00:00
</body>
</html>