/* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
license. */
-require_once ("./inc/settings.php");
-require_once ("./inc/utils.php");
-require_once ("./inc/db/mysql.php");
-
function headers_callback ($output) {
$etag = md5 ($output);
if ((isset ($_SERVER ["HTTP_IF_NONE_MATCH"])) &&
';
if (SITETITLE) {
- printf (' <name>%s</name>', SITETITLE);
+ printf (' <name>%s</name>', htmlspecialchars (SITETITLE));
}
foreach ($features as $feature) {
$id = $feature->id;
</kml>';
}
+if (!@include_once ("./inc/settings.php")) {
+ exit ("server error");
+}
+require_once ("./inc/utils.php");
+require_once ("./inc/db/mysql.php");
+
try {
$connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);
- $features = $connection->listfeatures ();
+ $features = $connection->listfeatures ($_GET ['from_user']);
} catch (Exception $e) {
exit ("server error");
}