File size: 3,639 Bytes
d5d3587 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta charset="utf-8" />
<META HTTP-EQUIV = "Pragma" CONTENT="no-cache">
<title> Minecraft Dynamic Map - Login/Register </title>
<link rel="icon" href="images/dynmap.ico" type="image/ico" />
<link rel="stylesheet" type="text/css" href="css/leaflet.css?_=3.7-SNAPSHOT-949" />
<link rel="stylesheet" type="text/css" href="css/standalone.css?_=3.7-SNAPSHOT-949" media="screen" />
<link rel="stylesheet" type="text/css" href="css/dynmap_style.css?_=3.7-SNAPSHOT-949" media="screen" />
<script type="text/javascript" src="standalone/config.js?_=3.7-SNAPSHOT-949"></script>
<script type="text/javascript" src="js/jquery-3.5.1.js?_=3.7-SNAPSHOT-949"></script>
<script type="text/javascript">
$(document).ready(function() {
var status = $('#status_message');
if(window.location.href.indexOf('error=loginfailed') >= 0)
$('<div/>').text('Login Failed ').appendTo(status);
if(window.location.href.indexOf('error=verifyfailed') >= 0)
$('<div/>').text('Password Verify Error ').appendTo(status);
if(window.location.href.indexOf('error=registerfailed') >= 0)
$('<div/>').text('Registration failed (bad passcode?) ').appendTo(status);
$('form')[0].setAttribute('action', config.url.login);
$('form')[1].setAttribute('action', config.url.register);
document.forms['login'].elements['j_username'].focus();
});
$(function(){
$('form[name=register]').submit(function(){
$.post($(this).attr('action'), $(this).serialize(), function(json) {
if(json.result == 'success')
window.location = 'index.html';
else
window.location = 'login.html?error=' + json.result;
}, 'json');
return false;
});
});
$(function(){
$('form[name=login]').submit(function(){
$.post($(this).attr('action'), $(this).serialize(), function(json) {
if(json.result == 'success')
window.location = 'index.html';
else
window.location = 'login.html?error=' + json.result;
}, 'json');
return false;
});
});
</script>
</head>
<body>
<div class='dynmaplogin'>
<h2>Minecraft Dynamic Map - Login/Register</h2>
<div id="status_message" class="statusmessage"></div>
<table class='loginregister'>
<tr><th>Existing User:</th></tr>
<tr><td class='login'>
<FORM METHOD=POST name=login ACTION="up/login">
<p>
Enter user ID and password:
<BR>
<BR>
<table>
<tr><td>User ID</td><td><input type="text" size="20" name="j_username"></td></tr>
<tr><td>Password</td><td><input type="password" size="20" name="j_password"></td></tr>
</table>
<BR>
<input type="submit" name="login" value="Login">
</p>
</form>
<p>
</td></tr>
<tr><th>Register New User:</th></tr>
<tr>
<td class='register'>
<FORM METHOD=POST name=register ACTION="up/register">
<p>
Run '/dynmap webregister' and enter returned registration code, along with userid and password:
<BR>
<BR>
<table>
<tr><td>User ID</td><td><input type="text" size="20" name="j_username"></td></tr>
<tr><td>Password</td><td><input type="password" size="20" name="j_password"></td></tr>
<tr><td>Verify Password</td><td><input type="password" size="20" name="j_verify_password"></td></tr>
<tr><td>Registration Code</td><td><input type="text" size="20" name="j_passcode"></td></tr>
</table>
<BR>
<BR>
<input type="submit" name="register" value="Register">
</p>
</form>
</td>
</tr>
</table>
</div>
</body>
</html>
|