?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<html>
+<html lang="<?php echo $lang?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title><?php ptrans('SYP admin')?></title>
<?php
exit ();
} // if ($error)
+
+ $user = $_COOKIE [sprintf ("%suser", DBPREFIX)];
+ $pwd = $_COOKIE [sprintf ("%sauth", DBPREFIX)];
+ $logged = ($connection->checkpwdmd5 ($user, $pwd));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<html>
+<html lang="<?php echo $lang?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title><?php ptrans('SYP admin');?></title>
UpdateSucces: "<?php ptrans('Save took place correctly.')?>"
};
- <?php
- $bbox = $connection->mbr ();
- printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
- $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
- ?>
+ var sypSettings = {
+ loggedUser: <?php printf ($logged ? "\"$user\"": "null")?>
+ };
</script>
<script src="./js/jquery-1.3.2.js" type="text/javascript"></script>
<input type="hidden" name="request" value="del">
<input type="hidden" name="fid">
</form>
+ <p id="editor_throbber" class="throbber center">
+ <?php ptrans('Connecting')?>
+ <img src="media/editor-throbber.gif">
+ </p>
</div>
<div id="login_area"
<?php
- if ($connection->checkpwdmd5 ("admin",
- $_COOKIE [sprintf ("%sauth", DBPREFIX)])) {
+ if ($logged) {
echo ' class="hidden"';
}
?>>
<form id="login_form" method="post">
<div id="cookie_warning" class="center warn"><?php ptrans('You need to have cookies enabled to administrate SYP')?></div>
<table>
+ <tr>
+ <td><label for="user"><?php ptrans('user')?></label></td>
+ <td style="width: 100%"><input id="user" name="user"></td>
+ </tr>
<tr>
<td><label for="password"><?php ptrans('password')?></label></td>
<td style="width: 100%"><input id="password" name="password" type="password"></td>
</p>
<p id="pwd_throbber" class="throbber center">
<?php ptrans('Connecting')?>
- <img src="media/pwd_throbber.gif" alt="throbber">
+ <img src="media/pwd-throbber.gif" alt="throbber">
</p>
<p class="error center" id="login_error"></p>
</form>