getData();
// filename of the JPG image
$filename_midres = $file->getFileURL(2);
if ($data['deleted'] == 't'){
if (($_SESSION['account_id'] == $data['setupaccountid']) || (account_services_check('admin'))) {
// allow access => user is owner or admin
$allowaccess = true;
} else {
$allowaccess = false;
}
} else {
$allowaccess = true;
}
if ($data['isprivate'] == 't'){
if (($_SESSION['account_id'] == $data['setupaccountid']) || (account_services_check('admin'))) {
// allow access => user is owner or admin
$allowaccess = true;
} else {
$allowaccess = false;
}
}
if ($allowaccess) {
$theimage = sprintf(
'',
$file->getFileURL(1),
shorten($data["description"], 30, ' '),
shorten($data["description"], 50, ' '),
$data["dimension_lowres_width"],
$data["dimension_lowres_height"]
);
$triple_id = id2triplet($id);
$description = $data["description"];
$authorline = $data["ownername"];
}
?>