request saves

This commit is contained in:
Bruno Eckhardt committed 2026-05-19 10:37:45 +02:00
1 parent a73b2ec13f
commit f7fd4ed183
3 files changed
+14

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ if ($api->urlAuth($_GET['token']) == true ) {
);
}
echo $api->jsonSuccess($data);
$api->requestSave();
}
/**
+1
View File
@@ -28,6 +28,7 @@ if ($api->urlAuth($_GET['token']) == true ) {
);
}
echo $api->jsonSuccess($data);
$api->requestSave();
}
/**
+12
View File
@@ -87,4 +87,16 @@ class ApiController {
}
return true;
}
public function requestSave($function = '') {
DatabaseInsert(
"API_LOGS",
"CLIENT_IP, TOKEN, API, FUNKTION, JSON",
(new getSpecificData())->getClientIP(),
$_GET['token'],
(new getSpecificData())->getRequestURL(),
$function,
'{"status": "success"}',
);
}
}