X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Ftemplates_admin.php;h=90bdb52970d60d3fcb1449257395b90f932071d4;hp=eda657d7577c7ff50fa12274c4b9796829d239e3;hb=3c74920cb66b4e6c47c7e8a0eaeed40ffb7e8544;hpb=0feade23ffa41ac299b252a93be4da11bc2a16b7 diff --git a/inc/templates_admin.php b/inc/templates_admin.php index eda657d..90bdb52 100644 --- a/inc/templates_admin.php +++ b/inc/templates_admin.php @@ -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 (); @@ -21,24 +24,28 @@ if (!$usrtblexists || !$itemstblexists) { ?> - +
wizard.')?>
checkpwdmd5 ($user, $pwd)); ?> - ++ + +