|
From: Jon O. <jon...@us...> - 2006-08-16 20:01:47
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26790/modules/mx_phpbb/includes Modified Files: forum_hack.php Log Message: Finally!! A fix for phpBB new functions_post.php tweaks. Index: forum_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/includes/forum_hack.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** forum_hack.php 29 Jun 2006 19:10:53 -0000 1.13 --- forum_hack.php 16 Aug 2006 20:01:43 -0000 1.14 *************** *** 17,20 **** --- 17,23 ---- include_once($phpbb_root_path . 'includes/functions_selects.' . $phpEx); + include_once($phpbb_root_path . 'includes/functions_post.' . $phpEx); + include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx); + include_once($phpbb_root_path . 'includes/auth.' . $phpEx); // -------------------------------------------------------------------------------- *************** *** 306,310 **** 'memberlist' => $this->phpbb_config['memberlist'], //'modcp' => $this->phpbb_config['index'], ! 'modcp' => $this->phpbb_config['standalone'], 'posting' => $this->phpbb_config['index'], 'privmsg' => $this->phpbb_config['privmsg'], --- 309,313 ---- 'memberlist' => $this->phpbb_config['memberlist'], //'modcp' => $this->phpbb_config['index'], ! 'modcp' => $this->phpbb_config['index'], //'standalone' ??? 'posting' => $this->phpbb_config['index'], 'privmsg' => $this->phpbb_config['privmsg'], *************** *** 345,348 **** --- 348,352 ---- // Tricky but useful method to retrieve Portal Table names from phpBB scope... // -------------------------------------------------------------------------------- + /* function _get_mx_table_name( $table_suffix ) { *************** *** 351,354 **** --- 355,369 ---- return $mx_table_prefix . $table_suffix; } + */ + + function _get_mx_table_name( $table_suffix ) + { + global $mx_root_path, $phpEx, $mx_table_prefix; + if (!isset($mx_table_prefix)) + { + include( $mx_root_path . 'config.' . $phpEx ); + } + return $mx_table_prefix . $table_suffix; + } // -------------------------------------------------------------------------------- *************** *** 1217,1220 **** --- 1232,1240 ---- // + // Remove def of IN_PHPBB + // + $code = preg_replace('#^(.?define).*(IN_PHPBB).*(\r\n?|\n)#m','// mxBB: Removed IN_PHPBB def' . "\n", $code); + + // // Remove php tags // *************** *** 1263,1268 **** // Remove some includes already included by mxBB // - $code = preg_replace ("/include(.*)bbcode/", "//", $code); $code = preg_replace ("/include(.*)functions_select/", "//", $code); // --- 1283,1290 ---- // Remove some includes already included by mxBB // $code = preg_replace ("/include(.*)functions_select/", "//", $code); + $code = preg_replace ("/include(.*)functions_post/", "//", $code); + $code = preg_replace ("/include(.*)bbcode/", "//", $code); + $code = preg_replace ("/include(.*)auth/", "//", $code); // *************** *** 1334,1337 **** --- 1356,1360 ---- else { + //die(str_replace("\n", '<br>', htmlspecialchars($code))); eval($code); |