[問題]請問哪裏有下載關閉除錯DEBUG模式的MOD?
版主: 版主管理群
[問題]請問哪裏有下載關閉除錯DEBUG模式的MOD?
我指在管理後台裏控制關閉DEBUG的MOD,搜索了一下phpbbhacks好象已經沒有下載了,如果哪位前輩還保留著能否貼出來共享
試試看吧!剛從硬碟內挖出來的!我自己倒是沒裝過~"~
Admin DEBUG activation 0.0.1
Admin DEBUG activation 0.0.1
代碼: 選擇全部
###############################################
## Hack Title: Admin DEBUG activation.
## Hack Version: 0.0.1
## Author: Antony Bailey
## Description: Allows the admin to enable or disable DEBUG mode from within the admin general configuration.
## Compatibility: 2.0.0 - 2.0.4
##
## Installation Level: Easy
## Installation Time: 5 minutes.
## Files To Edit: 3
## admin_board.php
## functions.php
## lang_admin.php
## board_config_body.tpl
##
## History:
## 0.0.1: Initial release.
##
## Author Notes:
## Should work perfectly. *fingers crossed*
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: ?003 Admin DEBUG activation 0.0.1 - Antony Bailey
##
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$debug_value_yes = ( $new['debug_value'] ) ? "checked=\"checked\"" : "";
$debug_value_no = ( !$new['debug_value'] ) ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_DEBUG_VALUE" => $lang['Debug_value'],
"L_DEBUG_VALUE_EXPLAIN" => $lang['Debug_value_explain'],
#
#-----[ FIND ]------------------------------------------
#
"S_DISABLE_BOARD_NO" => $disable_board_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"S_DEBUG_VALUE_ENABLED" => $debug_value_yes,
"S_DEBUG_VALUE_DISABLED" => $debug_value_no,
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
#
#-----[ REPLACE, WITH ]------------------------------------------
#
if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
#
#-----[ FIND ]------------------------------------------
#
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( ($board_config['debug_value'] == '1' || DEBUG) && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Debug_value'] = 'Debug Value';
$lang['Debug_value_explain'] = 'From here you may turn DEBUG mode on and off on your forums.';
#
#-----[ OPEN ]------------------------------------------
#
templates/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_DEBUG_VALUE}<br /><span class="gensmall">{L_DEBUG_VALUE_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="debug_value" value="0" {S_DEBUG_VALUE_DISABLED} />{L_DISABLED} <input type="radio" name="debug_value" value="1" {S_DEBUG_VALUE_ENABLED} />{L_ENABLED}</td>
</tr>
#
#-----[ SAVE & CLOSE ALL FILES ]------------------------------------------
#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('debug_value','1');
#
#End
