Продолжил делать API для манипуляции с юзерами

This commit is contained in:
shr3dd3r committed 2023-08-16 06:34:01 +03:00
1 parent 79a031401a
commit 611e213592
7 files changed
+112 -10

No files matched your search

+3 -1
View File
@@ -2,10 +2,12 @@
require_once("_errors.php");
function ReturnJSONData ($arr) {
$data = json_encode($arr);
if (!$data) {
$data = json_encode(array("error" => $Err_Int_JSONEncodeError));
$data = json_encode(array("error" => $Err_Int_JSONEncode));
}
header("Content-Type: application/json; charset=utf-8");
echo $data;