| Author |
Message |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Tue Apr 27, 2004 10:40 am |
|
Is anyone working on phpbb port? In my reworking the "Your_Account" module, I have run into what looks like a large number of phpbb coding bugs.
I've also noticed a great deal of bad header calls.
I'm pretty new to MySQL and PHP, but it seems to me that everywhere after the first header calls at the top of the files, other header calls within the files should be replaced by redirect).
For example: in group_cp
| Code: | $is_moderator = FALSE;
if ( isset($HTTP_POST_VARS['groupstatus']) && $group_id )
{
if ( !$userdata['session_logged_in'] )
{
header($header_location . append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true));
exit; |
Shouldn't this actually read:
| Code: | $is_moderator = FALSE;
if ( isset($HTTP_POST_VARS['groupstatus']) && $group_id )
{
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); |
Next, I've seen people suggest to correct the problem to create an .htaccess file with the statement output_buffering = On. To be honest, isn't this just covering up the problem instead of fixing it? My attempt to apply this fix results in my site giving 500 errors.
Is it me or is it the code?
Thanks |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Tue Apr 27, 2004 4:34 pm |
|
I would think that one would be better handled by the phpbb group as it is original code. |
|
|
|
 |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Tue Apr 27, 2004 7:50 pm |
|
Upon downloading phpbb and comparing some of the code, it looks like these problems only exist in the port. |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Tue Apr 27, 2004 8:00 pm |
|
If the code you posted above is only part of the port then i must have been there since the first port, anyway try what you suggested to see if it gets rid of the problem you were having. |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Tue Apr 27, 2004 8:42 pm |
|
What is the problem? The good ole headers already sent by output at blah blah blah? I've only found that one where there is a cookie involved. Header location is just a redirect probably is from the original port Doesn't phpbb use a complex little gaggle of code to check the server environment then choose what method to redirect based on the server env? |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Tue Apr 27, 2004 8:49 pm |
|
Truth is the last few versions of the port have only been released as upgrade patches, i have mentioned this a few times, maybe it's time i sit down and re-port the d*** thing, i think it's worth it.  |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Tue Apr 27, 2004 8:59 pm |
|
Yikes wait for them to hit the big bang version.  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Tue Apr 27, 2004 9:08 pm |
|
I would imagine they will (or one of the mod authors) release a changes file, else all users that have modded their forums to death will be in pain so it still might be worth the extra effort. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Apr 27, 2004 10:33 pm |
|
And FB is doing away with phpbb in his next release. |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Tue Apr 27, 2004 10:44 pm |
|
I have no problems with that actually, i don't plan to drop phpBB on my sites. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Thu Apr 29, 2004 10:36 am |
|
Personally, I think a report is overdue.
Perhaps we can finally get rid of that pesky avatar problem and finally get some cohesion between Your Account and Profile?
FB is dropping phpBB from the core code? Woo- hoo, that means we will have a number of files that don't have to fixed! |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Thu Apr 29, 2004 10:54 am |
|
And new ones will be added. |
|
|
|
 |
|
|
|
|