Elgg
Version 1.11
|
Go to the source code of this file.
Variables | |
$guid = get_input('guid') | |
Avatar crop action. More... | |
$owner = get_entity($guid) | |
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) | $x1 = (int) get_input('x1', 0) |
$y1 = (int) get_input('y1', 0) | |
$x2 = (int) get_input('x2', 0) | |
$y2 = (int) get_input('y2', 0) | |
$filehandler = new ElggFile() | |
$filehandler | owner_guid = $owner->getGUID() |
$filename = $filehandler->getFilenameOnFilestore() | |
if(!file_exists($filename)) | $icon_sizes = elgg_get_config('icon_sizes') |
$files = array() | |
foreach($icon_sizes as $name=> $size_info) $owner | icontime = time() |
$owner | x1 = $x1 |
$owner | x2 = $x2 |
$owner | y1 = $y1 |
$owner | y2 = $y2 |
$view = 'river/user/default/profileiconupdate' | |
$files = array() |
if (!file_exists($filename)) $icon_sizes = elgg_get_config('icon_sizes') |
$owner = get_entity($guid) |