Pihole
All checks were successful
Deploy / deploy-staging (push) Successful in 24s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-24 00:18:11 +02:00
parent 0b06cae679
commit 80874e2e1d
19 changed files with 3465 additions and 0 deletions

View File

@@ -478,6 +478,19 @@ namespace {
}
}
if (!function_exists('require_admin')) {
function require_admin(): void
{
if (auth_is_admin()) {
return;
}
http_response_code(403);
echo 'Forbidden';
exit;
}
}
if (!function_exists('module_design')) {
function module_design(string $module): array
{