From 2e7da82db9fc7b453cb2c8b26110184fb8450e2e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 17 Mar 2022 12:00:03 +0800 Subject: [PATCH] feat(web): force login --- web/app/controllers/add_contest.php | 6 +++++- web/app/controllers/announcements.php | 4 ++++ web/app/controllers/blog_show.php | 4 ++++ web/app/controllers/blogs.php | 4 ++++ web/app/controllers/contest_inside.php | 4 ++++ web/app/controllers/contest_manage.php | 6 +++++- web/app/controllers/contest_members.php | 6 +++++- web/app/controllers/contest_registration.php | 3 ++- web/app/controllers/contests.php | 6 +++++- web/app/controllers/download.php | 7 ++++++- web/app/controllers/faq.php | 7 ++++++- web/app/controllers/hack.php | 6 +++++- web/app/controllers/hack_list.php | 4 ++++ web/app/controllers/map_visualizer.php | 6 +++++- web/app/controllers/paste_post.php | 6 +++--- web/app/controllers/paste_view.php | 6 +++++- web/app/controllers/problem.php | 8 ++++++-- web/app/controllers/problem_data_manage.php | 4 ++++ web/app/controllers/problem_managers_manage.php | 4 ++++ web/app/controllers/problem_set.php | 4 ++++ web/app/controllers/problem_statement_manage.php | 6 +++++- web/app/controllers/problem_statistics.php | 4 ++++ web/app/controllers/ranklist.php | 4 ++++ web/app/controllers/subdomain/blog/aboutme.php | 8 +++++++- web/app/controllers/subdomain/blog/archive.php | 4 ++++ web/app/controllers/subdomain/blog/blog.php | 6 +++++- web/app/controllers/subdomain/blog/blog_delete.php | 4 ++++ web/app/controllers/subdomain/blog/blog_write.php | 6 +++++- web/app/controllers/subdomain/blog/index.php | 4 ++++ web/app/controllers/subdomain/blog/slide.php | 4 ++++ web/app/controllers/subdomain/blog/slide_write.php | 4 ++++ web/app/controllers/submission.php | 4 ++++ web/app/controllers/submission_status_details.php | 2 +- web/app/controllers/submissions_list.php | 4 ++++ web/app/controllers/user_info.php | 4 ++++ web/app/controllers/user_msg.php | 2 +- web/app/controllers/user_system_msg.php | 2 +- web/app/locale/basic/en.php | 1 + web/app/locale/basic/zh-cn.php | 1 + 39 files changed, 157 insertions(+), 22 deletions(-) diff --git a/web/app/controllers/add_contest.php b/web/app/controllers/add_contest.php index 9f98ee4..dc70f3c 100644 --- a/web/app/controllers/add_contest.php +++ b/web/app/controllers/add_contest.php @@ -1,4 +1,8 @@ printHTML(); ?> - \ No newline at end of file + diff --git a/web/app/controllers/announcements.php b/web/app/controllers/announcements.php index 2646e99..057461b 100644 --- a/web/app/controllers/announcements.php +++ b/web/app/controllers/announcements.php @@ -1,4 +1,8 @@ '; diff --git a/web/app/controllers/contest_inside.php b/web/app/controllers/contest_inside.php index 0d488b0..bb9c7b5 100644 --- a/web/app/controllers/contest_inside.php +++ b/web/app/controllers/contest_inside.php @@ -1,5 +1,9 @@ \ No newline at end of file +?> diff --git a/web/app/controllers/faq.php b/web/app/controllers/faq.php index b7a7c1e..6746ce9 100644 --- a/web/app/controllers/faq.php +++ b/web/app/controllers/faq.php @@ -1,7 +1,12 @@
diff --git a/web/app/controllers/hack.php b/web/app/controllers/hack.php index 7c54ab8..290c5bf 100644 --- a/web/app/controllers/hack.php +++ b/web/app/controllers/hack.php @@ -1,6 +1,10 @@ succ_href = '/paste'; $paste_form->runAtServer(); echoUOJPageHeader("Paste!"); $paste_form->printHTML(); -echoUOJPageFooter(); \ No newline at end of file +echoUOJPageFooter(); diff --git a/web/app/controllers/paste_view.php b/web/app/controllers/paste_view.php index 16b8f65..277fc09 100644 --- a/web/app/controllers/paste_view.php +++ b/web/app/controllers/paste_view.php @@ -1,5 +1,9 @@ diff --git a/web/app/controllers/subdomain/blog/aboutme.php b/web/app/controllers/subdomain/blog/aboutme.php index 5310231..57c2aee 100644 --- a/web/app/controllers/subdomain/blog/aboutme.php +++ b/web/app/controllers/subdomain/blog/aboutme.php @@ -1,4 +1,10 @@ - + diff --git a/web/app/controllers/subdomain/blog/archive.php b/web/app/controllers/subdomain/blog/archive.php index 593323c..59dc6ac 100644 --- a/web/app/controllers/subdomain/blog/archive.php +++ b/web/app/controllers/subdomain/blog/archive.php @@ -1,5 +1,9 @@ array('*'), 'table_name' => 'blogs', diff --git a/web/app/controllers/subdomain/blog/slide.php b/web/app/controllers/subdomain/blog/slide.php index f3ad95e..7872d68 100644 --- a/web/app/controllers/subdomain/blog/slide.php +++ b/web/app/controllers/subdomain/blog/slide.php @@ -1,5 +1,9 @@ diff --git a/web/app/controllers/user_msg.php b/web/app/controllers/user_msg.php index 4513cbb..a714bb9 100644 --- a/web/app/controllers/user_msg.php +++ b/web/app/controllers/user_msg.php @@ -1,5 +1,5 @@ 'Login', 'register' => 'Register', 'logout' => 'Logout', + 'need login' => 'You need to login first', 'my profile' => 'My Profile', 'private message' => 'Private Message', 'system message' => 'System Message', diff --git a/web/app/locale/basic/zh-cn.php b/web/app/locale/basic/zh-cn.php index 64f5e0d..7c8ce30 100644 --- a/web/app/locale/basic/zh-cn.php +++ b/web/app/locale/basic/zh-cn.php @@ -4,6 +4,7 @@ return [ 'login' => '登录', 'register' => '注册', 'logout' => '登出', + 'need login' => '您需要登录后才能继续', 'my profile' => '个人信息', 'private message' => '私信', 'system message' => '系统消息',