getData();
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) {
// get width/height for tag
$calculatedwidthheight = $file->getFileWidthHeight('low');
$theimage = sprintf(
'
',
$file->getFileURL(1),
shorten($data["description"], 30, ' '),
shorten($data["description"], 50, ' '),
$calculatedwidthheight['width'],
$calculatedwidthheight['height']
);
$triple_id = id2triplet($id);
$description = $data["description"];
}
if ($data['latitudestart'] != "" && $data['longitudestart']) {
// coordinates have been found => check only for START lat/long since not all images need start and end point!!
$canbedeleted = true;
} else {
// no coordinates found
$canbedeleted = false;
}
?>