album) || ! ($item = $gallery->album->getPhoto($index))) { showInvalidReqMesg(); exit; } if (! $gallery->user->canReadAlbum($gallery->album)) { showInvalidReqMesg(gTranslate('core', "You are not allowed to perform this action!")); exit; } if ($gallery->session->albumName && $index) { ?>