Initial checkin

This commit is contained in:
Joe
2017-02-07 12:55:56 -06:00
commit b557c002ae
44 changed files with 15499 additions and 0 deletions

18
postForward.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
//$data = json_decode(file_get_contents('php://input'), true);
$data = file_get_contents('php://input');
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <webmaster@netsquat.com>' . "\r\n";
$result=mail ("webmaster@i-buy.properties","new From", $data, $headers);
if($result){
echo '{"status":"success"}';
} else {
echo '{"status":"error"}';
}
?>