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) { $theimage = sprintf( '%s', $file->getFileURL('100-crop'), shorten($data["description"], 30, ' '), shorten($data["description"], 50, ' '), 100, 100 ); $triple_id = id2triplet($id); $description = $data["description"]; // map coordinates, if any if ($data['latitudestart'] != NULL && $data['longitudestart'] != NULL){ $data['latitudestart'] = $data['latitudestart']; $data['longitudestart'] = $data['longitudestart']; $data['showmap'] = true; } else { $data['showmap'] = false; // get objects location, if we have a objectid if ($data['objectid'] > 0){ $oq = sprintf("SELECT ST_X(pinpoint) AS lng, ST_Y(pinpoint) AS lat FROM structure WHERE NOT pinpoint IS NULL AND id = %u", $data['objectid']); $ocoord = queryRow($oq); if ($ocoord){ $data['object_coordinates_lat'] = $ocoord['lat']; $data['object_coordinates_lng'] = $ocoord['lng']; } } } $data['gen_img_url_tiny'] = addslashes($file->getFileURL(0)); $data['gen_img_url_low'] = addslashes($file->getFileURL(1)); $data['gen_img_url_mid'] = addslashes($file->getFileURL(2)); } ?>
Please define the location and connect this photo to the object it belongs to.

checked="checked" />
">
*/ ?>

This does not work.