diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
commit | 5cc7f96262509b2a5d43fa6fbb6cd083064385be (patch) | |
tree | c2de1ca30876063882cbbb0818d1d618cc6da4c4 /mod/openid_server/server.php | |
parent | 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f (diff) | |
parent | b6c722ac63d250972fea066b30e58026d00ab3e2 (diff) | |
download | elgg-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-x | mod/openid_server/server.php | 32 |
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);
+
+}
+?>
|