MCPcopy Create free account
hub / github.com/error311/FileRise / fr_pro_guard_method

Function fr_pro_guard_method

public/api/pro/_common.php:56–63  ·  view source on GitHub ↗
(string $method)

Source from the content-addressed store, hash-verified

54
55if (!function_exists('fr_pro_guard_method')) {
56 function fr_pro_guard_method(string $method): void
57 {
58 fr_pro_bootstrap();
59
60 if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== $method) {
61 fr_pro_json(405, ['ok' => false, 'error' => 'Method not allowed']);
62 }
63 }
64}
65
66if (!function_exists('fr_pro_start_session')) {

Callers 15

save.phpFile · 0.85
exportCsv.phpFile · 0.85
list.phpFile · 0.85
delete.phpFile · 0.85
select.phpFile · 0.85
save.phpFile · 0.85
test.phpFile · 0.85
list.phpFile · 0.85

Calls 2

fr_pro_bootstrapFunction · 0.85
fr_pro_jsonFunction · 0.85

Tested by

no test coverage detected