Esempio n. 1
0
 public function rejectinvate($id)
 {
     if (!$this->itemexists($id)) {
         return false;
     }
     $item = $this->getitem($id);
     $this->setstatus($id, 'rejected');
     if ($ping = tpinger::Discover($item['url'])) {
         $actions = TXMLRPCAction::i();
         if ($actions->rejectfriend($ping, $this->profile)) {
             return true;
         }
     }
     return false;
 }