query($sql);*/ $content = file_get_contents('php://input'); /*if(isset($_GET['userId'])){ $content = $_GET['userId'].' '.$content; }*/ $api = 0; if(isset($_GET['api'])){ $api = (int)$_GET['api']; } $data = json_decode($content, true); $data['api'] = $api; //$log = json_encode($data, JSON_UNESCAPED_UNICODE); //file_put_contents($_SERVER['DOCUMENT_ROOT']."/webhooks/log_avito.txt", $log."\n", FILE_APPEND); require_once($_SERVER['DOCUMENT_ROOT']."/webhooks/avito.php");