X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=inc%2Fhtml%2Findex.php;h=f1e3239b8a23accaea7286e1f146aeb86aa96425;hb=81b566d916827fa6ee03b6fbf06c180ec249e7e7;hp=8382159b0686a9f5ff0c04c50b7e20c84e381e3f;hpb=b8be7edca1802692be4d330c7065e5260fb348f6;p=syp.git
diff --git a/inc/html/index.php b/inc/html/index.php
index 8382159..f1e3239 100644
--- a/inc/html/index.php
+++ b/inc/html/index.php
@@ -3,7 +3,7 @@
license. */
@include_once ("./inc/settings.php");
-require_once ("./inc/db/mysql.php");
+require_once ("./inc/db/" . (defined ("DBTYPE")? DBTYPE: "mysql") . ".php");
try {
$connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);
@@ -16,10 +16,10 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
$thumbsmaxsize = 400; // default value;
}
-if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
- $popupnearfeature = true;
+if (defined ("POPUPPOS")) {
+ $popuppos = POPUPPOS;
} else {
- $popupnearfeature = false;
+ $popuppos = 3;
}
?>
@@ -29,9 +29,14 @@ if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
+
+\n");
+ }
+?>
+