]> dev.renevier.net Git - syp.git/blobdiff - inc/templates_admin.php
improve wizard (hand editing of settings.php is no more needed)
[syp.git] / inc / templates_admin.php
index 814ca4566c362a5473478a46ebbe4c23fc981228..1f28e7999a3ea4837f893b2ac9e348affda804a1 100644 (file)
@@ -2,11 +2,14 @@
 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
    license. */
 
-require_once ("./inc/settings.php");
+$error = false;
+
+if (!@include_once ("./inc/settings.php")) {
+    $error = true;
+}
 require_once ("./inc/db/mysql.php");
 require_once ("./inc/utils.php");
 
-$error = false;
 try {
     $connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);
     $usrtblexists = $connection->users_table_exists ();
@@ -29,7 +32,7 @@ if (!$usrtblexists || !$itemstblexists) {
 </head>
 <body>
     <p class="error center"><?php ptrans('SYP is not correctly installed. Please follow README.txt instructions
-       and go to <a href="wizard.en.php">wizard</a>.')?></p>
+       and go to <a href="install.en.php">wizard</a>.')?></p>
 </body>
 </html>
 <?php