aboutsummaryrefslogtreecommitdiff
path: root/mod/openid_api/lib/openid_server.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-11-09 16:27:03 +0100
committerSem <sembrestels@riseup.net>2013-11-09 16:27:03 +0100
commit911d0021c374602c31e5bfd71b1cd8074f2c2293 (patch)
tree7e1d529b705e24906d69b9056d7980f0ebabc772 /mod/openid_api/lib/openid_server.php
parent5cc7f96262509b2a5d43fa6fbb6cd083064385be (diff)
parent33c206552a0cfd1166b2d5e4fcceb26f5ff1d224 (diff)
downloadelgg-911d0021c374602c31e5bfd71b1cd8074f2c2293.tar.gz
elgg-911d0021c374602c31e5bfd71b1cd8074f2c2293.tar.bz2
Add 'mod/openid_api/' from commit '33c206552a0cfd1166b2d5e4fcceb26f5ff1d224'
git-subtree-dir: mod/openid_api git-subtree-mainline: 5cc7f96262509b2a5d43fa6fbb6cd083064385be git-subtree-split: 33c206552a0cfd1166b2d5e4fcceb26f5ff1d224
Diffstat (limited to 'mod/openid_api/lib/openid_server.php')
-rw-r--r--mod/openid_api/lib/openid_server.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/openid_api/lib/openid_server.php b/mod/openid_api/lib/openid_server.php
new file mode 100644
index 000000000..79ed064b4
--- /dev/null
+++ b/mod/openid_api/lib/openid_server.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * OpenID library loader for servers
+ */
+
+$openid_path = dirname(dirname(__FILE__)) . '/vendors/php-openid/';
+$path = ini_get('include_path');
+$path = $openid_path . PATH_SEPARATOR . $path;
+ini_set('include_path', $path);
+
+require_once 'Auth/OpenID.php';
+require_once 'Auth/OpenID/Server.php';
+require_once 'Auth/OpenID/SReg.php';