-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic start to a working SMS broadcast; Add DIDww as Carrier; fix email sending; update readme. Co-authored-by: blackc2004 <[email protected]>
- Loading branch information
1 parent
b2b1930
commit 8bb0682
Showing
11 changed files
with
915 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
include "../root.php"; | ||
|
||
require_once "resources/require.php"; | ||
require_once "../sms_hook_common.php"; | ||
|
||
error_log(print_r($_POST,true)); | ||
|
||
if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){ | ||
throw new Exception("Request method must be POST! $_SERVER[REQUEST_METHOD]"); | ||
} | ||
|
||
|
||
$sms_from=$_POST['from']; | ||
$sms_text=base64_decode($_POST['body']); | ||
$sms_to_did_no=$_POST['to']; | ||
|
||
route_and_send_sms($sms_from, $sms_to_did_no, $sms_text); | ||
|
||
die("no"); | ||
?> |
Oops, something went wrong.