建議不要用php5
請用回php4,
但如果一定要用php5,
請作以下修改:
打開
代碼:
posting.php
找到
代碼: 選擇全部
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
替換成
代碼: 選擇全部
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
$temp1=str_replace("\'", "''", $username);
$temp2= str_replace("\'", "''", $subject);
$temp3=str_replace("\'", "''", $message);
$temp4= str_replace("\'", "''", $poll_title);
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, $temp1, $temp2, $temp3, $temp4, $poll_options, $poll_length);
打開
includes/functions_search.php
尋找
代碼: 選擇全部
$search_raw_words = array();
$search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array));
$search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array));
替換成:
代碼: 選擇全部
if (!strstr($multibyte_charset, $lang['ENCODING']))
{
$temp1 = stripslashes($search_keywords);
$temp2 = clean_words('search', $temp1, $stopword_array, $synonym_array); $split_search = split_words($temp2, 'search');
}
else
{
$split_search = split(' ', $search_keywords);
}
存檔收工!
資料由問題狂提供!!!