|
From: Culprit <cul...@us...> - 2008-02-12 10:54:11
|
Update of /cvsroot/mxbb/core/includes/shared/phpbb3/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21320/core/includes/shared/phpbb3/includes Modified Files: bbcode.php functions.php functions_posting.php functions_hook.php message_parser.php Log Message: security fix :: Hacking attempt Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/shared/phpbb3/includes/functions.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** functions.php 12 Feb 2008 06:33:18 -0000 1.12 --- functions.php 12 Feb 2008 10:54:05 -0000 1.13 *************** *** 9,12 **** --- 9,20 ---- */ + /** + * @ignore + */ + if (!defined('IN_PORTAL')) + { + exit; + } + // // Common global functions Index: message_parser.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/shared/phpbb3/includes/message_parser.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** message_parser.php 8 Feb 2008 15:03:17 -0000 1.1 --- message_parser.php 12 Feb 2008 10:54:05 -0000 1.2 *************** *** 9,15 **** */ ! if ( !defined( 'IN_PORTAL' ) ) { ! die( "Hacking attempt" ); } --- 9,18 ---- */ ! /** ! * @ignore ! */ ! if (!defined('IN_PORTAL')) { ! exit; } Index: functions_posting.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/shared/phpbb3/includes/functions_posting.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_posting.php 9 Sep 2007 16:52:25 -0000 1.1 --- functions_posting.php 12 Feb 2008 10:54:05 -0000 1.2 *************** *** 10,13 **** --- 10,22 ---- /** + * @ignore + */ + if (!defined('IN_PORTAL')) + { + exit; + } + + + /** * Fill smiley templates (or just the variables) with smilies, either in a window or inline */ Index: functions_hook.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/shared/phpbb3/includes/functions_hook.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** functions_hook.php 12 Feb 2008 06:29:31 -0000 1.10 --- functions_hook.php 12 Feb 2008 10:54:05 -0000 1.11 *************** *** 9,19 **** */ ! if ( !defined( 'IN_PORTAL' ) ) { ! die( "Hacking attempt" ); } ! // error_reporting( E_ALL | !E_NOTICE); ! // include_once( $phpbb_root_path . 'adm/index.'. $phpEx); ! // include_once( $mx_root_path . 'includes/shared/phpbb3/includes/functions.' . $phpEx ); mx_page::load_file( 'functions', 'phpbb3'); mx_page::load_file( 'functions_module', 'phpbb3'); --- 9,20 ---- */ ! /** ! * @ignore ! */ ! if (!defined('IN_PORTAL')) { ! exit; } ! mx_page::load_file( 'functions', 'phpbb3'); mx_page::load_file( 'functions_module', 'phpbb3'); *************** *** 31,34 **** --- 32,42 ---- var $p_master = null; var $mx_master = null; + + /** + * Constructor + * + * @param resource $mx_master master admin object + * @return resource mx_phpbb3_admin + */ function mx_phpbb3_admin( $mx_master = null) { *************** *** 39,74 **** } - function hook( $part, $curr_tab = '', $mode = '' ) - { - global $lang, $mx_user, $phpEx; - switch ( $part ) - { - case 'forum': - case 'admin': - $this->main_part = $part; - // print_r( $mx_user);die(); - // include_once( $mx_user->lang_path . 'acp/common.'.$phpEx); - break; - case 'tabs': - if ( $this->main_part == 'admin' ) - { - return $this->admin_tabs( $curr_tab ); - } - break; - case 'menu': - if ( $this->main_part == 'admin' ) - { - return $this->admin_menu( $curr_tab ); - } - break; - case 'panel': - if ( $this->main_part == 'admin' ) - { - return $this->admin_panel( $curr_tab, $mode ); - } - break; - } - } - /** * new hook --- 47,50 ---- Index: bbcode.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/shared/phpbb3/includes/bbcode.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bbcode.php 9 Sep 2007 16:52:24 -0000 1.1 --- bbcode.php 12 Feb 2008 10:54:05 -0000 1.2 *************** *** 10,13 **** --- 10,21 ---- /** + * @ignore + */ + if (!defined('IN_PORTAL')) + { + exit; + } + + /** * BBCode class * @package phpBB3 |