From 004bd1a8fda8e31b7b64602c0219537966379cb5 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 13 May 2017 20:24:54 -0400 Subject: Rm old content --- examples/file.php | 71 ------------------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 examples/file.php (limited to 'examples/file.php') diff --git a/examples/file.php b/examples/file.php deleted file mode 100644 index ceee9f7..0000000 --- a/examples/file.php +++ /dev/null @@ -1,71 +0,0 @@ -heads($file); break; - } - } - - /* - * Request a user head (user image) - * Requester must be currently logged in - */ - function heads($file) - { - if (!$this->getCurrentUser()) - return; - - if (!file_exists("assets/img/heads/" . $file)) - $file = "null.jpg"; - - $file = "assets/img/heads/" . $file; - $f = fopen($file, "rb"); - - if (!$f) - return; - - header("Content-type: " . mime_content_type($file)); - header("Content-length: " . filesize($file)); - fpassthru($f); - fclose($f); - } -} - -$res = new Resource(); -$res->handle($_REQUEST['d'], $_REQUEST['f']); - -?> -- cgit v1.2.3