'; if (SITETITLE) { printf (' %s', htmlspecialchars (SITETITLE)); } foreach ($features as $feature) { $id = $feature->id; $title = htmlspecialchars ($feature->title, ENT_QUOTES); $description = htmlspecialchars ($feature->description, ENT_QUOTES); $imgurl = ($feature->imgpath ? image_url_from_imgpath ($feature->imgpath) : ""); $thumburl = ($feature->imgpath ? thumb_url_from_imgpath ($feature->imgpath) : ""); $lon = $feature->lon; $lat = $feature->lat; $alt = (strlen ($title) > 60) ? (substr ($title, 0, 57) . '...') : $title; if ($imgurl) { $imgurlHTML = sprintf ('%s', $imgurl, $alt, $thumburl); } else { $imgurlHTML = ""; } if ($description) { $descriptionHTML = sprintf ('

%s

', $description) ; } else { $descriptionHTML = ""; } printf (' %s %s,%s ', $id, $title, $descriptionHTML, $imgurlHTML, $lon, $lat); } echo'
'; } if (!@include_once ("./inc/settings.php")) { exit ("server error"); } require_once ("./inc/utils.php"); require_once ("./inc/db/" . (defined ("DBTYPE")? DBTYPE: "mysql") . ".php"); try { $connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX); $features = $connection->listfeatures ($_GET ['from_user']); } catch (Exception $e) { exit ("server error"); } ob_start ("headers_callback"); main ($features); ob_end_flush () ?>