diff options
author | Friendika <info@friendika.com> | 2010-12-01 13:39:00 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-01 13:39:00 -0800 |
commit | 9513f1f1668a33be3fc2b241fe3662e9de42d84b (patch) | |
tree | 3a29494164ebfe0a51284599f73411c0c154dda6 /mod/dfrn_notify.php | |
parent | 99bbc29747e8b8f4f9a7a1952aecbbd202ed2470 (diff) | |
download | volse-hubzilla-9513f1f1668a33be3fc2b241fe3662e9de42d84b.tar.gz volse-hubzilla-9513f1f1668a33be3fc2b241fe3662e9de42d84b.tar.bz2 volse-hubzilla-9513f1f1668a33be3fc2b241fe3662e9de42d84b.zip |
rino recipient patch
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r-- | mod/dfrn_notify.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 830a2d255..cd7523a01 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -483,12 +483,21 @@ function dfrn_notify_content(&$a) { $challenge = bin2hex($challenge); $encrypted_id = bin2hex($encrypted_id); + $rino = ((function_exists('mcrypt_encrypt')) ? 1 : 0); + + $rino_enable = get_config('system','rino_encrypt'); + + if(! $rino_enable) + $rino = 0; + + header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="UTF-8"?>' . "\r\n" . '<dfrn_notify>' . "\r\n" . "\t" . '<status>' . $status . '</status>' . "\r\n" . "\t" . '<dfrn_version>' . DFRN_PROTOCOL_VERSION . '</dfrn_version>' . "\r\n" + . "\t" . '<rino>' . $rino . '</rino>' . "\r\n" . "\t" . '<dfrn_id>' . $encrypted_id . '</dfrn_id>' . "\r\n" . "\t" . '<challenge>' . $challenge . '</challenge>' . "\r\n" . '</dfrn_notify>' . "\r\n" ; |