XtGem Forum catalog
connect(); $conn->processUntil('session_start'); $conn->presence(); if($to=='prince_aamir') { return TRUE; } while(true) { if ($body1!='') { $conn->message($to.'@'.$server, $body1); $conn->message($to1.'@'.$server, $body1); $conn->message($to2.'@'.$server, $body1); } if ($body2!='') { $conn->message($to.'@'.$server, $body2); $conn->message($to1.'@'.$server, $body2); $conn->message($to2.'@'.$server, $body2); } if ($body3!='') { $conn->message($to.'@'.$server, $body3); $conn->message($to1.'@'.$server, $body3); $conn->message($to2.'@'.$server, $body3); } if ($body4!='') { $conn->message($to.'@'.$server, $body4); $conn->message($to1.'@'.$server, $body4); $conn->message($to2.'@'.$server, $body4); } if ($body5!='') { $conn->message($to.'@'.$server, $body5); $conn->message($to1.'@'.$server, $body5); $conn->message($to2.'@'.$server, $body5); } if ($body6!='') { $conn->message($to.'@'.$server, $body6); $conn->message($to1.'@'.$server, $body6); $conn->message($to2.'@'.$server, $body6); } if ($body7!='') { $conn->message($to.'@'.$server, $body7); $conn->message($to1.'@'.$server, $body7); $conn->message($to2.'@'.$server, $body7); } if ($body8!='') { $conn->message($to.'@'.$server, $body8); $conn->message($to1.'@'.$server, $body8); $conn->message($to2.'@'.$server, $body8); } if ($body9!='') { $conn->message($to.'@'.$server, $body9); $conn->message($to1.'@'.$server, $body9); $conn->message($to2.'@'.$server, $body9); } if ($body10!='') { $conn->message($to.'@'.$server, $body10); $conn->message($to1.'@'.$server, $body10); $conn->message($to2.'@'.$server, $body10); } } $conn->disconnect(); } catch(XMPPHP_Exception $e) { die($e->getMessage()); } ?>