aboutsummaryrefslogtreecommitdiffstats
path: root/login.php
blob: 7f87c3c0440d4824e45cb17b121f87b675673a26 (plain) (blame)
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
<?php if(!@eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) && !@eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php } ?>
<html>
<head>
<title><?php echo SITE_NAME; ?> - Login</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="mainBox" style="width: auto;">

<div id="header">
<?php echo SITE_NAME.'<font id="subheader">'.SITE_BETA.'</font>'; ?>
</div>
<h3>Login</h3>
<?php if($wrongPassword) { ?>
<p style="color: red; font-size: 8pt; font-weight: bold; ">Incorrect username and/or password.</p>
<?php } ?>
<p>
<form method="POST" onSubmit="document.getElementById('loginbutton').disabled = true;">
<?php if($databaseLogin) { ?>
<p style="color: orange; font-size: 8pt; font-weight: bold; ">Please enter the database password. This is a different password from the user password.<br><i>Note: if this is your first time scanning the music directory, the page may take a while to load.</i></p>
<label>Database Password: <input type="password" name="dbpassword"<?php if($dbpassword != "") echo ' value="'.htmlentities($dbpassword).'"'; ?>></label><br>
<?php } else { ?>
<label>Username: <input type="text" name="username"<?php if($username != "") echo ' value="'.htmlentities($username).'"'; ?>></label><br>
<label>Password: <input type="password" name="password"<?php if($password != "") echo ' value="'.htmlentities($password).'"'; ?>></label><br>
<?php } ?>
<input type="submit" value="Login" id="loginbutton">
</form>
</p>
<br>
<span id="copyright">ZX2C4 Music is &copy; Copyright 2004-2011 Jason A. Donenfeld. All Rights Reserved.</span>
</div>
</body>
</html>