|
From: Jon O. <jon...@us...> - 2007-08-10 18:34:52
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8331 Modified Files: functions_bugsbt.php Log Message: To avoid server cache system failure. Index: functions_bugsbt.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/functions_bugsbt.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** functions_bugsbt.php 6 Aug 2007 13:22:58 -0000 1.5 --- functions_bugsbt.php 10 Aug 2007 18:34:46 -0000 1.6 *************** *** 16,78 **** /** - * Public mx_kb class. - * - */ - class mx_bugsbt_public extends mx_bugsbt - { - var $modules = array(); - var $module_name = ''; - - /** - * load module - * - * @param unknown_type $module_name send module name to load it - */ - function module( $module_name ) - { - if ( !class_exists( 'mx_bugsbt_' . $module_name ) ) - { - global $module_root_path, $phpEx; - - $this->module_name = $module_name; - - require_once( $module_root_path . 'bugsbt/modules/bugsbt_' . $module_name . '.' . $phpEx ); - eval( '$this->modules[' . $module_name . '] = new mx_bugsbt_' . $module_name . '();' ); - - if ( method_exists( $this->modules[$module_name], 'init' ) ) - { - $this->modules[$module_name]->init(); - } - } - } - - /** - * this will be replaced by the loaded module. - * - * @param unknown_type $module_id - * @return unknown - */ - function main( $module_id = false ) - { - return false; - } - - /** - * go ahead and output the page - * - not used in mx_bugsbt - * - * @param unknown_type $page_title send page title - * @param unknown_type $tpl_name template file name - */ - function display( $page_title1, $tpl_name ) - { - global $page_title, $kb_tpl_name; - - $page_title = $page_title1; - $bugsbt_tpl_name = $tpl_name; - } - } - - /** * mx_kb class. * --- 16,19 ---- *************** *** 2022,2025 **** --- 1963,2025 ---- } + /** + * Public mx_kb class. + * + */ + class mx_bugsbt_public extends mx_bugsbt + { + var $modules = array(); + var $module_name = ''; + + /** + * load module + * + * @param unknown_type $module_name send module name to load it + */ + function module( $module_name ) + { + if ( !class_exists( 'mx_bugsbt_' . $module_name ) ) + { + global $module_root_path, $phpEx; + + $this->module_name = $module_name; + + require_once( $module_root_path . 'bugsbt/modules/bugsbt_' . $module_name . '.' . $phpEx ); + eval( '$this->modules[' . $module_name . '] = new mx_bugsbt_' . $module_name . '();' ); + + if ( method_exists( $this->modules[$module_name], 'init' ) ) + { + $this->modules[$module_name]->init(); + } + } + } + + /** + * this will be replaced by the loaded module. + * + * @param unknown_type $module_id + * @return unknown + */ + function main( $module_id = false ) + { + return false; + } + + /** + * go ahead and output the page + * - not used in mx_bugsbt + * + * @param unknown_type $page_title send page title + * @param unknown_type $tpl_name template file name + */ + function display( $page_title1, $tpl_name ) + { + global $page_title, $kb_tpl_name; + + $page_title = $page_title1; + $bugsbt_tpl_name = $tpl_name; + } + } + if ( !function_exists( 'html_entity_decode' ) ) { |