summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index a7efbd86..85771dec 100644
--- a/public/index.php
+++ b/public/index.php
@@ -33,7 +33,7 @@ if (isset ($_REQUEST['auth']))
// Gewünschte Seite/Funktion
$p = isset ($user) ? "news" : "login";
-if (isset ($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && sql_num_query("SELECT * FROM `Privileges` WHERE `name`='" . sql_escape($_REQUEST['p']) . "' LIMIT 1") > 0)
+if (isset ($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && ($_REQUEST['p'] == 'stats' || (sql_num_query("SELECT * FROM `Privileges` WHERE `name`='" . sql_escape($_REQUEST['p']) . "' LIMIT 1") > 0)))
$p = $_REQUEST['p'];
$title = Get_Text($p);
@@ -47,6 +47,10 @@ elseif ($p == "atom") {
require_once ('includes/pages/user_atom.php');
user_atom();
}
+elseif ($p == "stats") {
+ require_once ('includes/pages/guest_stats.php');
+ guest_stats();
+}
// Recht dafür vorhanden?
elseif (in_array($p, $privileges)) {
if ($p == "news") {