You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 552 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Bug Fix for phpBB 2.0.8-2.0.9 UPDATE
Bug Fixestelli writes "There has been a fix added to the phpBB 2.0.8 - 2.0.9 update. Originally the new function added unset_vars was causing problems with you entering the Forums admin. As a workaround (thanks to alphamonkey) open the modules/Forum/common.php and


find this line - around line 27



die("Hacking attempt");

}





After place:






//Unset Vars

function unset_vars(&$var)

{

while (list($var_name, $null) = @each($var))

{

if ( ! ( $var_name == 'phpbb_root_path' || $var_name == 'no_page_header' || $var_name == 'phpEx' || $var_name == 'admin' || $var_name == 'user' || $var_name == 'name' ) )

{

unset($GLOBALS[$var_name]);

}

}

return;

}






Find around line 41:





error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime






After Add:







// Unset globally registered vars - PHP5 ... hhmmm

if (@$ini_val('register_globals') == '1' || strtolower(@$ini_val('register_globals')) == 'on')

{

$var_prefix = 'HTTP';

$var_suffix = '_VARS';


$test = array('_GET', '_POST', '_SERVER', '_COOKIE', '_ENV');


foreach ($test as $var)

{
if (is_array(${
$var_prefix . $var . $var_suffix}))

{

unset_vars(${$var_prefix . $var . $var_suffix});

@reset(${$var_prefix . $var . $var_suffix});

}


if (is_array(${$var}))

{

unset_vars(${$var});

@reset(${$var});

}

}


if (is_array(${'_FILES'}))

{

unset_vars(${'_FILES'});

@reset(${'_FILES'});

}


if (is_array(${'HTTP_POST_FILES'}))

{

unset_vars(${'HTTP_POST_FILES'});

@reset(${'HTTP_POST_FILES'});

}

}





Save it and upload it. The files for download have also been updated so if you don't have hevaily ported forums you can use those.

Manual Change List
Pre Modded Files"
Posted on Friday, July 16 @ 04:54:54 CEST by VinDSL
 
Related Links
· More about Bug Fixes
· News by VinDSL


Most read story about Bug Fixes:
Downloads & Web Links vulnerability Patch

Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend

Threshold
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.068 Seconds - 305 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::