phpBB 2.0.9 to phpBB 2.0.10 Code Changes
These are the code changes introduced between phpBB 2.0.9 and phpBB 2.0.10. If you have installed many hacks on a forum, but wish to update it, these may help you. It is often easier to apply code changes such as these instead of replacing and rehacking your current files.
These code changes use the following instruction labels:
filename - The name of a file to be edited. Equivalent to an OPEN action in a hack or modification.
FIND - This indicates lines of code you should locate. Changes will be made in reference to this code.
REPLACE WITH - This code should completely replace the code in the preceding FIND instruction.
AFTER, ADD - The code in this instruction should be added on a new line after the last line of code in the preceding FIND instruction.
BEFORE, ADD - The code in this instruction should be added on a new line before the first line of code in the preceding FIND instruction.
FIND AND DELETE - Locate the code in this instruction as with a FIND statement, and then delete the code.
Once you have completed the code changes, create an install/ directory in your forum's root directory, and upload the update_to_210.php file that comes in any phpBB 2.0.10 download to the install/ directory. Run update_to_210.php by opening it via your web browser, just as you would a normal forum page. Afterward, delete the file and the install/ directory so that your forum is accessible again.
Now, onward to the file changes!
FIND
FIND
require('./pagestart.' . $phpEx);
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
FIND
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
}
FIND
$redirect = str_replace('?', '&', $redirect);
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
$redirect = str_replace("?", "&", $redirect);
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
FIND
FIND
{
$boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
}
// if ( !empty($SID) )
// {
$boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
// }
{
$db->sql_close();
}
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
Compiled by your friendly neighborhood Thoul from the phpBB 2.0.9 - 2.0.10 patch file.
