|
From: Jon O. <jon...@us...> - 2007-08-10 18:35:15
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8971 Modified Files: functions_kb.php Log Message: To avoid server cache system failure. Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_kb.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** functions_kb.php 28 Apr 2007 19:59:05 -0000 1.20 --- functions_kb.php 10 Aug 2007 18:35:10 -0000 1.21 *************** *** 15,77 **** /** - * Public mx_kb class. - * - */ - class mx_kb_public extends mx_kb - { - 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_kb_' . $module_name ) ) - { - global $module_root_path, $phpEx; - - $this->module_name = $module_name; - - require_once( $module_root_path . 'kb/modules/kb_' . $module_name . '.' . $phpEx ); - eval( '$this->modules[' . $module_name . '] = new mx_kb_' . $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_kb - * - * @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; - $kb_tpl_name = $tpl_name; - } - } - - /** * mx_kb class. * --- 15,18 ---- *************** *** 2095,2098 **** --- 2036,2098 ---- } + /** + * Public mx_kb class. + * + */ + class mx_kb_public extends mx_kb + { + 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_kb_' . $module_name ) ) + { + global $module_root_path, $phpEx; + + $this->module_name = $module_name; + + require_once( $module_root_path . 'kb/modules/kb_' . $module_name . '.' . $phpEx ); + eval( '$this->modules[' . $module_name . '] = new mx_kb_' . $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_kb + * + * @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; + $kb_tpl_name = $tpl_name; + } + } + if ( !function_exists( 'html_entity_decode' ) ) { |