This commit is contained in:
2026-06-07 12:19:42 -04:00
parent 624fa349e8
commit a0f291c61a

View File

@@ -173,18 +173,6 @@ function scn01_render_main($access) {
return $out; return $out;
} }
// ---------------------------------------------------------------------------
// CONFIG
// ---------------------------------------------------------------------------
function scn01_load_config() {
$path = 'addon/scn01/config.json';
$raw = @file_get_contents($path);
if ($raw === false) return [];
$data = json_decode($raw, true);
return (json_last_error() === JSON_ERROR_NONE) ? $data : [];
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// CSRF // CSRF
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------