Changeset 227 for trunk/instant_messenger/inc/Jabberd2.abstract.php
- Timestamp:
- 03/18/08 08:52:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/inc/Jabberd2.abstract.php
r216 r227 71 71 if ( $this->writeSocket($this->iq('set', $addid, NULL, NULL, "jabber:iq:roster", $newcontact)) ) 72 72 $this->getContacts(); 73 echo "OK"; 73 74 } 74 75 } … … 87 88 { 88 89 $jid = ( trim($pJid['jid']) == "this" ) ? $this->_user . '@' . $this->_server : $pJid['jid']; 89 90 $vcard = (trim($pJid['jid']) == "this") ? 'vCard_user' : 'vCard'; 91 90 92 if ( !$this->connected ) 93 { 91 94 echo "disconnected"; 95 } 92 96 else 93 $this->writeSocket($this->iq('get', 'vCard', $jid, NULL, "vcard-temp", "<vCard xmlns='vcard-temp'/>")); 97 { 98 $this->writeSocket($this->iq('get', $vcard, $jid, NULL, "vcard-temp", "<vCard xmlns='vcard-temp'/>")); 99 } 94 100 } 95 101 else … … 106 112 echo "disconnected"; 107 113 else 114 { 108 115 $this->writeSocket($this->iq('set', $id, NULL, NULL, "vcard-temp", "<vCard xmlns='vcard-temp'>".$NewVcard['vcard']."</vCard>")); 116 echo "OK"; 117 } 109 118 } 110 119 … … 151 160 } 152 161 162 final function setStatus() 163 { 164 $this->setPresence(array("type" => "unavailable")); 165 $this->setPresence(array("type" => "available")); 166 } 167 153 168 final function updateContact($pContact) 154 169 {
Note: See TracChangeset
for help on using the changeset viewer.