if (!@include_once ("./inc/settings.php")) {
$error = true;
}
-require_once ("./inc/db/mysql.php");
+require_once ("./inc/db/" . (defined ("DBTYPE")? DBTYPE: "mysql") . ".php");
require_once ("./inc/utils.php");
try {
exit ();
} // if ($error)
- $user = $_COOKIE [sprintf ("%suser", DBPREFIX)];
- $pwd = $_COOKIE [sprintf ("%sauth", DBPREFIX)];
+ $userkey = sprintf ("%suser", DBPREFIX);
+ $user = (isset($_COOKIE [$userkey]))? $_COOKIE[$userkey]: "";
+ $pwdkey = sprintf ("%sauth", DBPREFIX);
+ $pwd = (isset($_COOKIE [$pwdkey]))? $_COOKIE[$pwdkey]: "";
$logged = ($connection->checkpwdmd5 ($user, $pwd));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<link rel="stylesheet" href="./media/admin.css" type="text/css">
<link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
+<?php
+ if (file_exists ("./media/admin_custom.css")) {
+ printf(" <link rel=\"stylesheet\" href=\"./media/admin_custom.css\" type=\"text/css\">\n");
+ }
+?>
+
<script type="text/javascript">
var SypStrings = {
AddItem: "<?php ptrans('add a place')?>",
+ Cancel: "<?php ptrans('cancel')?>",
DragDropHowto: "<?php ptrans('You can move an item by drag & droping it.')?>",
SelectHowto: "<?php ptrans('To modify an item data, select matching marker.')?>",
AddHowto: "<?php ptrans('Click on the map to add a marker.')?>",
UnauthorizedError: "<?php ptrans('Password is not correct.')?>",
NotimageError: "<?php ptrans('File does not look like an image.')?>",
UnconsistentError: "<?php ptrans('Server reply was inconsistent.')?>",
- DelSucces: "<?php ptrans('Removal took place correctly.')?>",
+ DelSucces: "<?php ptrans('Successfully removed.')?>",
UpdateSucces: "<?php ptrans('Save took place correctly.')?>",
emptyPasswordError: "<?php ptrans('Password cannot be empty')?>",
userPasswordmatchError: "<?php ptrans('Passwords do not match.')?>",
changeSamePass: "<?php ptrans('New password is the same as old password.')?>",
changePassBadPass: "<?php ptrans('Bad password.')?>",
- changePassSuccess: "<?php ptrans('Password changed correctly.')?>",
+ changePassSuccess: "<?php ptrans('Password successfully changed.')?>",
newUserNonameError: "<?php ptrans('User name has not been set.')?>",
newUserExistsError: "<?php ptrans('User already exists in database.')?>",
- newUserSuccess: "<?php ptrans('User added correctly.')?>"
+ newUserSuccess: "<?php ptrans('User successfully added.')?>"
};
var sypSettings = {
</tr>
</table>
<p class="center">
- <input id="login_submit" type="submit" value="<?php ptrans('Connection')?>">
+ <input id="login_submit" type="submit" value="<?php ptrans('Login')?>">
<input type="hidden" name="request" value="auth">
</p>
<p id="pwd_throbber" class="throbber center">