From 0625897f1e47e6cb46c5e4f4d4b6d50f9dd48239 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 29 Oct 2011 09:52:17 -0400 Subject: Fixes #3920 profile plugin adds a fast loading of user avatars --- mod/profile/icon.php | 53 ---------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 mod/profile/icon.php (limited to 'mod/profile/icon.php') diff --git a/mod/profile/icon.php b/mod/profile/icon.php deleted file mode 100644 index a624c0811..000000000 --- a/mod/profile/icon.php +++ /dev/null @@ -1,53 +0,0 @@ -owner_guid = $user->getGUID(); -$filehandler->setFilename("profile/" . $user->getGUID() . $size . ".jpg"); - -$success = false; -if ($filehandler->open("read")) { - if ($contents = $filehandler->read($filehandler->size())) { - $success = true; - } -} - -if (!$success) { - $path = elgg_view("icon/user/default/$size"); - header("Location: $path"); - exit; -} - -header("Content-type: image/jpeg"); -header('Expires: ' . date('r',time() + 864000)); -header("Pragma: public"); -header("Cache-Control: public"); -header("Content-Length: " . strlen($contents)); - -$splitString = str_split($contents, 1024); - -foreach($splitString as $chunk) { - echo $chunk; -} \ No newline at end of file -- cgit v1.2.3