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);
<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: %dpx;\n", ($thumbsmaxsize + 40))?>
+ <?php printf("_width: expression(Math.min(parseInt(this.scrollWidth) + 7, %d) + 'px');\n", ($thumbsmaxsize + 30))?>
+ }
+ .olPopup p {
+ <?php printf("max-width: %dpx;\n", $thumbsmaxsize - 20)?>
+
}
.olPopup img {
<?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
}
</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 ?>",
- propulsedByLink: "<?php ptrans('propulsed by <a href=\"http://syp.renevier.net\">syp</a>')?>",
+ poweredByLink: "<?php ptrans('powered by <a href=\"http://syp.renevier.net\">syp</a>')?>",
noImageRegistered: "<?php ptrans('There is no image registered on this site.')?>"
};
var sypSettings = {