Ignore:
Timestamp:
03/18/08 08:52:27 (16 years ago)
Author:
niltonneto
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/inc/Jabberd2.abstract.php

    r216 r227  
    7171                        if ( $this->writeSocket($this->iq('set', $addid, NULL, NULL, "jabber:iq:roster", $newcontact)) ) 
    7272                                $this->getContacts(); 
     73                                echo "OK"; 
    7374                } 
    7475        } 
     
    8788                { 
    8889                        $jid = ( trim($pJid['jid']) == "this" ) ? $this->_user . '@' . $this->_server : $pJid['jid']; 
    89  
     90                        $vcard = (trim($pJid['jid']) == "this") ? 'vCard_user' : 'vCard'; 
     91                         
    9092                        if ( !$this->connected ) 
     93                        { 
    9194                                echo "disconnected"; 
     95                        } 
    9296                        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                        } 
    94100                } 
    95101                else 
     
    106112                        echo "disconnected"; 
    107113                else 
     114                { 
    108115                        $this->writeSocket($this->iq('set', $id, NULL, NULL, "vcard-temp", "<vCard xmlns='vcard-temp'>".$NewVcard['vcard']."</vCard>")); 
     116                        echo "OK"; 
     117                } 
    109118        } 
    110119 
     
    151160        } 
    152161 
     162        final function setStatus() 
     163        { 
     164                $this->setPresence(array("type" => "unavailable")); 
     165                $this->setPresence(array("type" => "available"));        
     166        } 
     167 
    153168        final function updateContact($pContact) 
    154169        { 
Note: See TracChangeset for help on using the changeset viewer.