コード例 #1
0
ファイル: jabber.php プロジェクト: microcosmx/experiments
/**
 * sends a confirmation request to a JID
 *
 * @param string $code     confirmation code for confirmation URL
 * @param string $nickname nickname of confirming user
 * @param string $address  JID to send confirmation to
 *
 * @return boolean success flag
 */
function jabber_confirm_address($code, $nickname, $address)
{
    $body = 'User "' . $nickname . '" on ' . common_config('site', 'name') . ' ' . 'has said that your Jabber ID belongs to them. ' . 'If that\'s true, you can confirm by clicking on this URL: ' . common_local_url('confirmaddress', array('code' => $code)) . ' . (If you cannot click it, copy-and-paste it into the ' . 'address bar of your browser). If that user isn\'t you, ' . 'or if you didn\'t request this confirmation, just ignore this message.';
    return jabber_send_message($address, $body);
}
コード例 #2
0
ファイル: xmppmanager.php プロジェクト: himmelex/NTW
 function from_site($address, $msg)
 {
     $text = '[' . common_config('site', 'name') . '] ' . $msg;
     jabber_send_message($address, $text);
 }
コード例 #3
0
 function error($user, $text)
 {
     $text = '[' . common_config('site', 'name') . '] ' . $text;
     jabber_send_message($user->jabber, $text);
 }