X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=inc%2Ftemplates_index.php;h=8382159b0686a9f5ff0c04c50b7e20c84e381e3f;hb=939514b912738c5784b04a0d207db1afd918eb69;hp=722daa9479bbdbe7a1ec1d087c4d2d558d162260;hpb=1cc7e39c1d097ef3a95aef04552a34f360723e6d;p=syp.git diff --git a/inc/templates_index.php b/inc/templates_index.php index 722daa9..8382159 100644 --- a/inc/templates_index.php +++ b/inc/templates_index.php @@ -2,7 +2,7 @@ /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD license. */ -require_once ("./inc/settings.php"); +@include_once ("./inc/settings.php"); require_once ("./inc/db/mysql.php"); try { @@ -10,17 +10,22 @@ try { } catch (Exception $e) { } -$bbox = $connection->mbr (); if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) { $thumbsmaxsize = THUMBSMAXSIZE; } else { $thumbsmaxsize = 400; // default value; } + +if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) { + $popupnearfeature = true; +} else { + $popupnearfeature = false; +} ?> - <?php echo defined ("SITETITLE") ? SITETITLE : "SYP"?> + <?php echo defined ("SITETITLE") ? htmlspecialchars (SITETITLE) : "SYP"?> @@ -46,10 +51,9 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) { propulsedByLink: "syp')?>", noImageRegistered: "" }; - + var sypSettings = { + popupNearfeature: + };