summaryrefslogtreecommitdiffstats
path: root/modules/main.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/main.inc.php')
-rw-r--r--modules/main.inc.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/main.inc.php b/modules/main.inc.php
index fc6a9fac..007fb296 100644
--- a/modules/main.inc.php
+++ b/modules/main.inc.php
@@ -4,11 +4,16 @@ User::load();
function render_module()
{
- Render::setTitle('Wurstgesicht');
+ // Render::setTitle('abc');
Render::openTag('h1', array('class' => 'wurst kacke'));
Render::closeTag('h1');
- Render::addTemplate('helloworld', array('wurst' => 'käse & bier'));
+ if (!User::isLoggedIn()) {
+ Render::addTemplate('page-main-guest');
+ return;
+ }
+ // Logged in here
+ Render::addTemplate('page-main', array('user' => User::getName()));
}