<?php

$words = new MOD_words();
$request = PRequest::get()->request;
$gallery_ctrl = new GalleryController();
$image = $this->image;
if ($member = $this->model->getLoggedInMember()) {
    $callbackId = $gallery_ctrl->editProcess($image);
    $vars =& PPostHandler::getVars($callbackId);
}
$GalleryRight = MOD_right::get()->hasRight('Gallery');
$d = $image;
$d->user_handle = MOD_member::getUserHandle($d->user_id_foreign);
$canEdit = $member && $member->Username == $d->user_handle ? true : false;
if (!isset($vars['errors'])) {
    $vars['errors'] = array();
}
Esempio n. 2
0
<?php

if ($this->model->getLoggedInMember()) {
    $Gallery = new GalleryController();
    $callbackId = $Gallery->editProcess();
    $vars =& PPostHandler::getVars($callbackId);
}
$words = new MOD_words();
$d = $image;
if ($deleted) {
    echo <<<HTML
    <p class="note"><img src="images/misc/check.gif">&nbsp; &nbsp; {$words->getFormatted('GalleryImageDeleted')}: <i>{$d->title}</i></p>
HTML;
} else {
    echo <<<HTML
    <p class="warning"><img src="images/misc/checkfalse.gif">&nbsp; &nbsp; {$words->getFormatted('GalleryImageNotDeleted')}: <i>{$d->title}</i></p>
HTML;
}