1 頁 (共 1 頁)

[問題]請問..關閉除錯模式

發表於 : 2004-01-17 11:26
piaacn
請問..關閉除錯模式 ...要開啟那個 文件修改才行阿..
剛剛 拜讀 '天霜' 所發表的文章 ...看不出個 所以然.有人能幫我解答嗎
謝謝

發表於 : 2004-01-17 11:28
aiken
1.

代碼: 選擇全部

# 
#-----[ 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 儲存並且關閉所有檔案 ]------------------------------------------ 
#
2.
http://phpbbhacks.com/viewhack.php?id=1750

發表於 : 2004-01-17 11:40
piaacn
請問 到這裡http://phpbbhacks.com/viewhack.php?id=1750 所下載的這個文件 要上傳到哪個資料夾裡..上傳 這個 文件 ...以後 只要在後台 操作 除錯模式 嗎 ...能告知到我嗎?
如何使用 這個 功能 萬分感謝

發表於 : 2004-01-17 11:49
aiken

代碼: 選擇全部

############################################### 
##   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=6789
http://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98

發表於 : 2004-01-17 13:25
piaacn
感謝你..以弄好了

發表於 : 2004-02-04 03:25
dna
速度真的有差ㄛ!!

發表於 : 2005-01-23 22:54
Xilinx
aiken 寫:

代碼: 選擇全部

############################################### 
##   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}&nbsp;&nbsp;<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}&nbsp; &nbsp;<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=6789
http://phpbb-tw.net/phpbb/viewtopic.php?t=5664
http://phpbb-tw.net/phpbb/viewforum.php?f=98
後台管理找不到除錯模式開啟或關閉選項
煩請大大告知一下