Updated
This commit is contained in:
@@ -173,18 +173,6 @@ function scn01_render_main($access) {
|
||||
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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user