Prints a lot of metadata available to the server when doing an HTTP request https://meta.antopie.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
331 B

8 months ago
<?php
8 months ago
if ($_SERVER['REQUEST_URI'] === "/emoji")
8 months ago
echo file_get_contents("emoji.html");
8 months ago
else if ($_SERVER['REQUEST_URI'] === "/me")
header("Location: /" . htmlspecialchars($_SERVER['REMOTE_ADDR']));
8 months ago
else if (filter_var(substr($_SERVER['REQUEST_URI'], 1), FILTER_VALIDATE_IP))
require "geolite2.php";
else
require "meta.php";