X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=inc%2Ftemplates_index.php;h=8382159b0686a9f5ff0c04c50b7e20c84e381e3f;hb=b6cae6a5698c5d0655d921f78f0ccab470bf034c;hp=2d599268e7a88722f0c54b474ac9d30f24a94754;hpb=0feade23ffa41ac299b252a93be4da11bc2a16b7;p=syp.git diff --git a/inc/templates_index.php b/inc/templates_index.php index 2d59926..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,14 +10,40 @@ 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"?> + + @@ -52,5 +77,15 @@ $bbox = $connection->mbr ();
+
+
+
+ + <?php ptrans('close')?> +
+
+