diff options
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);
+
+}
+?>
|