meta/index.php

10 lines
331 B
PHP
Raw Normal View History

2021-09-29 14:37:44 +02:00
<?php
2021-09-29 17:23:17 +02:00
if ($_SERVER['REQUEST_URI'] === "/emoji")
2021-09-29 14:37:44 +02:00
echo file_get_contents("emoji.html");
2021-09-29 17:23:17 +02:00
else if ($_SERVER['REQUEST_URI'] === "/me")
header("Location: /" . htmlspecialchars($_SERVER['REMOTE_ADDR']));
2021-09-29 14:37:44 +02:00
else if (filter_var(substr($_SERVER['REQUEST_URI'], 1), FILTER_VALIDATE_IP))
require "geolite2.php";
else
require "meta.php";