diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-03 15:30:17 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-03 15:30:17 +0200 |
commit | 225398d87d56257e63f03504fb1a0452a8d9ae02 (patch) | |
tree | 1ce6d5952ea514fa9500cc623b3ea1d38ab5ce7f /www-ssl/index.php | |
parent | f6ad58750d8597329526413a0bff3c0b85dfdd28 (diff) |
json auth service complete
Diffstat (limited to 'www-ssl/index.php')
-rw-r--r-- | www-ssl/index.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/www-ssl/index.php b/www-ssl/index.php index 7c65abb2..214ec54a 100644 --- a/www-ssl/index.php +++ b/www-ssl/index.php @@ -22,6 +22,10 @@ sql_connect($config['host'], $config['user'], $config['pw'], $config['db']); load_auth(); +// JSON Authorisierung gewünscht? +if (isset ($_REQUEST['auth'])) + json_auth_service(); + // Gewünschte Seite/Funktion $p = isset ($user) ? "news" : "start"; if (isset ($_REQUEST['p'])) @@ -89,15 +93,15 @@ if (in_array($p, $privileges)) { elseif ($p == "admin_groups") { require_once ('includes/pages/admin_groups.php'); $content = admin_groups(); - } + } elseif ($p == "admin_faq") { require_once ('includes/pages/admin_faq.php'); $content = admin_faq(); - } + } elseif ($p == "admin_language") { require_once ('includes/pages/admin_language.php'); $content = admin_language(); - } + } elseif ($p == "admin_log") { require_once ('includes/pages/admin_log.php'); $content = admin_log(); |