X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Ftemplates_admin.php;h=90bdb52970d60d3fcb1449257395b90f932071d4;hp=ce7e3b4230069f83bcfb124307bdae92a3210105;hb=3c74920cb66b4e6c47c7e8a0eaeed40ffb7e8544;hpb=a95b8e8626615eb84bd4760a0640d13dc1e67bab diff --git a/inc/templates_admin.php b/inc/templates_admin.php index ce7e3b4..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,7 +24,7 @@ if (!$usrtblexists || !$itemstblexists) { ?> - + <?php ptrans('SYP admin')?> @@ -29,16 +32,20 @@ if (!$usrtblexists || !$itemstblexists) {

wizard.')?>

+ and go to wizard.')?>

checkpwdmd5 ($user, $pwd)); ?> - + <?php ptrans('SYP admin');?> @@ -60,16 +67,17 @@ if (!$usrtblexists || !$itemstblexists) { UnauthorizedError: "", NotimageError: "", UnconsistentError: "", - UnknownError: "", DelSucces: "", - UpdateSucces: "" + UpdateSucces: "", + newUserNonameError: "", + newUserPasswordmatchError: "", + newUserExistsError: "", + newUserSuccess: "" }; - mbr (); - printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n", - $bbox [0], $bbox [1], $bbox [2], $bbox [3]); - ?> + var sypSettings = { + loggedUser: + }; @@ -94,7 +102,35 @@ if (!$usrtblexists || !$itemstblexists) { @@ -135,12 +171,15 @@ if (!$usrtblexists || !$itemstblexists) { +

+ + +

checkpwdmd5 ("admin", - $_COOKIE [sprintf ("%sauth", DBPREFIX)])) { + if ($logged) { echo ' class="hidden"'; } ?>> @@ -148,7 +187,12 @@ if (!$usrtblexists || !$itemstblexists) {
+ + + + + @@ -160,7 +204,7 @@ if (!$usrtblexists || !$itemstblexists) {

- throbber + throbber