|
From: Jon O. <jon...@us...> - 2007-08-10 18:35:55
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9063 Modified Files: functions_simpledoc.php Log Message: To avoid server cache system failure. Index: functions_simpledoc.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_simpledoc.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** functions_simpledoc.php 17 Sep 2006 20:15:56 -0000 1.6 --- functions_simpledoc.php 10 Aug 2007 18:35:52 -0000 1.7 *************** *** 15,59 **** // =================================================== - // public mx_simpledoc class - // =================================================== - class mx_simpledoc_public extends mx_simpledoc - { - var $modules = array(); - var $module_name = ''; - - // =================================================== - // load module - // $module name : send module name to load it - // =================================================== - function module( $module_name ) - { - if ( !class_exists( 'mx_simpledoc_' . $module_name ) ) - { - global $phpbb_root_path, $phpEx; - global $mx_root_path, $module_root_path, $is_block, $phpEx; - - $this->module_name = $module_name; - - require_once( $module_root_path . 'simpledoc/modules/simpledoc_' . $module_name . '.' . $phpEx ); - eval( '$this->modules[' . $module_name . '] = new mx_simpledoc_' . $module_name . '();' ); - - if ( method_exists( $this->modules[$module_name], 'init' ) ) - { - $this->modules[$module_name]->init(); - } - } - } - - // =================================================== - // this will be replaced by the loaded module - // =================================================== - function main( $module_id = false ) - { - return false; - } - - } - - // =================================================== // mx_simpledoc class // =================================================== --- 15,18 ---- *************** *** 497,499 **** --- 456,498 ---- } + // =================================================== + // public mx_simpledoc class + // =================================================== + class mx_simpledoc_public extends mx_simpledoc + { + var $modules = array(); + var $module_name = ''; + + // =================================================== + // load module + // $module name : send module name to load it + // =================================================== + function module( $module_name ) + { + if ( !class_exists( 'mx_simpledoc_' . $module_name ) ) + { + global $phpbb_root_path, $phpEx; + global $mx_root_path, $module_root_path, $is_block, $phpEx; + + $this->module_name = $module_name; + + require_once( $module_root_path . 'simpledoc/modules/simpledoc_' . $module_name . '.' . $phpEx ); + eval( '$this->modules[' . $module_name . '] = new mx_simpledoc_' . $module_name . '();' ); + + if ( method_exists( $this->modules[$module_name], 'init' ) ) + { + $this->modules[$module_name]->init(); + } + } + } + + // =================================================== + // this will be replaced by the loaded module + // =================================================== + function main( $module_id = false ) + { + return false; + } + + } ?> \ No newline at end of file |