로그아웃 인증 정리

This commit is contained in:
seo
2026-07-02 19:17:45 +09:00
parent d000b25648
commit a824d3bcda
3 changed files with 18 additions and 0 deletions
+16
View File
@@ -707,6 +707,22 @@ function control_admin_session_from_rhymix_or_custom(): bool
return $checked;
}
function clear_common_admin_auth_cookie_if_available(): void
{
$commonAuth = '/mnt/synology-web/custom/common/auth.php';
if (!is_file($commonAuth) || !is_readable($commonAuth)) {
return;
}
try {
require_once $commonAuth;
if (function_exists('custom_clear_auth_cookie')) {
custom_clear_auth_cookie();
}
} catch (Throwable) {
}
}
function require_login(): void
{
if (!signed_in()) {