aboutsummaryrefslogtreecommitdiff
path: root/mod/openid_server/server.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-11-09 16:26:19 +0100
committerSem <sembrestels@riseup.net>2013-11-09 16:26:19 +0100
commit5cc7f96262509b2a5d43fa6fbb6cd083064385be (patch)
treec2de1ca30876063882cbbb0818d1d618cc6da4c4 /mod/openid_server/server.php
parent2161e2335c9c650b8e44a56f6c9b0bd37546ae1f (diff)
parentb6c722ac63d250972fea066b30e58026d00ab3e2 (diff)
downloadelgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.gz
elgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.bz2
Add 'mod/openid_server/' from commit 'b6c722ac63d250972fea066b30e58026d00ab3e2'
git-subtree-dir: mod/openid_server git-subtree-mainline: 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f git-subtree-split: b6c722ac63d250972fea066b30e58026d00ab3e2
Diffstat (limited to 'mod/openid_server/server.php')
-rwxr-xr-xmod/openid_server/server.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/openid_server/server.php b/mod/openid_server/server.php
new file mode 100755
index 000000000..7ebe70dd4
--- /dev/null
+++ b/mod/openid_server/server.php
@@ -0,0 +1,32 @@
+<?php
+
+require_once('openid_server_include.php');
+require_once 'lib/session.php';
+require_once 'lib/actions.php';
+
+if (elgg_get_viewtype() == 'xrds') {
+ echo elgg_view_page($title, $body);
+ exit(0);
+}
+
+$store = getOpenIDServerStore();
+
+$server =& getServer();
+
+$request = $server->decodeRequest();
+setRequestInfo($request);
+
+$action = getAction();
+if (!function_exists($action)) {
+ $action = 'action_default';
+}
+
+$resp = $action();
+if (!empty($resp)) {
+ writeResponse($resp);
+} else {
+ echo elgg_view_page($title, $body);
+ exit(0);
+
+}
+?>