From 8d8ccb9d5cea5d0bc4d86a8e75d8eb95c1dc8963 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 4 Apr 2006 00:39:53 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9791 --- html/user/forum_post.php | 5 +++++ html/user/forum_reply.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/html/user/forum_post.php b/html/user/forum_post.php index 2494330f22..4c94ec73fa 100644 --- a/html/user/forum_post.php +++ b/html/user/forum_post.php @@ -25,6 +25,11 @@ if (time()-$logged_in_user->last_post<$forum->post_min_interval){ //Tell the user to wait a while before creating any more posts error_page(tr(FORUM_ERR_INTERVAL)); } +if (substr($logged_in_user->authenticator, 0, 1) == 'x'){ + //User has been bad so we are going to take away ability to post for awhile. + error_page("This account has been administratively disabled."); +} + $title = post_str("title", true); $content = post_str("content", true); if ($title && $content) { diff --git a/html/user/forum_reply.php b/html/user/forum_reply.php index a4d6a95fc6..546b3caa34 100644 --- a/html/user/forum_reply.php +++ b/html/user/forum_reply.php @@ -50,6 +50,11 @@ if (time()-$logged_in_user->last_post<$forum->post_min_interval){ This delay has been enforced to protect against abuse of the system."); } +if (substr($logged_in_user->authenticator, 0, 1) == 'x'){ + //User has been bad so we are going to take away ability to post for awhile. + error_page("This account has been administratively disabled."); +} + if ($category->is_helpdesk) { if (!$sort_style) { $sort_style = getSortStyle($logged_in_user,"answer");