基本上這個是跟之前我的另外一個帳號 [jwxie] 發佈的Troll Mod是一樣的,不過目前已經被官方認可,而且更新板本也會經常發佈,所以在這裡重新發佈一次。
(PS: 目前€已經從0.9.1升級到1.0.3)
(如果竹貓的管理層可以將非官方那一篇刪走更好.,..謝謝)
外掛名稱: [外掛]封鎖非法會員&安全風險 (MOD Troll +Secuity)1.0.3
(紅字是官方推出後強調的安全風險)
外掛描述:
此外掛包括主程式 [MOD TROLL] 和附加功能 [Ban_Users_Page]
請你務必看完我整篇外掛指導後再下載和給矛安裝。
註:
主要功能RESTRICTIONS
## This MOD is not PHP 4.1.0 compatible. You MUST have at least version PHP 4.2.0
此外掛只能用在 MYSQL板本是 4.2.0或者更高級的主機上,如果你的主機商目前只是用4.1.0的話,你就不應該裝這個外掛啦!
管理員可以從後台把指定的IP或者會員,訪客指定為"Troll"
所謂的Troll是指 「非法」 / 「有惡意」 。
以前一直有很多會員投訴後台的ban IP並不能把某些惡人杜絕
這個外掛目前主要的FUNCTION就是加強後台的能力, 還有建立一個新的COOKIE SYSTEM去改造整個 登入系統 、 瀏覽許可、發文回復等多方面。
當被指定成 troll, 就算此會員造出來的新 IP並不能改變電腦裡的cookie
(這只能防一些電腦技術比較低的人)
由COOKIE的識別、或者從IP的資料取讀之間,這個外掛的功能將會判斷出此人可能已經被指定成為 Troll.
同時此外掛也由全新的COOKIE識別系統中,以COOKIE判斷出新註冊之會員是否曾經被指定為Troll。如果舊帳號被看破是 Troll, 此新帳號也會同樣被記錄在資料庫裡。
附加功能- BAN USER PAGE 1.0.0 描述
(下載外掛包後解壓後→ 打開contrib, 裡面就有這個安裝說明書了!!!!)
此附加功能 [ADD-ON]主要是簡化和整理MOD TROLL可以把功能插入 系統控制台裡的 「封鎖會員」 控制台裡。
這一來主要是加強和方便各位系統管理員,也讓MOD Troll (主程式) 可以在這個控制台裡跟 原本的phpBB已經有的封鎖會員功能一樣, 可以同時封鎖 / 解鎖 多位帳號。
個人建議你必需要裝這個!記住,這個附加功能的中文化是在本頁的最底裡,我已經標明了!
外掛下載及原文參考
新板本→ 建議以後有關此外掛的都去官方推薦認可外掛區裡尋找支援
http://www.phpbb.com/phpBB/viewtopic.ph ... 43#2123543
原文參考
舊板本 BETA型號: (不用再去了....)
http://www.phpbb.com/phpBB/viewtopic.php?t=338347
外掛檔頭
代碼: 選擇全部
################################################################################
## MOD Title: MOD Troll
## MOD Author: Merlin Sythove < Merlin@silvercircle.org > (N/A) N/A
## MOD Author: Kalipo < N/A > (N/A) N/A
## MOD Description: This MOD will prevent users designated as Trolls from posting,
## Private Messaging, Emailing, and generally make their life on
## the board miserable.
## MOD Version: 1.0.3
##
## Installation Level: (Easy)
## Installation Time: 10 Minutes
## Files To Edit:
## login.php,
## privmsg.php,
## admin/admin_users.php,
## admin/index.php,
## includes/functions_post.php,
## includes/page_header.php,
## includes/sessions.php,
## includes/usercp_email.php,
## language/lang_english/lang_admin.php,
## language/lang_english/lang_main.php,
## templates/subSilver/admin/index_body.tpl,
## templates/subSilver/admin/user_edit_body.tpl
## Included Files:
## includes/miserable_user.php
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
################################################################################
## Author Notes:
##
## RESTRICTIONS
## This MOD is not PHP 4.1.0 compatible. You MUST have at least version PHP 4.2.0
##
## MOD DESCRIPTION
## This is a combination of Miserable User Mod and extra features plus a
## cookie system, basically to make life miserable for trolls.
##
## What happens (adaptation of the Miserable User Mod):
## In all cases everything is really slowed down. I've chosen between 5 and 30
## seconds but that is already infuriating. You can easily change that time.
##
## 50% of the time the forum software "messes up", by sending them mysteriously
## to the index page, giving a blank screen, "hanging" the computer or
## giving strange error messages.
##
## The other 50% of the time they can do what they want (still delayed of course)
##
## The Troll Mod adds extra trouble within the 50% of pages that do work:
## Login: This only succeeds half the time, the other half of the time error
## messages are shown (i.e. only 1 in 4 logins succeed)
## Posting, PM and Email: This gives error messages half the time, the other
## times it only appears to succeed but in fact nothing is posted or sent.
## (i.e. only 25% of the attempts seem to work)
##
## Cookie system
## A troll who logs in will get a cookie.
## If there is a cookie, that person is a troll, whether that person is logged
## in or not.
## If the cookie no longer matches the database (i.e. the admin has re-set the
## troll flag) the cookie is removed.
##
## * A troll who is just browsing as guest, is still treated as a troll
## * A troll who comes to your house and uses your computer to log in, will set
## the cookie, so the next time it will look like he messed up your computer
## * A troll who has made a new account will still be seen as troll based on
## the cookie of the old account
## * The ADMIN can un-set the troll flag to remove cookies when the ex-troll
## (or misfortunate friend) visits the board. They do not need to log in
## for the cookie to be removed, a visit is enough.
##
## The only way to get round the system, is to remove cookies, and make a new account
## and behave (to prevent the ADMIN from setting the new account to troll).
##
## Usage
## Users can be marked as Trolls via the User Management in the ACP. Further,
## Trolls are identified on the ACP Index (names and total number) below the Users
## Online table.
##
## Credits
## * Dr. Doom & TERMINATRIX - original Miserable User script.
## * Paddic - Ban Control page Add-on.
## * Civphp - borrowed code for the ACP display.
## * JKeats - borrowed code for the ACP controls.
##
##############################################################
## MOD History:
##
## 2006-05-06 - Version 1.0.3
## - Fixed a possible security issue
## - Resubmitted
## 2006-04-19 - Version 1.0.2
## - Removed browser crash code from miserable_user.php (since it generated
## virus warnings)
## - Removed the browser crash reference in the install file
## - Resubmitted
## 2006-04-17 - Version 1.0.1
## - Fixed an in-line error in the install file
## - Replaced function
## - Resubmitted
## 2006-04-09 - Version 1.0.0
## - Addition of ACP controls/visibility
## - Added Ban Control page Add-on in /contrib/
## - Cleaned up Install file
## - Initial submission
## 2005-11-06 - Version 0.9.2
## - Further changes, addition of Miserable User Mod, cookies
## 2005-11-05 - Version 0.9.0
## - BETA release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
外掛安裝步驟
1. 新增 + 執行SQL語法
#
#-----[ SQL ]------------------------------------------
#
# -- Add a user field in the database
代碼: 選擇全部
ALTER TABLE `phpbb_users` ADD `user_troll` TINYINT;
3. 修改檔案 [EDIT]#
#-----[ COPY ]----------------------------------------------------------
#
copy includes/miserable_user.php to includes/miserable_user.php
將此檔案上傳至 includes/裡面
正體中文語系化- (主程式 MOD Troll)
lang_admin.php
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Troll MOD
$lang['User_troll'] = '設定非法身份;
$lang['Troll_info'] = '詳情';
$lang['Numberof_Trolls'] = '非法會員總數';
$lang['Troll_users'] = '會員名稱';
2. lang_main.php
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//MOD Troll
$lang['Troll_error_login_1'] = '很抱歉!帳號名稱並不正確或者已經凍結了!';
$lang['Troll_error_login_2'] = '很抱歉!目前線上人數超過限制,請稍後再登入!';
$lang['Troll_error_login_3'] = '很抱歉!你輸入的密碼並不正確,請注意英文字母的大小楷!';
$lang['Troll_error_posting_1'] = '很抱歉!請不要惡意式連續發文,請稍後一會再發表文章!';
$lang['Troll_error_posting_2'] = '很抱歉!你發表文章數量已經超出限制,請稍後再發表!';
$lang['Troll_error_posting_3'] = '很抱歉!你的文章裡包含一些不雅或者違規的字眼,請你重新編輯內文!';
$lang['Troll_error_privmsg_1'] = '很抱歉!這個會員名稱並不存在!';
$lang['Troll_error_privmsg_2'] = '很抱歉!這個會員的收件夾限制已經達到上限!';
$lang['Troll_error_privmsg_3'] = '很抱歉!你的私人訊息裡包含一些不雅或者違規的字眼,請你重新寄寫一封!';
$lang['Troll_error_email_1'] = '很抱歉!這個會員名稱並不存在!';
$lang['Troll_error_email_2'] = '很抱歉!這個會員的郵件收件夾限制已經達到上限!';
$lang['Troll_error_email_3'] = '很抱歉!你的郵件訊息裡包含一些不雅或者違規的字眼,請你重新寄寫一封!';
附加功能- Ban User Page 1.0.0MOD
代碼: 選擇全部
################################################################################
## MOD Title: MOD Troll in Ban Users Page
## MOD Author: Paddic < Addic@hamppu.net > (N/A) N/A
## MOD Description: An addon to the Troll MOD that adds the functionality
## of the Troll MOD to the Ban Control page
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit:
## admin/admin_user_ban.php,
## language/lang_english/lang_admin.php,
## templates/subSilver/admin/user_ban_body.tpl
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################################################
## Author Notes:
##
## This adds the Troll MOD functionality to the Ban Control page where User's
## names can be looked up and added to the list. It also adds the
## capability to "untroll" multiple Users at the same time.
##
##############################################################
## MOD History:
##
## 2006-04-09 - Version 1.0.0
## - Added to the Troll MOD package.
## - Initial submission
##
##############################################################
此功能必需要先完整地、順利地安裝好 MOD Troll
lang_admin.php
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Troll_users'] = '會員名稱';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['User_troll_explain'] = '一旦帳號被標明非法狀態,此帳號將不會從你的論壇裡失去應有權力。.';
$lang['User_untroll'] = '擱置非法狀態';
$lang['User_untroll_explain'] = '您可以使用滑鼠及按鍵組合 (例如: Ctrl 或 Shift), 一次解除多個封鎖的 帳號 ';
$lang['No_trolls'] = '目前沒有非法會員';