Merge remote-tracking branch 'origin/staging' into feat/domain-wide-footer

This commit is contained in:
FreddleSpl0it
2023-09-13 12:44:41 +02:00
155 changed files with 4097 additions and 2214 deletions

View File

@@ -2,9 +2,9 @@
/*
see /api
*/
header('Content-Type: application/json');
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
cors("set_headers");
header('Content-Type: application/json');
error_reporting(0);
function api_log($_data) {
@@ -1949,6 +1949,9 @@ if (isset($_GET['query'])) {
process_edit_return(edit_user_account($attr));
}
break;
case "cors":
process_edit_return(cors('edit', $attr));
break;
// return no route found if no case is matched
default:
http_response_code(404);