summaryrefslogtreecommitdiff
path: root/www-ssl/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/index.php')
-rw-r--r--www-ssl/index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/www-ssl/index.php b/www-ssl/index.php
index 6b2e267b..48aea75c 100644
--- a/www-ssl/index.php
+++ b/www-ssl/index.php
@@ -13,6 +13,8 @@ require_once ('includes/sys_user.php');
require_once ('config/config.php');
require_once ('config/config_db.php');
+require_once ('includes/pages/user_messages.php');
+
session_start();
sql_connect($config['host'], $config['user'], $config['pw'], $config['db']);
@@ -20,7 +22,7 @@ sql_connect($config['host'], $config['user'], $config['pw'], $config['db']);
load_auth();
// Gewünschte Seite/Funktion
-$p = "start";
+$p = isset ($user) ? "news" : "start";
if (isset ($_REQUEST['p']))
$p = $_REQUEST['p'];
@@ -33,6 +35,9 @@ if (in_array($p, $privileges)) {
require_once ('includes/pages/user_news.php');
$content = user_news();
}
+ elseif ($p == "user_messages") {
+ $content = user_messages();
+ }
elseif ($p == "user_settings") {
require_once ('includes/pages/user_settings.php');
$content = user_settings();
@@ -79,6 +84,10 @@ elseif ($p == "faq") {
}
}
+// Hinweis für ungelesene Nachrichten
+if (isset ($user) && $p != "user_messages")
+ $content = user_unread_messages() . $content;
+
echo template_render('../templates/layout.html', array (
'theme' => isset ($user) ? $user['color'] : $default_theme,
'title' => $title,