This commit is contained in:
144 changed files with 20649 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
error_reporting(0);
header('Access-Control-Allow-Origin:*');
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
// Получаем данные
$data = json_decode(file_get_contents("php://input"),true);
include_once "Class/function.php";
include_once "Class/Database.php";
//include_once "Class/DatabasePGSQL.php";
include_once "Class/MainClass.php";
$database = new Database();
//$database = new Database();//PGSQL
$db = $database->getConnection();
$main_class = new MainClass($db);
$result=$main_class->DeleteCollect($data);
echo json_encode($result);