summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index e5782e6a..a3f5384e 100644
--- a/index.php
+++ b/index.php
@@ -3,7 +3,9 @@
require_once 'config.php';
require_once 'dictionary.php';
+Dictionary::build();
+require_once('inc/user.inc.php');
/**
* Page class which all "modules" must be extending from
@@ -115,8 +117,11 @@ if (AJAX) {
Page::preprocess();
// Generate Main menu
-$menu = new Menu;
-Render::addTemplate('main-menu', $menu);
+//$menu = new Menu;
+if(User::getName() === false) Render::addTemplate('main-menu-login');
+else Render::addTemplate('main-menu-logout',array(
+ 'user' => User::getName()
+ ));
Message::renderList();