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