請問..關閉除錯模式 ...要開啟那個 文件修改才行阿..
剛剛 拜讀 '天霜' 所發表的文章 ...看不出個 所以然.有人能幫我解答嗎
謝謝
[問題]請問..關閉除錯模式
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
1.
2.
http://phpbbhacks.com/viewhack.php?id=1750
代碼: 選擇全部
#
#-----[ OPEN 打開 ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND 尋找 ]------------------------------------------
#
// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 0); // Debugging off
#
#-----[ SAVE/CLOSE ALL FILES 儲存並且關閉所有檔案 ]------------------------------------------
#http://phpbbhacks.com/viewhack.php?id=1750
代碼: 選擇全部
###############################################
## 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');
#
#Endhttp://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98
後台管理找不到除錯模式開啟或關閉選項aiken 寫:http://phpbb-tw.net/phpbb/viewtopic.php?t=6789代碼: 選擇全部
############################################### ## 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
http://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98
煩請大大告知一下


