Elgg  Version 1.9
view.php File Reference

Go to the source code of this file.


 $user = elgg_get_page_owner_entity()
 View an avatar. More...
 $size = strtolower(get_input('size'))
if(!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar'))) if(!$user$user_guid = $user->getGUID()
 $filehandler = new ElggFile()
$filehandler owner_guid = $user_guid
 $success = false

Variable Documentation

$filehandler = new ElggFile()

Definition at line 25 of file view.php.

$size = strtolower(get_input('size'))

Definition at line 10 of file view.php.

$success = false

Definition at line 29 of file view.php.

View an avatar.

Definition at line 7 of file view.php.

if (!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar'))) if (!$user) $user_guid = $user->getGUID()

Definition at line 22 of file view.php.

$filehandler owner_guid = $user_guid

Definition at line 26 of file view.php.

Initial value:
if ($filehandler->open("read")) {
if ($contents = $filehandler->read($filehandler->getSize())) {
$success = true;
elgg_log("Unable to get avatar for user with GUID $user_guid", 'ERROR');
if (!$success) {
$url = "_graphics/icons/default/{$size}.png";
header("Content-type: image/jpeg", true)
Definition: view.php:29
Definition: output.php:290
if($footer) $contents
Definition: module.php:48
Definition: metadata.php:12
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
Definition: exceptions.php:24
Definition: view.php:25
elgg_log($message, $level= 'NOTICE')
Display or log a message.
Definition: elgglib.php:1083
clearfix elgg elgg elgg elgg page header
Definition: admin.php:127

Definition at line 31 of file view.php.