From 75c8481676b29579272a72fdac72cf73531d0632 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 17 Oct 2022 22:13:08 +0800 Subject: [PATCH] feat(web/user): allow admins to edit user info and read system msgs --- web/app/controllers/faq.php | 4 +- web/app/controllers/problem_solutions.php | 2 +- web/app/controllers/subdomain/blog/blog.php | 2 +- .../subdomain/blog/blog_delete.php | 2 +- web/app/controllers/user_info.php | 4 +- ...hange_user_info.php => user_info_edit.php} | 72 +++++++++++++------ web/app/controllers/user_msg.php | 6 +- web/app/controllers/user_system_msg.php | 20 ++++-- web/app/route.php | 10 +-- web/app/views/blog-nav.php | 6 +- web/app/views/main-nav.php | 6 +- web/app/views/page-header.php | 6 +- web/app/views/user-info.php | 7 +- web/js/uoj.js | 2 +- 14 files changed, 95 insertions(+), 54 deletions(-) rename web/app/controllers/{change_user_info.php => user_info_edit.php} (74%) diff --git a/web/app/controllers/faq.php b/web/app/controllers/faq.php index 09f61b4..83517cf 100644 --- a/web/app/controllers/faq.php +++ b/web/app/controllers/faq.php @@ -84,8 +84,8 @@ 题目相关问题请联系各校区的竞赛教练以及题目管理员。
- 系统相关问题请邮件联系 baoshuo(i@baoshuo.ren) - 和 nekko(1139855151@qq.com)。 + 系统相关问题请邮件联系 baoshuo(i@baoshuo.ren) + 和 nekko(1139855151@qq.com)。
您的博客 {$blog['title']}(ID:{$blog['id']})已经被 {$admin_user_link} 删除,现将博客原文备份发送给您,请查收。
{$blog_content}
EOD;
- sendSystemMsg($blog['poster'], '博客删除通知', $content);
+ sendSystemMsg($blog['poster'], '博客删除通知', $content);
}
deleteBlog($blog['id']);
diff --git a/web/app/controllers/user_info.php b/web/app/controllers/user_info.php
index 5b8ca30..6744dee 100644
--- a/web/app/controllers/user_info.php
+++ b/web/app/controllers/user_info.php
@@ -81,9 +81,9 @@
您正在使用管理特权修改 = $user['username'] ?> 的个人信息。
+