This commit is contained in:
2026-06-07 12:20:04 -04:00
parent a0f291c61a
commit e457889812

View File

@@ -173,18 +173,6 @@ function dsc01_render_main($access) {
return $out;
}
// ---------------------------------------------------------------------------
// CONFIG
// ---------------------------------------------------------------------------
function dsc01_load_config() {
$path = 'addon/dsc01/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
// ---------------------------------------------------------------------------