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

Function fr_admin_bootstrap

public/api/admin/_common.php:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5if (!function_exists('fr_admin_bootstrap')) {
6 function fr_admin_bootstrap(): void
7 {
8 if (!defined('PROJECT_ROOT')) {
9 require_once __DIR__ . '/../../../config/config.php';
10 }
11
12 if (!headers_sent()) {
13 header('Content-Type: application/json; charset=utf-8');
14 header('Cache-Control: no-store');
15 header('X-Content-Type-Options: nosniff');
16 }
17 }
18}
19
20if (!function_exists('fr_admin_start_session')) {

Callers 3

fr_admin_start_sessionFunction · 0.85
fr_admin_read_jsonFunction · 0.85
fr_admin_emit_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected