1 頁 (共 1 頁)

[問題]有關管理人不受簽名檔限制

發表於 : 2003-12-29 23:17
antony chan
未知能否同時加入版主呢?

這是原code:

代碼: 選擇全部

<?php
############################################### 
##   Hack Title:   No signature length limit for admins. 
##   Hack Version:   1.0.0 
##   Author:      Antony Bailey
##   Description:   Removes the signature length limit for admins.
##   Compatibility:   2.0.0 - 2.0.6
## 
##   Installation Level: Easy 
##   Installation Time: 1 minute
##   Files To Edit: 1 
##      usercp_register.php 
## 
##   History: 
##      1.0.0:    Release.
## 
##   Author Notes: 
##      What? I wanted to do this for me as I roxor!
## 
##   Support:      http://www.phpbbhacks.com/forums 
\n##   Copyright:      ?003 No signature length limit for admins 1.0.0 - 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 ]------------------------------------------ 
# 
includes/usercp_register.php
# 
#-----[ FIND ]------------------------------------------ 
# 
	if ( $signature != '' )
	{
		if ( strlen(preg_replace('#(<)([\/]?.*?)(>)#is', "", preg_replace('#(\[)([\/]?.*?)(\])#is', "",$signature))) > $board_config['max_sig_chars'] )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
		}
# 
#-----[ REPLACE, WITH ]------------------------------------------ 
# 
	if ( $signature != '' )
	{
	if ($userdata['user_level'] != ADMIN )
	{
		if ( strlen(preg_replace('#(<)([\/]?.*?)(>)#is', "", preg_replace('#(\[)([\/]?.*?)(\])#is', "",$signature))) > $board_config['max_sig_chars'] )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
		}
	}
# 
#-----[ SAVE & CLOSE ALL FILES ]-------------------------- 
# 
#End 

?>

發表於 : 2003-12-29 23:33
aiken

發表於 : 2003-12-30 01:53
antony chan
對不起啊....
已經補回有關的原mods了..>_<!