登录注册体系的源码级硬切换

This commit is contained in:
2026-08-23 20:30:01 +08:00
parent 73fcd4ed72
commit af52f9e94d
72 changed files with 1666 additions and 6576 deletions
+6 -1
View File
@@ -400,7 +400,12 @@ if ($floating_enabled) :
<?php
// 弹窗登录/注册模板(仅未登录用户)
if (!is_user_logged_in() && file_exists(AKSRT_DIR . '/templates/parts/modal-auth.php')) {
if (
!is_user_logged_in()
&& class_exists('\AKSRT\Settings\Settings')
&& \AKSRT\Settings\Settings::user_sign_type() === 'modal'
&& file_exists(AKSRT_DIR . '/templates/parts/modal-auth.php')
) {
include AKSRT_DIR . '/templates/parts/modal-auth.php';
}
?>