X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=inc%2Ftemplates_index.php;h=8382159b0686a9f5ff0c04c50b7e20c84e381e3f;hb=939514b912738c5784b04a0d207db1afd918eb69;hp=a84a9c6ade648f0e1830310a4403d257d90d43f2;hpb=e57c166b46cf9c5961bca1b2241783944277cef5;p=syp.git diff --git a/inc/templates_index.php b/inc/templates_index.php index a84a9c6..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"?>