diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-28 22:53:05 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-28 22:53:05 +0100 |
commit | 263edf58f2751fbd042d71a1e786f6b203e3f71a (patch) | |
tree | 59ea4b0f6a6a29fb1757375d3cdf236af8273593 /public | |
parent | 7044c07c009ccaf4a0d9f27ab24e0cddaddcbae4 (diff) |
stats for infobeamer/monitor
Diffstat (limited to 'public')
-rw-r--r-- | public/index.php | 6 |
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") { |