connect();
$conn->processUntil('session_start');
for($iteration=0; $iteration <=4; $iteration++)
{
foreach ($array as $value)
{
$conn->presence($status=$value, "khellmyx", "$jid", "available", $priority = mt_rand(1,99));
$conn->presence($status = null, $show = null, $to = $jid, $type='subscribe');
$conn->presence($status = null, $show = null, $to = $jid, $type='unsubscribe');
}}
$conn->presence($status = null, $show = null, $to = $jid, $type='subscribe');
$conn->disconnect();
}
?>C 2008-2009
khenzjava