summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2014-05-19 15:30:59 +0200
committerSimon Rettberg2014-05-19 15:30:59 +0200
commitf6ceaa03052e6878afd53a4bbb7f4429849fe25a (patch)
tree9f5582c8c275494728f6d6dcf656479714688934 /inc
parentWorking on config.tgz composition through config modules (diff)
downloadslx-admin-f6ceaa03052e6878afd53a4bbb7f4429849fe25a.tar.gz
slx-admin-f6ceaa03052e6878afd53a4bbb7f4429849fe25a.tar.xz
slx-admin-f6ceaa03052e6878afd53a4bbb7f4429849fe25a.zip
OO style modules
Diffstat (limited to 'inc')
-rw-r--r--inc/user.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php
index b333c7e4..19d17753 100644
--- a/inc/user.inc.php
+++ b/inc/user.inc.php
@@ -25,6 +25,9 @@ class User
public static function load()
{
+ if (self::isLoggedIn()) {
+ return true;
+ }
if (Session::load()) {
$uid = Session::get('uid');
if ($uid === false || $uid < 1) self::logout();
@@ -50,7 +53,7 @@ class User
public static function logout()
{
Session::delete();
- Header('Location: ?do=main&fromlogout');
+ Header('Location: ?do=Main&fromlogout');
exit(0);
}