ip-detect/templates/client_data.php
2018-11-02 18:52:04 +03:00

27 lines
767 B
PHP

<?php /** @var \Slim\Views\PhpRenderer $this */ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<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>
<h2>Alternative formats:</h2>
<ul>
<li><a href="json">JSON</a></li>
<li><a href="plain">Plain text (only IP address)</a></li>
</ul>
<a href="https://skobk.in/">skobk.in</a> (<a href="https://bitbucket.org/skobkin/ip-detect/">src</a>)
</body>
</html>