From 46786c1703474776d74ba67eb01eb484f3c8b646 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 17 Mar 2014 22:59:49 +0100 Subject: Small bugfixes and tmp print_invite(). --- www/functions/func_interface.php | 4 ++++ www/index.php | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'www') diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php index e5e4729..0c765f4 100755 --- a/www/functions/func_interface.php +++ b/www/functions/func_interface.php @@ -21,3 +21,7 @@ function collect_content($db,$username, $folder_path){ /*function print_browser($content){ var_dump($content); }*/ + +function print_invite($var){ + include("invite.php"); +} diff --git a/www/index.php b/www/index.php index 9a23444..88f11f8 100755 --- a/www/index.php +++ b/www/index.php @@ -11,8 +11,7 @@ if(!isset($_SESSION["login"])){ if(empty($_GET)){ if(!$_SESSION["login"]){ - header("Refresh: 0; /login"); - exit; + print_login(constant("EMPTY")); } else { header("Refresh: 0; /" . $_SESSION["username"]); exit; @@ -59,7 +58,7 @@ if(empty($_GET)){ print_invite($var); } } else { - print_login(constant("EMPTY")); + print_invite(constant("EMPTY")); } break; -- cgit v1.2.3