summaryrefslogtreecommitdiff
path: root/www/login.php
diff options
context:
space:
mode:
authoroweissbarth2014-03-16 19:00:52 +0100
committeroweissbarth2014-03-16 19:00:52 +0100
commit47b7715c50c9583df4ce621a9af03b879475fbc6 (patch)
tree36f41d89f39f0fdb447b65d7cdc4059f3270f04b /www/login.php
parenta37702805900d71609e7266a27c8b42c1bbae30f (diff)
downloadfiles.iamfabulous.de-47b7715c50c9583df4ce621a9af03b879475fbc6.tar.gz
fixed constants error
Diffstat (limited to 'www/login.php')
-rwxr-xr-xwww/login.php5
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>