#-----[ OPEN 打開 ]------------------------------------------------
#
posting.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#618 列
$poll_options = array();
#
#-----[ BEFORE ADD 之前, 加上 ]------------------------------------
# 預覽標題、預覽後欄框文章內容及標題、投票議題
#
$subject = ereg_replace("&","&",$subject);
$message = ereg_replace("&","&",$message);
$poll_title = ereg_replace("&","&",$poll_title);
#
#-----[ FIND 尋找 ]------------------------------------------------
#633
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 預覽之後的投票選項 (option)、增加選項之後的舊選項、更新選項
#
$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text))));
#
#-----[ FIND 尋找 ]------------------------------------------------
#640
$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_post.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#152
$subject = htmlspecialchars(trim($subject));
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 發表之後的主題標題
#
$subject = ereg_replace("&","&",htmlspecialchars(trim($subject)));
#
#-----[ FIND 尋找 ]------------------------------------------------
#179
$poll_title = htmlspecialchars(trim($poll_title));
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 發表之後的投票議題
#
$poll_title = ereg_replace("&","&",htmlspecialchars(trim($poll_title)));
#
#-----[ FIND 尋找 ]------------------------------------------------
#331
$option_text = str_replace("\'", "''", htmlspecialchars($option_text));
#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
# 發表之後的投票選項 (2.0.4 新產生的問題)
#
$option_text = str_replace("&","&", $option_text);
#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes\usercp_register.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#108
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 使用者名稱 (2.0.4 新產生的問題)
#
$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param])));
#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes\bbcode.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#
$curr_pos = strpos($text, "[", $curr_pos);
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 引言修正
# http://phpbb-tw.net/phpbb/viewtopic.php?p=102297#102297
#
if ( ord(substr($text, $curr_pos, 1)) > 0xa0 )
{
$curr_pos += 2;
continue;
}
else if ( substr($text, $curr_pos, 1) != '[' )
{
$curr_pos++;
continue;
}
#
#-----[ FIND 尋找 ]------------------------------------------------
#483
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
$code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}');
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
代碼: 選擇全部
標籤內的某些中文字變成 ?#91; ?#93; ?#123; ?#125; 問題
#
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\(#', '#\)#');
$code_entities_replace = array('<', '>', '"', ':', '(', ')');
#
#-----[ OPEN 打開 ]------------------------------------------------
#
admin\admin_users.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#219
$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 尋找 ]------------------------------------------------
#285
$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 尋找 ]------------------------------------------------
#708
$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 替換 ]----------------------------------------
#719
$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 尋找 ]------------------------------------------------
#741
$location = htmlspecialchars($this_userdata['user_from']);
$occupation = htmlspecialchars($this_userdata['user_occ']);
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
# 從管理控制台編輯會員資料時,來自、 職業、 興趣三個欄位的多國文字顯示問題
#
$location = ereg_replace("&","&",htmlspecialchars($this_userdata['user_from']));
$occupation = ereg_replace("&","&",htmlspecialchars($this_userdata['user_occ']));
$interests = ereg_replace("&","&",htmlspecialchars($this_userdata['user_interests']));
#
#-----[ OPEN 打開 ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#
$username = htmlspecialchars(rtrim(trim($username), "\\\"));
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#
$username = ereg_replace("&","&",htmlspecialchars(trim(trim($username), "\\\")));
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束

