<---start line--->set_time_limit($limit);
include 'XMPPHP/Log.php';
include 'XMPPHP/XMPP.php';
$nicknummer= mt_rand(1,30); // range jid nimbuzz
$nick1=$_POST["nick"];//jid nimbuzz $nick2=$_POST["nick"];//alias room
$user= "$nicknummer$nick1";
$user2= "$nicknummer$nick2";
$password=$_POST["password"]; //pasword
$resource='';
$host='openfire.nimbuzz.com'; $port='5222';
$server='nimbuzz.com';
$target=$_POST["target"];//roomtarget
$limit=$_POST["limit"];
$target1="$target@conference.nimbuzz.com";
$to=$target1; $to2="$target1/$user2";
$timer=$_POST["timer"];
$body=$_POST["text"];
$jumlah=$_POST["jumlah"];
$type3='groupchat';
$conn = new XMPPHP_XMPP($host, $port,$user, $password, $resource,$server, $printlog=false,
$loglevel=XMPPHP_Log::LEVEL_INFO);
try {
$conn->connect();
$conn->processUntil('session_start');
for ($s = '', $i = 0, $z = strlen($a= '789')-1; $i != 200; $x = rand(0,$z), $s .= $a{$x}, $i++);
$text = preg_replace('/([^s]{4})(?=[^s])/', '
$1;
', $s);
$conn->presence(NULL, "bot", "$to2", "available" ;
for ($a=0;$a<$jumlah;$a++)
{
sleep($timer);
$conn->message ("$to","$body","$type3" ;
}
$conn->presence(NULL, "bot", "$to2","unavailable" ;
echo "flood room $target1,berhasil dikirim";
$conn->disconnect();
} catch(XMPPHP_Exception $e) {
die($e->getMessage());
}
?><---finish line--->