]> dev.renevier.net Git - syp.git/blobdiff - inc/templates_index.php
improve wizard (hand editing of settings.php is no more needed)
[syp.git] / inc / templates_index.php
index 64b965fe5181fb2b1663a3dd8ab3e05666ff6f01..8382159b0686a9f5ff0c04c50b7e20c84e381e3f 100644 (file)
@@ -2,7 +2,7 @@
 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
    license. */
 
 /* 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 {
 require_once ("./inc/db/mysql.php");
 
 try {
@@ -25,7 +25,7 @@ if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
 <html lang="<?php echo $lang?>">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 <html lang="<?php echo $lang?>">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
-    <title><?php echo defined ("SITETITLE") ? SITETITLE : "SYP"?></title>
+    <title><?php echo defined ("SITETITLE") ? htmlspecialchars (SITETITLE) : "SYP"?></title>
     <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">
     <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">