blob: 92f017a5bb41ca24d711ac014d7f5948db9f26b5 [file] [log] [blame]
<?php
require('config_avatars.php');
$username = $_GET['username'] ?? null;
$avatar_exists = array_key_exists($username, $USERS);
$avatar = ($avatar_exists ? $USERS[$username] : $DEFAULT_AVATAR);
header('Location: '.$avatar);