rendered paste body<?php############################################################### FILENAME : punbb_bridge.php# COPYRIGHT : (c) 2007, Tyler N. King <aibotca@yahoo.ca># GPL v2.0 or later. See docs/COPYING.##############################################################/** * punBB Bridge Class * This class bridges punBB with Rivals. */class punBB_bridge{ /** * Initilize the class. * * @param object $core */ function punBB_bridge ( &$core ) { global $usr; global $ses; global $config; global $tpl; // Include standard punBB files. define ( 'PUN_ROOT', './' ); define ( 'USERS_TABLE', $config[ 'table_prefix' ] . 'users' ); include ( PUN_ROOT . 'include/common.php' ); // Bridge punBB's sessions to Rivals' sessions. $usr->data[ 'user_id' ] = $pun_user[ 'user_id' ]; $usr->data[ 'username' ] = $pun_user[ 'username' ]; $usr->data[ 'user_level' ] = $pun_user[ 'g_id' ]; include ( PUN_ROOT . 'header.php' ); // Take the output from the module (&$core->tpl_content) and parse it. $tpl->set_rootdir ( 'templates/' ); $tpl->assign_var ( 'S_OUTPUT', $core->tpl_content ); $tpl->set_filenames ( array ( 'body' => 'rivals.tpl' ) ); $tpl->pparse ( 'body' ); include ( PUN_ROOT . 'footer.php' ); }}?>