]> dev.renevier.net Git - syp.git/blobdiff - inc/html/index.php
postgresql support
[syp.git] / inc / html / index.php
index 696b299bf52953fe4387edfa8968ee41b1a77b30..f1e3239b8a23accaea7286e1f146aeb86aa96425 100644 (file)
@@ -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);
@@ -29,6 +29,7 @@ if (defined ("POPUPPOS")) {
     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="news.php">
     <link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
     <link rel="stylesheet" href="./media/syp.css" type="text/css">
+
     <style type="text/css">
         .olPopup {
             <?php printf("_width: expression(Math.min(parseInt(this.scrollWidth) + 7, %d) + 'px');\n", ($thumbsmaxsize + 30))?>
@@ -49,6 +50,12 @@ if (defined ("POPUPPOS")) {
         }
     </style>
 
+<?php
+    if (file_exists ("./media/syp_custom.css")) {
+        printf("    <link rel=\"stylesheet\" href=\"./media/syp_custom.css\" type=\"text/css\">\n");
+    }
+?>
+
     <script type="text/javascript">
         var SypStrings = {
             language: "<?php echo $lang ?>",