Initial commit for release of version 1.0

This commit is contained in:
2021-08-12 22:55:38 +02:00
parent b9a88906ce
commit 9db6477952
70 changed files with 415 additions and 2129 deletions

View File

@@ -4,44 +4,40 @@
<script>
function validate_form()
{
var domain = document.getElementById('domain_input').value;
var username = document.getElementById('username_input').value;
var password = document.getElementById('password_input').value;
if (domain == "")
if (username == "")
{
alert("Enter domain.");
alert("Please enter your username.");
return false;
}
if (password == "")
{
alert("Enter password.");
alert("Please enter your password.");
return false;
}
if ( domain.match(/[^A-Za-z0-9\-\.]/) )
if (username.match(/[^A-Za-z\-\.]/))
{
alert("Domain can contain only english letters, dots, hyphens and digits.");
return false;
}
if ( password.match(/[^A-Za-z0-9]/) )
{
alert("Password can contain only english letters and digits.");
alert("The username may only contain english letters, dots and hyphens.");
return false;
}
}
</script>
</head>
<body>
<div id="header">Mailing lists service</div>
<div id="header">{$headline}</div>
<div id="login">
<div id="login_form">
<p>Please enter the credentials of your ECG account (<strong>without</strong> @ecogood.org).</p>
<form method="post" action="login.php" onsubmit="return validate_form()">
<div id="domain">
<div id="domain_left">
Domain:
<div id="username">
<div id="username_left">
Username:
</div>
<div id="domain_right">
<input type="text" name="login_domain" id="domain_input">
<div id="username_right">
<input type="text" name="login_username" id="username_input">
</div>
</div>
<div id="password">
@@ -52,8 +48,9 @@
<input type="password" name="login_pass" id="password_input">
</div>
</div>
<a href="https://wiki.ecogood.org/display/PUBLIC/IT-Support" target="_blank"><p>Forgot your password?</p></a>
<div id="enter">
<input type="submit" name="submit" value="Enter">
<input type="submit" name="submit" value="Login">
</div>
</form>
</div>