commit | 06fd5f48002813b152e1ecfd771cc00410b2ec64 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Wed Jun 09 00:16:45 2021 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Wed Jun 09 00:22:02 2021 +0200 |
tree | 59da4833b6f04efa8f39d53540a620065f94aaa0 |
First commit Change-Id: I8fa91dda4732b393f3f4642137e18b4a7b0c7b74
diff --git a/avatar.php b/avatar.php new file mode 100644 index 0000000..aec678e --- /dev/null +++ b/avatar.php
@@ -0,0 +1,11 @@ +<?php +require('config_avatars.php'); + +$username = $_GET['username'] ?? null; + +if (!array_key_exists($username, $USERS)) { + http_response_code(404); + exit(); +} + +header('Location: '.$USERS[$username]);