From 63b7768f7889dd02cc32f5e10e4dcef97d14aad7 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 7 Oct 2022 17:29:26 +0800 Subject: [PATCH] feat: force-login and open-register config --- web/app/.default-config.php | 4 +++- web/app/controllers/announcements.php | 4 ++-- web/app/controllers/assignment.php | 4 ++-- web/app/controllers/blog_show.php | 4 ++-- web/app/controllers/blogs.php | 4 ++-- web/app/controllers/change_user_info.php | 4 ---- web/app/controllers/contest_inside.php | 2 +- web/app/controllers/contest_manage.php | 8 ++------ web/app/controllers/contest_members.php | 4 ++-- web/app/controllers/contest_registration.php | 5 ++--- web/app/controllers/contests.php | 2 +- web/app/controllers/download.php | 4 ++-- web/app/controllers/group.php | 4 ++-- web/app/controllers/group_manage.php | 12 ++++-------- web/app/controllers/groups.php | 4 ++-- web/app/controllers/hack.php | 4 ++-- web/app/controllers/hack_list.php | 4 ++-- web/app/controllers/index.php | 4 ++-- web/app/controllers/problem.php | 4 ++-- web/app/controllers/problem_data_manage.php | 12 ++++-------- web/app/controllers/problem_list.php | 6 +++++- web/app/controllers/problem_list_manage.php | 2 +- web/app/controllers/problem_lists.php | 6 +++++- web/app/controllers/problem_managers_manage.php | 6 +----- web/app/controllers/problem_set.php | 4 ++-- web/app/controllers/problem_solutions.php | 6 +++++- web/app/controllers/problem_statement_manage.php | 6 +----- web/app/controllers/problem_statistics.php | 4 ++-- web/app/controllers/ranklist.php | 4 ++-- web/app/controllers/register.php | 2 +- web/app/controllers/subdomain/blog/self_reviews.php | 2 +- web/app/controllers/submission.php | 4 ++-- web/app/controllers/submission_status_details.php | 4 ++-- web/app/controllers/submissions_list.php | 4 ++-- web/app/controllers/super_manage.php | 2 +- web/app/controllers/user_info.php | 4 ++-- web/app/controllers/user_msg.php | 4 ++-- web/app/controllers/user_system_msg.php | 6 +----- web/app/views/blog-nav.php | 2 +- web/app/views/main-nav.php | 2 +- web/app/views/page-header.php | 2 +- web/app/views/sidebar.php | 12 ++++++------ 42 files changed, 88 insertions(+), 103 deletions(-) diff --git a/web/app/.default-config.php b/web/app/.default-config.php index bc50183..808ef92 100644 --- a/web/app/.default-config.php +++ b/web/app/.default-config.php @@ -53,6 +53,8 @@ return [ ] ], 'switch' => [ - 'blog-domain-mode' => 3 + 'blog-domain-mode' => 3, + 'force-login' => true, + 'open-register' => false ] ]; diff --git a/web/app/controllers/announcements.php b/web/app/controllers/announcements.php index 56af406..f07cf9d 100644 --- a/web/app/controllers/announcements.php +++ b/web/app/controllers/announcements.php @@ -1,9 +1,9 @@ - - + +
消息 diff --git a/web/app/views/blog-nav.php b/web/app/views/blog-nav.php index 07e6d42..b0cb795 100644 --- a/web/app/views/blog-nav.php +++ b/web/app/views/blog-nav.php @@ -167,7 +167,7 @@ mb-4" role="navigation"> - + - + - + diff --git a/web/app/views/sidebar.php b/web/app/views/sidebar.php index 13099cd..dc41b6c 100644 --- a/web/app/views/sidebar.php +++ b/web/app/views/sidebar.php @@ -1,5 +1,4 @@ - @@ -30,9 +29,11 @@
- - + + + + - - - + +