diff options
author | Simon Rettberg | 2015-03-02 18:42:52 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-03-02 18:42:52 +0100 |
commit | 9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced (patch) | |
tree | 3956bf015bf862ab46380fbfaddf0e0fa631eb85 /modules/login.inc.php | |
parent | Initial Commit (diff) | |
download | bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.gz bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.xz bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.zip |
Second Commit
Diffstat (limited to 'modules/login.inc.php')
-rw-r--r-- | modules/login.inc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/login.inc.php b/modules/login.inc.php new file mode 100644 index 0000000..517ce4e --- /dev/null +++ b/modules/login.inc.php @@ -0,0 +1,18 @@ +<?php + +class Page_Login extends Page +{ + + public function doPreprocess() + { + if (User::load()) + Util::redirect('?do=Main'); + } + + public function doRender() + { + Render::addTemplate('login/_page'); + } + +} + |