X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsalmon.php;h=473432f259542c92a067a41e8681e2f2846ccbc7;hb=326a873082cd9f31f70bfb703ad2c3e7fde19bb8;hp=8a56882adb6f16ef6671b8b431cb38428e482c91;hpb=5c98032893d945644c6da6bdf99484c0c8cb7e45;p=friendica.git diff --git a/include/salmon.php b/include/salmon.php index 8a56882adb..473432f259 100644 --- a/include/salmon.php +++ b/include/salmon.php @@ -128,7 +128,9 @@ $namespaces = <<< EOT xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0" xmlns:as="http://activitystrea.ms/spec/1.0/" xmlns:georss="http://www.georss.org/georss" - xmlns:poco="http://portablecontacts.net/spec/1.0" > + xmlns:poco="http://portablecontacts.net/spec/1.0" + xmlns:ostatus="http://ostatus.org/schema/1.0" + xmlns:statusnet="http://status.net/schema/api/1/" > > EOT; $slap = str_replace('',$namespaces,$slap); @@ -143,9 +145,9 @@ EOT; // Setup RSA stuff to PKCS#1 sign the data - set_include_path(get_include_path() . PATH_SEPARATOR . 'phpsec'); + set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec'); - require_once('phpsec/Crypt/RSA.php'); + require_once('library/phpsec/Crypt/RSA.php'); $rsa = new CRYPT_RSA(); $rsa->signatureMode = CRYPT_RSA_SIGNATURE_PKCS1; @@ -160,7 +162,7 @@ EOT; $signature2 = base64url_encode($rsa->sign($data)); - $salmon_tpl = load_view_file('view/magicsig.tpl'); + $salmon_tpl = get_markup_template('magicsig.tpl'); $salmon = replace_macros($salmon_tpl,array( '$data' => $data, '$encoding' => $encoding,