15 lines
468 B
PHP
15 lines
468 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
$content = file_get_contents('php://input');
|
||
|
|
|
||
|
|
if(isset($_POST)){
|
||
|
|
$content .= json_encode($_POST);
|
||
|
|
}
|
||
|
|
|
||
|
|
// $sql = "INSERT INTO `megafon_info` (`data`) VALUES ('$content')";
|
||
|
|
// mysql_query($sql);
|
||
|
|
//file_put_contents($_SERVER['DOCUMENT_ROOT']."/callevents/log_alloincognito.txt", $content."\n", FILE_APPEND);
|
||
|
|
//require_once($_SERVER['DOCUMENT_ROOT']."/callevents/megafon.php");
|
||
|
|
|
||
|
|
|
||
|
|
header('Content-Type: application/json');
|