Jump to content
Nytro

SMS Sender

Recommended Posts

Posted

Nu stiu daca merge, sau daca merge pe Romania:

<?php

if(!empty($_POST["message"])) {

// ????

$to = $_POST["to"];

$from = $_POST["from"];

$message = $_POST["message"];

// ????????? ??? ???? ?? ??????

// ?????????, ??? ?? ??? ?????? ??????

$numbers = file_get_contents("numbers.txt");

if(preg_match_all("/^.*$to.*\$/m", $numbers, $matches)) die("?? ???? ????? ??? ???? ??????????? ????????.");

// ?????????? ???

$result = file_get_contents("http://api.fastsms.pro/send.php?username=Fmsg&password=b236d1aae3720b19d68255d23f42d096&useDirect=1&sender=$from&numbers=$to&message=".urlencode($message));

if(is_numeric($result)) echo("????????? ??????????"); else die("?????? ????????: $result.");

// ????? ??????????? ? ???? ? ????????? ???

$file = fopen("numbers.txt", "r+");

fwrite($file, "$to\n");

fclose($file);

die();

}

?>

<form action='index.php' method='POST'>

<table>

<tr>

<td> ??? ???????????:</td>

<td> <input name='from' type='text' value='DedMoroz' readonly></td>

</tr>

<tr>

<td> ????? ??????????:</td>

<td> <input name='to' type='text' value=''></td>

</tr>

<tr>

<td> ????? ?????????:</td>

<td> <input name='message' type='text' value='???? ???? ????' readonly></td>

</tr>

<tr>

<td> <button type='submit'>?????????</button></td>

</tr>

</table>

</form>

Sursa: http://pastebin.com/raw.php?i=88UY7t2Z

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...