Prints a lot of metadata available to the server when doing an HTTP request
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
332 B

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