X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=inc%2Ftemplates_index.php;h=8382159b0686a9f5ff0c04c50b7e20c84e381e3f;hb=3c74920cb66b4e6c47c7e8a0eaeed40ffb7e8544;hp=3b70e7c7ddd40f9c95b6c56ff51b2eecb2062b92;hpb=9acc365249b5e630da6b5cdd23e3a8015f39ddc7;p=syp.git diff --git a/inc/templates_index.php b/inc/templates_index.php index 3b70e7c..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,23 +10,28 @@ 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"?>