Making phpBB2 working with PHP5决策phpbb2工作与php5

Officially, phpBB 2 (as of this writing, up to version 2.0.17) is not supporting PHP 5.正式, phpbb 2 (截止本文件的编写,直至版本2.0.17 )是不支持PHP 5中。 If you install PHP 5, and use it to run phpBB, you will encounter the following symptoms and errors:如果您安装了PHP 5中,并用它来运行phpbb ,您会遇到下列症状和错误:

  • You cannot post message - When you want to post new topic or reply to a topic, after writing your message, when you click “Submit”, a blank page or screen or error message is shown with address bar showing posting.php, instead of posting confirmation message.你不能发帖子-当您要张贴新话题或答复的一个话题后,编写您的信息,当您点击“提交” ,一个空白页或屏幕或错误讯息显示与地址栏中显示p osting.php,而不是发布确认邮件。
  • You unable to search - When you want to search by clicking oh “Search”, no search results are been returned, or a black page or screen, or error message is shown.你无法搜索-当你要搜索的按一下哦“搜索” ,没有搜索结果被退回,或一个黑色的网页或屏幕上,或错误讯息显示。

To enable PHP 5 to work properly with phpBB, some changes to the phpBB source code needs to be done.使PHP 5中工作,妥善phpbb一些变化,向phpbb的源代码需要做的事情。 Just follow steps as below:只需按照以下的步骤如下:

OPEN打开
admin/admin_ug_auth.php政府当局/ admin_ug_auth.php

FIND查找
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) )如果美元( forum_access [元一] [元auth_field ] == auth_acl & & isset ( $ change_acl_list [ $ forum_id ] [元auth_field ] ) )

REPLACE WITH替换
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id]) )如果美元( forum_access [元一] [元auth_field ] == auth_acl & & isset ( $ change_acl_list [ $ forum_id ] ) )

FIND查找
( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [元auth_field ] ) & & !空美元( change_acl_list [ $ forum_id ] [元auth_field ] ) ) ) | |

REPLACE WITH替换
( !isset($auth_access[$forum_id][$auth_field]) && empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [元auth_field ] ) & &空美元( change_acl_list [ $ forum_id ] [元auth_field ] ) ) ) | |

Finally, some changes are needed so that functions that get called with functions as parameters are not called ‘by reference’ with functions:最后,一些有需要改变,使职能得到所谓的职能与作为参数没有所谓的'参考'与职能:

OPEN打开
includes/functions_post.php包括/ functions_post.php

FIND查找
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式,与post_data元,与美元的讯息,与元元,元& forum_id , &元topic_id , &元post_id , &元poll_id , &元topic_type , &元bbcode_on , &元html_on , &元smilies_on , & $ attach_sig , &元bbcode_uid , &元post_username , &元post_subject , &元post_message , &元poll_title , &元poll_options , &元poll_length )

REPLACE WITH替换
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式,与post_data元,与美元的讯息,与元元,元& forum_id , &元topic_id , &元post_id , &元poll_id , &元topic_type , &元bbcode_on , &元html_on , &元smilies_on , & $ attach_sig , &元bbcode_uid元, post_username元, post_subject元, post_message元, poll_title , &元poll_options , &元poll_length )

OPEN打开
includes/functions_search.php包括/ functions_search.php

FIND查找
function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式,与美元进入, & $ stopword_list , &元synonym_list )

REPLACE WITH替换
function clean_words($mode, $entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式,美元入境, & $ stopword_list , &元synonym_list )

FIND查找
function split_words(&$entry, $mode = ‘post’)功能split_words ( &元,进入元,模式= '后' )

REPLACE WITH替换
function split_words($entry, $mode = ‘post’)功能split_words ( $入境元,模式= '后' )

For the above, the changes involved are some parameters have been stripped off the “&” sign.对于上述情况,更改所涉及的一些参数已经剥夺了小康“ & ”的迹象。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



7 Responses to “Making phpBB2 working with PHP5” 7回应“ phpbb2工作与php5 ”

  1. Alan梁家杰
    July 25th, 2006 03:15 2006年7月25日03:15
    1

    It doesn’t work.它是行不通的。 Shame.羞耻。

  2. KenMarshall kenmarshall
    April 17th, 2007 16:03 2007年4月17日16时03分
    2

    I think, that is interesting for all.我认为,有趣的是,为所有。

  3. Test测试
    August 31st, 2007 07:26 2007年8月31日7时26分
    3

    Hello

    G’night g'night

  4. acghjwolhqa
    September 28th, 2007 02:40 2007年9月28日2时40分
    4

    Amerikanische Firma „ACG Logistics“ sucht nach Mitarbeiter in Europa fuer die Arbeit im Logistikbereich. amerikanische事务所“ acg物流” sucht nach图书馆管理员在欧罗巴fuer模具劳动即时通讯logistikbereich 。 Interessanter Job mit guter Verdienstmoeglichkeit. interessanter就业麻省理工学院guter verdienstmoeglichkeit 。

    [b]Schicken Sie bitte Ihre Bewerbung an [ B ]中schicken女士bitte ihre bewerbung 1 info@acglogistics.biz [/b] [ / b ]上

  5. free poker download free poker免费扑克免费下载扑克
    November 15th, 2007 22:28 2007年11月15日22时28分
    5

    download poker gratuito… 下载扑克gratuito …

    Ogni software Poker casino poker… ogni软件扑克博彩赌场扑克…

  6. rk由于缺少系统训练
    December 3rd, 2007 21:28 2007年12月3日21时28分
    6

    try this for working phpbb2 with php5试试这个工作phpbb2与php5
    extension.inc
    $HTTP_GET_VARS=$_GET;元http_get_vars = $ _get ;
    $HTTP_POST_VARS=$_POST;元http_post_vars =全局变量$ _POST ;
    $HTTP_COOKIE_VARS=$_COOKIE;元http_cookie_vars = $ _cookie ;
    that’s all… works now fine with php5这一切…工程,现在的罚款与php5

  7. spycrasher
    July 15th, 2008 19:18 2008年7月15日19时18分
    7

    Hi everybody每个人都喜

    Just trapped on a little tool to slice website images.只是被困在一个小的工具,切片网站的图片。
    Quick in preparing ready html from simple single-image site design.快速在准备就绪的HTML ,从简单的单一的形象,网站设计。
    Program is rather crappy and cheap (especially comparing to similar function in PhotoShop).程序是相当crappy和廉价的(尤其是比较类似的功能在Photoshop ) 。
    But there is a trick!但有一个把戏! Just look what books come as a bonus:单看什么书来作为奖金:

    Search Engine Optimization: An Hour a Day搜索引擎优化: 1小时1天
    Web Design in a Nutshell, 3rd Edition网页设计在一个总括而言,第3版
    Webmaster in a Nutshell, 3rd Edition网站管理员在总括而言,第3版
    etc…等…

    I wonder how $270 priced books can be sold for just 20 dollars…我不知道如何定价270元的书籍可以出售,仅20美元…
    Anyway here’s link:无论如何,这里的链接: http://www.sliceimage.com/

    Hope these books will help you as well.希望这些书籍将帮助您以及。

    Regards,关心,
    Mark马克

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

tvants porn tvants色情 - - phpBB2 php5 phpbb2 php5 - - phpbb php5 phpbb php5 - - tvants porno tvants淫秽 - - phpbb and php5 phpbb和php5 - - phpbb 2 php 5 phpbb 2 PHP 5中 - - Porn on TV ANTS 色情在电视上蚂蚁 - - phpbb 2 php5 phpbb 2 php5 - - tv ants porn 电视蚂蚁色情 - - php5 phpbb2 php5 phpbb2 - - porn on tvants 色情就tvants - - porn tvants 色情tvants - - phpbb submit_post phpbb submit_post - - phpbb blank page phpbb空白页 - - phpbb blank page php5 phpbb空白页php5 - - phpbb Porn phpbb色情 - - tvants server porn tvants服务器色情 - - phpbb2 and php5 phpbb2和php5 - - phpbb and php 5 phpbb和PHP 5 - - phpbb2 with php5 phpbb2与php5 - - phpbb with php5 phpbb与php5 - - porn servers for tvants 色情服务器tvants - - "tvants server" porn “ tvants服务器”色情 - - phpbb2 phpbb2 - - P2P.Porno p2p.porno - - blank page PHPBB2 空白页phpbb2 - - apache2 php5 empty page phpbb2 Apache2中php5空白页phpbb2 - - phpbb+php5 phpbb + php5 - - phpbb2 turk phpbb2特克 - - tvants server porno tvants服务器淫秽 - - "tvants" +porn “ tvants ” +色情 - - php5 phpbb php5 phpbb - - phpbb2 php5 hack phpbb2 php5哈克 - - phpbb submit_post function phpbb submit_post功能 - - porn tv ants 色情电视蚂蚁 - - running phpbb2 with PHP5 运行phpbb2与php5 - - phpbb na php5 phpbb娜php5 - - phpbb 2. phpbb 2 。 .22 on php 5 0.22对PHP 5中 - - phpbb2. phpbb2 。 php 5 PHP 5中 - - php5 work with chinese php5的工作与中国 - - phpbb2 php 5 phpbb2的PHP 5 - - porn servers on tvants 色情服务器上tvants - - $HTTP_POST_VARS php5 convert to $_POST 元http_post_vars php5转换为全局变量$ _POST - - phpbb2 search not working phpbb2搜索没有工作 - - porn phpbb 色情phpbb - - tvants porno tvants淫秽 - - phpbb2 php5 blank screen phpbb2 php5空白屏幕 - - phpbb2 + php5 phpbb2 + php5 - - phpbb blank phpbb空白 - - site not working with php5 网站工作不与php5 - -