From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/graphics/defaultlarge.gif | Bin 0 -> 4939 bytes mod/groups/graphics/defaultmedium.gif | Bin 0 -> 2336 bytes mod/groups/graphics/defaultsmall.gif | Bin 0 -> 1127 bytes mod/groups/graphics/defaulttiny.gif | Bin 0 -> 782 bytes mod/groups/graphics/icon.php | 45 ++++++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 mod/groups/graphics/defaultlarge.gif create mode 100644 mod/groups/graphics/defaultmedium.gif create mode 100644 mod/groups/graphics/defaultsmall.gif create mode 100644 mod/groups/graphics/defaulttiny.gif create mode 100644 mod/groups/graphics/icon.php (limited to 'mod/groups/graphics') diff --git a/mod/groups/graphics/defaultlarge.gif b/mod/groups/graphics/defaultlarge.gif new file mode 100644 index 000000000..b0921b8d8 Binary files /dev/null and b/mod/groups/graphics/defaultlarge.gif differ diff --git a/mod/groups/graphics/defaultmedium.gif b/mod/groups/graphics/defaultmedium.gif new file mode 100644 index 000000000..ae230a3d7 Binary files /dev/null and b/mod/groups/graphics/defaultmedium.gif differ diff --git a/mod/groups/graphics/defaultsmall.gif b/mod/groups/graphics/defaultsmall.gif new file mode 100644 index 000000000..81d89110d Binary files /dev/null and b/mod/groups/graphics/defaultsmall.gif differ diff --git a/mod/groups/graphics/defaulttiny.gif b/mod/groups/graphics/defaulttiny.gif new file mode 100644 index 000000000..86dc96ae4 Binary files /dev/null and b/mod/groups/graphics/defaulttiny.gif differ diff --git a/mod/groups/graphics/icon.php b/mod/groups/graphics/icon.php new file mode 100644 index 000000000..8c596d53b --- /dev/null +++ b/mod/groups/graphics/icon.php @@ -0,0 +1,45 @@ +owner_guid = $group->owner_guid; + $filehandler->setFilename("groups/" . $group->guid . $size . ".jpg"); + + $success = false; + if ($filehandler->open("read")) { + if ($contents = $filehandler->read($filehandler->size())) { + $success = true; + } + } + + if (!$success) { + $contents = @file_get_contents($CONFIG->pluginspath . "groups/graphics/default{$size}.jpg"); + } + + header("Content-type: image/jpeg"); + header('Expires: ' . date('r',time() + 864000)); + header("Pragma: public"); + header("Cache-Control: public"); + header("Content-Length: " . strlen($contents)); + echo $contents; +?> \ No newline at end of file -- cgit v1.2.3