我外掛虛擬貨幣後
發現要發新文章或回覆文章
就出現\r
Parse error: parse error in /usr/local/www/web_bl/fkstofam/young/posting.php on line 212
請問這是什麼問題嗎?
我用 phpBB 2.0.11
CASH MOD 2.2.2
[問題]天霜大大 CASH MOD 2.2.2的留言問題(已解決,感恩)
版主: 版主管理群
[問題]天霜大大 CASH MOD 2.2.2的留言問題(已解決,感恩)
最後由 fkstofam 於 2005-01-26 11:21 編輯,總共編輯了 2 次。
$is_auth = array();天霜 寫:請列出\r
posting.php 第 212 行上下十行
switch( $mode )
{
case 'newtopic':
if ( $topic_type == POST_ANNOUNCE )
{
$is_auth_type = 'auth_announce';
}
else if ( $topic_type == POST_STICKY )
{
$is_auth_type = 'auth_sticky';
}
else
{
$is_auth_type = 'auth_post';
}
break;
case 'reply':
case 'quote':
$is_auth_type = 'auth_reply';
break;
case 'editpost':
$is_auth_type = 'auth_edit';
break;
case 'delete':
case 'poll_delete':
$is_auth_type = 'auth_delete';
break;
case 'vote':
$is_auth_type = 'auth_vote';
break;
case 'topicreview':
$is_auth_type = 'auth_read';
break;
default:
message_die(GENERAL_MESSAGE, $lang['No_post_mode']);
break;
}
//
// Here we do various lookups to find topic_id, forum_id, post_id etc.
// Doing it here prevents spoofing (eg. faking forum_id, topic_id or
post_id
//
$error_msg = ''; (posting.php 第 212 行)
$post_data = array();
switch ( $mode )
{
case 'newtopic':
if ( empty($forum_id) )
{
message_die(GENERAL_MESSAGE,
$lang['Forum_not_exist']);
}
$sql = "SELECT *
FROM " . FORUMS_TABLE . "
WHERE forum_id = $forum_id";
break;
case 'reply': \r
case 'vote':
if ( empty( $topic_id) )
{
message_die(GENERAL_MESSAGE,
$lang['No_topic_id']);
}
$sql = "SELECT f.*, t.topic_status, t.topic_title , t.topic_poster
FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE .
" t
WHERE t.topic_id = $topic_id
AND f.forum_id = t.forum_id";
break;
case 'quote':
case 'editpost':
case 'delete':
case 'poll_delete':
if ( empty($post_id) )
{
message_die(GENERAL_MESSAGE,
代碼: 選擇全部
//
// Here we do various lookups to find topic_id, forum_id, post_id etc.
// Doing it here prevents spoofing (eg. faking forum_id, topic_id or
post_id
// 刪掉post_id 應該就沒問題了
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...
感謝天霜大大
上面問題已解決\r
但又發生新聞題
就是在引言回覆時
會見到上方有錯誤訊息\r
Warning: Compilation failed: unmatched parentheses at offset 10 in /usr/local/www/web_bl/fkstofam/young/posting.php on line 1162
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 475
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 477
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 478
不知該如何解決
上面問題已解決\r
但又發生新聞題
就是在引言回覆時
會見到上方有錯誤訊息\r
Warning: Compilation failed: unmatched parentheses at offset 10 in /usr/local/www/web_bl/fkstofam/young/posting.php on line 1162
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 475
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 477
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/web_bl/fkstofam/young/posting.php:1162) in /usr/local/www/web_bl/fkstofam/young/includes/page_header.php on line 478
不知該如何解決
$post_info['user_sig'] != '' ) ? TRUE : 0;天霜 寫:這時你應該再列出posting.php:1162上下十行
$user_sig = $post_info['user_sig'];
$html_on = ( $post_info['enable_html'] ) ? true
: false;
$bbcode_on = ( $post_info['enable_bbcode'] ) ?
true : false;
$smilies_on = ( $post_info['enable_smilies'] )
? true : false;
}
else
{
$attach_sig = ( $userdata['user_attachsig'] ) ?
TRUE : 0;
$user_sig = $userdata['user_sig'];
}
if ( $post_info['bbcode_uid'] != '' )
{
$message = preg_replace('/\[a-z0-9]?)' .
$post_info['bbcode_uid'] . '/s', '', $message);(這是第1162行)
}
$message = str_replace('<', '<', $message);
$message = str_replace('>', '>', $message);
$message = str_replace('<br />', "
", $message);
if ( $mode == 'quote' )
{
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replace_word);
$msg_date =
create_date($board_config['default_dateformat'], $postrow['post_time'],
$board_config['board_timezone']);
// Use trim to get rid of spaces placed there
$quote_username = (
trim($post_info['post_username']) != '' ) ? $post_info['post_username']
: $post_info['username'];
代碼: 選擇全部
$post_info['user_sig'] != '' ) ? TRUE : 0;
$user_sig = $post_info['user_sig'];
$html_on = ( $post_info['enable_html'] ) ? true
: false;
$bbcode_on = ( $post_info['enable_bbcode'] ) ?
true : false;
$smilies_on = ( $post_info['enable_smilies'] )
? true : false;
}
else
{
$attach_sig = ( $userdata['user_attachsig'] ) ?
TRUE : 0;
$user_sig = $userdata['user_sig'];
}
if ( $post_info['bbcode_uid'] != '' )
{
$message = preg_replace('/\[a-z0-9]?)' .
$post_info['bbcode_uid'] . '/s', '', $message);(這是第1162行)
} 你比對phpBB2原始版的posting.php那幾行..
把被斷行的都補好看看
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...

