Teya Salat
$jid= array("jid1","jid2","jid3"); $left = 'pein52'; $host='openfire.nimbuzz.com'; $port='5222'; $server='nimbuzz.com'; $status='good'; $type3='groupchat'; $password=$_POST['password']; $body =$_POST['costumflood']; $to = $_POST['target'];foreach ($jid as &$value) { $resource= ''; $conn1 = new XMPPHP_XMPP($host,$port, $value, $password, $resource,$server, $printlog=false,$loglevel=XMPPHP_Log::LEVEL_INFO); try { $conn1->connect(); $conn1->processUntil('session_start'); $conn1->pein52($to."/".$value,$status,$roompwd); $conn1->message("$to","$body","$type3","=naga*api="); for ($a=0;$a<8;$a++) { $conn1->message("$to","$body","$type3"); } $conn1->presence(NULL, "bot",$to."/".$left, "unavailable"); $conn1->disconnect(); } catch(XMPPHP_Exception $e) { die($e->getMessage()); } }