From 47b7715c50c9583df4ce621a9af03b879475fbc6 Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Sun, 16 Mar 2014 19:00:52 +0100 Subject: fixed constants error --- www/include.php | 2 ++ www/index.php | 8 ++++---- www/login.php | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/www/include.php b/www/include.php index fdaf738..3a79919 100755 --- a/www/include.php +++ b/www/include.php @@ -14,3 +14,5 @@ require_once($func_dir . "func_select.php"); // get the primary key from the la require_once($func_dir . "func_user.php"); // gets the userid and account specific stuff require_once($func_dir . "func_content.php"); // get the vfs content +require_once("login.php"); + diff --git a/www/index.php b/www/index.php index 79c7949..75a32f3 100755 --- a/www/index.php +++ b/www/index.php @@ -33,7 +33,7 @@ if(empty($_GET)){ print_login($var); } } else { - print_login(EMPTY); + print_login(constant("EMPTY")); } break; @@ -48,7 +48,7 @@ if(empty($_GET)){ case("invite"): if(!$_SESSION["login"]){ - print_login(EMPTY); + print_login(constant("EMPTY")); } if($_SERVER['REQUEST_METHOD'] == 'POST'){ @@ -59,7 +59,7 @@ if(empty($_GET)){ print_invite($var); } } else { - print_login(EMPTY); + print_login(constant("EMPTY")); } break; @@ -72,7 +72,7 @@ if(empty($_GET)){ print_register($var); } } else { - print_register(EMPTY); + print_register(constant("EMPTY")); } break; 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 = '