rendered paste body<?php############################################################### FILENAME : phpBB3_bridge.php# COPYRIGHT : (c) 2006, Tyler N. King <aibotca@yahoo.ca># LICENSE : Creative Commons (Link)##############################################################define ( 'IN_PHPBB', true );$phpbb_root_path = './';$phpEx = substr ( strrchr ( __FILE__, '.' ), 1 );include ( $phpbb_root_path . 'common.' . $phpEx );$user->session_begin ( );$auth->acl ( $user->data );$user->setup ( );// Now bridge phpBB's $user to Rival's $usr. This setups sessions and stuff as well.$usr = new usr ( );$usr->data[ 'user_id' ] = $user->data[ 'user_id' ];$usr->data[ 'username' ] = $user->data[ 'username' ];$sql = 'SELECT * FROM ' . MODULES_TABLE . ' WHERE module_name = "' . $http_vars[ 'module' ] . '"';$result = $db->sql_query ( $sql );$row = $db->sql_fetchrow ( $result );if ( empty ( $ses->[ 'session' ] ) ){ message_die ( GENERAL_MESSAGE, 'Please log in before using this feature.' );}if ( $row[ 'module_status' ] != 0 ){ ob_start ( ); $mod = new module_loader ( 'rivals/modules/' ); $mod->deps ( ); $mod->load_module ( $http_vars[ 'module' ] ); $template->assign_var ( 'OUTPUT' => ob_get_clean ( ) );}else{ message_die ( GENERAL_ERROR, $lang[ 'miiaufljdb' ] );}page_header ( );$template->set_file ( 'body' => 'rivals.html' ));page_footer ( );?>