Adrià Vilanova Martínez | 06fd5f4 | 2021-06-09 00:16:45 +0200 | [diff] [blame] | 1 | <?php |
| 2 | require('config_avatars.php'); |
| 3 | |
| 4 | $username = $_GET['username'] ?? null; |
| 5 | |
Adrià Vilanova Martínez | 520b91c | 2021-06-09 13:21:07 +0200 | [diff] [blame] | 6 | $avatar_exists = array_key_exists($username, $USERS); |
| 7 | $avatar = ($avatar_exists ? $USERS[$username] : $DEFAULT_AVATAR); |
Adrià Vilanova Martínez | 06fd5f4 | 2021-06-09 00:16:45 +0200 | [diff] [blame] | 8 | |
Adrià Vilanova Martínez | 520b91c | 2021-06-09 13:21:07 +0200 | [diff] [blame] | 9 | header('Location: '.$avatar); |