summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-30 10:23:24 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-30 10:23:24 -0400
commitc501b7b9259b6fc8c34655b870ce79f102ada137 (patch)
tree00eaba024ac6c4021262d8f6628977a560df0159 /lib/omb.php
parent9210f956332d5fcd786dd3ec757e6fd789f9a1ad (diff)
interim commit after pull from server
darcs-hash:20080530142324-84dde-782c9f04f551447514f1557b9e80f8461a17771f.gz
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/omb.php b/lib/omb.php
index b68d08abf..df4ffb4b2 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -20,6 +20,7 @@
if (!defined('LACONICA')) { exit(1); }
require_once('OAuth.php');
+require_once(INSTALLDIR.'lib/oauthstore.php');
define('OAUTH_NAMESPACE', 'http://oauth.net/core/1.0/');
define('OMB_NAMESPACE', 'http://openmicroblogging.org/protocol/0.1');
@@ -44,6 +45,14 @@ function omb_oauth_consumer() {
return $con;
}
+function omb_oauth_server() {
+ static $server = null;
+ if ($server) {
+ $server = new OAuthServer(new LaconicaOAuthStore());
+ }
+ return $server;
+}
+
function omb_hmac_sha1() {
static $hmac_method = NULL;
if (!$hmac_method) {