|
From: Jon O. <jon...@us...> - 2008-06-15 21:05:31
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27754/includes Modified Files: forum_hack.php Log Message: do not remember :( Index: forum_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/includes/forum_hack.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** forum_hack.php 13 Jun 2008 03:58:22 -0000 1.58 --- forum_hack.php 15 Jun 2008 21:05:25 -0000 1.59 *************** *** 31,35 **** // ! // Include phpbb functions (in 2.9.x, since they are not already loaded) // if(!function_exists('auth_check_user')) --- 31,35 ---- // ! // Include phpbb functions (in 3.0.x, since they are not already loaded) // if(!function_exists('auth_check_user')) *************** *** 246,250 **** { // ! // Core 2.9.x // $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($row['script_path'])); --- 246,250 ---- { // ! // Core 3.0.x // $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($row['script_path'])); *************** *** 784,788 **** } } ! // Do we really need this one? /** --- 784,788 ---- } } ! // Do we really need this one? /** *************** *** 1773,1777 **** $code = preg_replace('#^(.?//).*(Start|Set).*(session).*(\r\n?|\n)#m','/*' . "\n", $code); $code = preg_replace('#^(.?//).*(End).*(session).*(\r\n?|\n)#m', '*/' . "\n", $code); ! // // Replace common phpBB functions with MXP alternatives --- 1773,1777 ---- $code = preg_replace('#^(.?//).*(Start|Set).*(session).*(\r\n?|\n)#m','/*' . "\n", $code); $code = preg_replace('#^(.?//).*(End).*(session).*(\r\n?|\n)#m', '*/' . "\n", $code); ! // // Replace common phpBB functions with MXP alternatives *************** *** 1876,1883 **** $code = str_replace('$board_config[\'avatar_gallery_path\']', '\''.$phpbb_root_path.'\' . $board_config[\'avatar_gallery_path\']', $code); $code = str_replace('$board_config[\'avatar_path\']', '\''.$phpbb_root_path.'\' . $board_config[\'avatar_path\']', $code); ! //This should fix the url when users try to activate the accont $code = str_replace('$server_url . \'?mode=activate&\'', 'PHPBB_URL .\'profile.\'.$phpEx.\'?mode=activate&\'', $code); ! break; case 'includes/usercp_avatar': --- 1876,1883 ---- $code = str_replace('$board_config[\'avatar_gallery_path\']', '\''.$phpbb_root_path.'\' . $board_config[\'avatar_gallery_path\']', $code); $code = str_replace('$board_config[\'avatar_path\']', '\''.$phpbb_root_path.'\' . $board_config[\'avatar_path\']', $code); ! //This should fix the url when users try to activate the accont $code = str_replace('$server_url . \'?mode=activate&\'', 'PHPBB_URL .\'profile.\'.$phpEx.\'?mode=activate&\'', $code); ! break; case 'includes/usercp_avatar': |