X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Ftemplates_admin.php;h=589ca5f3a328ad36c9521dd789ae8ca9fee11610;hp=eda657d7577c7ff50fa12274c4b9796829d239e3;hb=939514b912738c5784b04a0d207db1afd918eb69;hpb=0feade23ffa41ac299b252a93be4da11bc2a16b7 diff --git a/inc/templates_admin.php b/inc/templates_admin.php index eda657d..589ca5f 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) { ?> - + <?php ptrans('SYP admin')?> -

+

wizard.')?>

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

+ + +

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

- throbber + throbber