SHOW:
|
|
- or go back to the newest paste.
| 1 | <!DOCTYPE html5 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 2 | <html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:lang="en" xmlns:fb="http://ogp.me/ns/fb#" class="js"> | |
| 3 | ||
| 4 | <head> | |
| 5 | <title> Group SMS Sender v0.1 </title> | |
| 6 | ||
| 7 | </head> | |
| 8 | ||
| 9 | <!-- Main Body Code --> | |
| 10 | <body> | |
| 11 | ||
| 12 | ||
| 13 | <?php | |
| 14 | ||
| 15 | if (isset($_POST['GroupMsg'])) | |
| 16 | {
| |
| 17 | $pass = $_POST['pass']; | |
| 18 | $members = $_POST['members']; | |
| 19 | $members = $members-1; | |
| 20 | $number = explode(" ",$_POST['mobile']);
| |
| 21 | $nextmsg = $_POST['message']; | |
| 22 | - | $nextmsg = $nextmsg; |
| 22 | + | |
| 23 | $random = rand (200000, 900000); | |
| 24 | $random = $random; | |
| 25 | if($pass == "sippu") | |
| 26 | {
| |
| 27 | if($number == '9017444348' || $number == '7206828233') | |
| 28 | {
| |
| 29 | echo "Not allowed on this number"; | |
| 30 | } | |
| 31 | ||
| 32 | if($number == '') | |
| 33 | {
| |
| 34 | echo "Please enter a mobile number"; | |
| 35 | } | |
| 36 | else | |
| 37 | {
| |
| 38 | for ($value=0; $value<=$members; $value++) | |
| 39 | {
| |
| 40 | $numbers = explode(' ', $_POST['mobile']);
| |
| 41 | foreach ($numbers as $number) | |
| 42 | {
| |
| 43 | var_dump($number); | |
| 44 | } | |
| 45 | $res = file_get_contents("http://localhost/sms?username=superadmin&password=greatpass&to={$number}&from=GroupMSG&text={$nextmsg}+Meesage+Random+Number+:+{$random}");
| |
| 46 | //echo "Message sent. Countdown:" . " $value "; | |
| 47 | echo "<br>"; | |
| 48 | echo "" . $res . " to " . $number . ""; | |
| 49 | echo "<br>"; | |
| 50 | $nextmsg = $_POST['message']; | |
| 51 | $nextmsg = urlencode("{$nextmsg}") ;
| |
| 52 | $random = rand (200000, 900000); | |
| 53 | $random = $random; | |
| 54 | } | |
| 55 | } | |
| 56 | } | |
| 57 | else | |
| 58 | {
| |
| 59 | echo "Incorrect Password"; | |
| 60 | } | |
| 61 | } | |
| 62 | else | |
| 63 | {
| |
| 64 | ?> | |
| 65 | <div id="GroupMessageForm"> | |
| 66 | - | <div id="SmsBombForm"> |
| 66 | + | <form action="" method="POST" name="groupmsg" enctype="multipart/form-data"> |
| 67 | - | <form action="" method="POST" name="smsbomber" enctype="multipart/form-data"> |
| 67 | + | |
| 68 | <input tabindex="1" required="required" placeholder="Enter Mobile Number" type="text" autocomplete="on" name="mobile" id="mobile" autofocus="autofocus"> | |
| 69 | <div>No. of members:</div> | |
| 70 | <input tabindex="2" required="required" placeholder="99" type="text" maxlength="2" autocomplete="on" name="members" id="members"> | |
| 71 | <div>Message for the group:</div> | |
| 72 | <input tabindex="3" required="required" placeholder="Hello guys and girls." autocomplete="on" type="text" name="message" id="message"> | |
| 73 | <div>Password:</div> | |
| 74 | <input tabindex="4" required="required" placeholder="Password" type="password" autocomplete="on" name="pass" id="pass"> | |
| 75 | <input tabindex="5" align="center" type="submit" name="GroupMsg" value="Send Group Message"/> | |
| 76 | </form> | |
| 77 | </div> | |
| 78 | ||
| 79 | <? | |
| 80 | } | |
| 81 | ?> | |
| 82 | ||
| 83 | </body> | |
| 84 | </html> |