aboutsummaryrefslogtreecommitdiff
path: root/pages/admin.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-11 06:38:23 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-11 06:38:23 -0500
commitd9bf22a0e29c2a70049443a0ae8521a2c0492c8b (patch)
treec7599a9169d5def7df56c480ad6d67f312443d6f /pages/admin.php
downloadelgg-d9bf22a0e29c2a70049443a0ae8521a2c0492c8b.tar.gz
elgg-d9bf22a0e29c2a70049443a0ae8521a2c0492c8b.tar.bz2
initial commit for git repository
Diffstat (limited to 'pages/admin.php')
-rw-r--r--pages/admin.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/pages/admin.php b/pages/admin.php
new file mode 100644
index 000000000..9390e5b00
--- /dev/null
+++ b/pages/admin.php
@@ -0,0 +1,27 @@
+<?php
+require_once(dirname(dirname(__FILE__)).'/models/model.php');
+
+// let admins configure the OpenID client
+
+admin_gatekeeper();
+
+set_context('admin');
+
+$title = elgg_echo('openid_client:admin_title');
+
+$content = elgg_view_title($title);
+
+$content .= elgg_view("openid_client/forms/admin",
+ array(
+ 'default_server' => get_plugin_setting('default_server','openid_client'),
+ 'always_sync' => get_plugin_setting('always_sync','openid_client'),
+ 'sso' => get_plugin_setting('sso','openid_client'),
+ 'greenlist' => get_plugin_setting('greenlist','openid_client'),
+ 'yellowlist' => get_plugin_setting('yellowlist','openid_client'),
+ 'redlist' => get_plugin_setting('redlist','openid_client'),
+ ));
+
+
+$body = elgg_view_layout("two_column_left_sidebar", '', $content);
+
+page_draw($title, $body);