Joywork/ajax/ajax_vue_export.php

20 lines
448 B
PHP
Raw Normal View History

2026-05-22 20:21:54 +02:00
<?php
require_once($_SERVER['DOCUMENT_ROOT']."/ajax/vue_php_function.php");
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
$data = json_decode(file_get_contents("php://input"));
$function = $data->request;
$es = new ExportClass();
if(isset($data->agency_id)){
$agency_id = (int)$data->agency_id;
$es->set_agency($agency_id);
}
$responce = $es->$function($data);
echo json_encode($responce, JSON_UNESCAPED_UNICODE);