blob: a24fe209c3a7e96c6486f177dca09d215adb6e35 (
plain)
1
2
3
4
5
6
7
8
9
|
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/private/session.php";
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/private/userpics/" . $_USER . ".png")) {
die(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/userpics/" . $_USER . ".png"));
} else {
die(file_get_contents("https://www.gravatar.com/avatar/0?f=y&s=64&d=mp"));
}
|