X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=inc%2Ftemplates_admin.php;h=7702b949b7408fd720eaf0f140b042af2e7e3fb1;hb=a1d1d319af15be975bde4695a3bfeb7d78ea0398;hp=3931aa0beee3b0db547b8fd4672bcacf1aad8f5e;hpb=2e4b166add373d0a2edcbd8b81babfec7a1b3892;p=syp.git diff --git a/inc/templates_admin.php b/inc/templates_admin.php index 3931aa0..7702b94 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 (); @@ -29,12 +32,16 @@ if (!$usrtblexists || !$itemstblexists) {

wizard.')?>

+ and go to wizard.')?>

checkpwdmd5 ($user, $pwd)); ?> @@ -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) { @@ -137,14 +193,13 @@ if (!$usrtblexists || !$itemstblexists) {

- + <?php ptrans('throbber')?>

checkpwdmd5 ("admin", - $_COOKIE [sprintf ("%sauth", DBPREFIX)])) { + if ($logged) { echo ' class="hidden"'; } ?>> @@ -154,6 +209,10 @@ if (!$usrtblexists || !$itemstblexists) {
+ + + + @@ -165,7 +224,7 @@ if (!$usrtblexists || !$itemstblexists) {

- throbber + <?php ptrans('throbber')?>