多國語言修正

主題已鎖定
頭像
cloudsnow30
.※.稜鏡之森の守護使者.※.
.※.稜鏡之森の守護使者.※.
文章: 145
註冊時間: 週六 2006-03-04 03:29
個人狀態: 冬眠喵型態
性別:
來自: 雲上天國
擁有感謝: 2 次
星座:
聯繫:

多國語言修正

文章 cloudsnow30 »

Multi-Language Fix 2.0.10

代碼: 選擇全部

############################################################## 
## MOD Title: Multi-Language Fix 
## MOD Author: Scorpion <formosa@ms20.url.com.tw>  http://ibf.myweb.hinet.net/ 
##     Update to 2.0.10: WeiChou 
##     Conflation: William Leung <admin@ke5475.net>  http://ke5475.net 
## MOD Description: Fix the display problems on multi-language 
## MOD Version: 2.0.10 
## 
## Installation Level: Easy 
## Installation Time: 10 Minutes 
## Files To Edit: 7 
##                login.php 
##                posting.php 
##                includes/functions.php 
##                includes/functions_post.php 
##                includes/usercp_register.php 
##                includes/bbcode.php 
##                admin/admin_users.php 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ OPEN ]------------------------------------------ 
# 
login.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$username = isset($HTTP_POST_VARS['username']) ? trim(htmlspecialchars($HTTP_POST_VARS['username'])) : ''; 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$username = isset($HTTP_POST_VARS['username']) ? str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS['username']))) : ''; 

# 
#-----[ OPEN ]------------------------------------------ 
# 
posting.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
   $poll_options = array(); 
   if ( !empty($HTTP_POST_VARS['poll_option_text']) ) 

# 
#-----[ BEFORE, ADD ]----------------------------------- 
# 
   $subject = ereg_replace("&","&",$subject); 
   $message = ereg_replace("&","&",$message); 
   $poll_title = ereg_replace("&","&",$poll_title); 

# 
#-----[ FIND ]------------------------------------------ 
# 
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text))); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text)))); 

# 
#-----[ FIND ]------------------------------------------ 
# 
$poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$poll_options[] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text'])))); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$user = trim(htmlspecialchars($user)); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$user = str_replace("&","&",trim(htmlspecialchars($user))); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions_post.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$subject = htmlspecialchars(trim($subject)); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$subject = ereg_replace("&","&",htmlspecialchars(trim($subject))); 

# 
#-----[ FIND ]------------------------------------------ 
# 
$poll_title = htmlspecialchars(trim($poll_title)); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$poll_title = ereg_replace("&","&",htmlspecialchars(trim($poll_title))); 

# 
#-----[ FIND ]------------------------------------------ 
# 
$option_text = str_replace("\'", "''", htmlspecialchars($option_text)); 

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
$option_text = str_replace("&","&", $option_text); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes\usercp_register.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param])); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param]))); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
                        $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#'); 
                        $code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}'); 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
                        $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\(#', '#\)#'); 
                        $code_entities_replace = array('<', '>', '"', ':', '(', ')'); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_users.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : ''; 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$username = ( !empty($HTTP_POST_VARS['username']) ) ? ereg_replace("&","&",trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username'])))) : ''; 

# 
#-----[ FIND ]------------------------------------------ 
# 
         $location = htmlspecialchars(stripslashes($location)); 
         $occupation = htmlspecialchars(stripslashes($occupation)); 
         $interests = htmlspecialchars(stripslashes($interests)); 
         $signature = htmlspecialchars(stripslashes($signature)); 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
         $location = ereg_replace("&","&",htmlspecialchars(stripslashes($location))); 
         $occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation))); 
         $interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests))); 
         $signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature))); 

# 
#-----[ FIND ]------------------------------------------ 
# 
$username = htmlspecialchars(stripslashes($username)); 

# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
$username = ereg_replace("&","&",htmlspecialchars(stripslashes($username))); 

# 
#-----[ FIND ]------------------------------------------ 
# 
         $location = htmlspecialchars(stripslashes($location)); 
         $occupation = htmlspecialchars(stripslashes($occupation)); 
         $interests = htmlspecialchars(stripslashes($interests)); 
         $signature = htmlspecialchars(stripslashes($signature)); 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
         $location = ereg_replace("&","&",htmlspecialchars(stripslashes($location))); 
         $occupation = ereg_replace("&","&",htmlspecialchars(stripslashes($occupation))); 
         $interests = ereg_replace("&","&",htmlspecialchars(stripslashes($interests))); 
         $signature = ereg_replace("&","&",htmlspecialchars(stripslashes($signature))); 

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------- 
# EoM 
2.0.15 多國語系修正
Sakura Moon ~ 櫻井璃月 ~
論壇系統管理員-Cloud Snow 晴雪
主題已鎖定

回到「PHPBB2-外掛列表」