aboutsummaryrefslogtreecommitdiff
path: root/me/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-23 19:40:44 +0100
committerMinteck <contact@minteck.org>2021-12-23 19:40:44 +0100
commit133be8d6e235b83edf562520c550a2cda734ffd1 (patch)
treebc2f0fde44cb19e0ff84c060a5234dabf6c00545 /me/index.php
parent408bee6540c861b65ebb9f6ca805060b35b31720 (diff)
downloadcore-133be8d6e235b83edf562520c550a2cda734ffd1.tar.gz
core-133be8d6e235b83edf562520c550a2cda734ffd1.tar.bz2
core-133be8d6e235b83edf562520c550a2cda734ffd1.zip
Commit
Diffstat (limited to 'me/index.php')
-rw-r--r--me/index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/me/index.php b/me/index.php
new file mode 100644
index 0000000..a24fe20
--- /dev/null
+++ b/me/index.php
@@ -0,0 +1,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"));
+} \ No newline at end of file