diff options
| author | oweissbarth | 2014-03-16 19:00:52 +0100 |
|---|---|---|
| committer | oweissbarth | 2014-03-16 19:00:52 +0100 |
| commit | 47b7715c50c9583df4ce621a9af03b879475fbc6 (patch) | |
| tree | 36f41d89f39f0fdb447b65d7cdc4059f3270f04b /www/login.php | |
| parent | a37702805900d71609e7266a27c8b42c1bbae30f (diff) | |
| download | files.iamfabulous.de-47b7715c50c9583df4ce621a9af03b879475fbc6.tar.gz | |
fixed constants error
Diffstat (limited to 'www/login.php')
| -rwxr-xr-x | www/login.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/login.php b/www/login.php index a9f6f70..4d7ed6b 100755 --- a/www/login.php +++ b/www/login.php @@ -22,7 +22,8 @@ function print_login($case){ include("static/header.html"); $username = isset($_POST['username']) ? $_POST['username'] : ""; - + $message = ""; + switch($case){ case(LOGIN_PASSWORD): $message = '<h1 id="login-error"> Invalid username or password </h1> @@ -42,7 +43,7 @@ function print_login($case){ <div class="login-area"> <h1 class="login-area"> Log in </h1> <div class="login-area" id="login-info-bar">' - .isset($message)? $message : "". + .$message. '</div> <form id="login-form" method="post" action="/login"> <input type="text" placeholder="username" name="username" id="username-input" class="login-input" value="'. $username .'" required> |
