blob: 92f017a5bb41ca24d711ac014d7f5948db9f26b5 [file] [log] [blame]
Adrià Vilanova Martínez06fd5f42021-06-09 00:16:45 +02001<?php
2require('config_avatars.php');
3
4$username = $_GET['username'] ?? null;
5
Adrià Vilanova Martínez520b91c2021-06-09 13:21:07 +02006$avatar_exists = array_key_exists($username, $USERS);
7$avatar = ($avatar_exists ? $USERS[$username] : $DEFAULT_AVATAR);
Adrià Vilanova Martínez06fd5f42021-06-09 00:16:45 +02008
Adrià Vilanova Martínez520b91c2021-06-09 13:21:07 +02009header('Location: '.$avatar);