################################################################################
##
## Hack Title: phpBB 2.0.12 - 2.0.13 Code Changes
## Hack Version: 1.0.0
## Hack Author: Complied by Thoul, code by phpBB Group
## Hack Description: All changes in phpBB made between 2.0.12 and 2.0.13.
##
## Compatibility: 2.0.12
## Installation Level: Moderate
## Installation Time: 30 minutes
##
## Files To Edit: 2
## includes/sessions.php
## viewtopic.php
##
## Support: http://www.phpbbhacks.com/forums
##
################################################################################
##
## You downloaded this hack from phpBBHacks.com,
## the #1 source for phpBB related downloads.
##
## Please visit http://www.phpbbhacks.com/forums for support.
##
################################################################################
##
## This hack is released under the GPL License.
##
################################################################################
##
## BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
## affected files.
##
################################################################################
##
##----------[ PLEASE NOTE ]------------------------------
##
## Once you have completed the code changes, create an install/ directory in
## your forum's root directory, and upload the update_to_latest.php file that
## comes in any phpBB 2.0.11 download to the install/ directory. Run
## update_to_latest.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.
##
##----------[ OPEN ]-------------------------------------
##
includes/sessions.php
##
##----------[ PLEASE NOTE ]------------------------------
##
## Please note that due to this change, phpBB 2.0.12 can only be used on PHP 4
## or later. Previous releases operated on PHP 3, but this version will not.
## If you intend to use phpBB on servers running PHP 3, you should strongly
## consider upgrading the server's PHP installation.
##
##----------[ FIND ]-------------------------------------
##
if( $sessiondata['autologinid'] == $auto_login_key )
##
##----------[ REPLACE WITH ]-------------------------------
##
if( $sessiondata['autologinid'] === $auto_login_key )
##
##----------[ OPEN ]-------------------------------------
##
viewtopic.php
##
##----------[ FIND ]-------------------------------------
##
$message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1));
##
##----------[ REPLACE WITH ]-----------------------------
##
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . $highlight_match . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1));
##
##----------[ SAVE AND CLOSE ALL FILES ]-----------------
##
## End
##