|
From: Jon O. <jon...@us...> - 2007-08-10 18:36:27
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9569 Modified Files: functions_pafiledb.php Log Message: To avoid server cache system failure. Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** functions_pafiledb.php 9 Jul 2007 22:40:09 -0000 1.47 --- functions_pafiledb.php 10 Aug 2007 18:36:22 -0000 1.48 *************** *** 15,77 **** /** - * Public pafiledb class - * - */ - class pafiledb_public extends mx_pafiledb - { - 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( 'pafiledb_' . $module_name ) ) - { - global $module_root_path, $phpEx; - - $this->module_name = $module_name; - - require_once( $module_root_path . 'pafiledb/modules/pa_' . $module_name . '.' . $phpEx ); - eval( '$this->modules[' . $module_name . '] = new pafiledb_' . $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 - * - * @param unknown_type $page_title send page title - * @param unknown_type $tpl_name template file name - */ - function display( $page_title, $tpl_name ) - { - global $pafiledb_template, $pafiledb_functions; - - $pafiledb_functions->page_header( $page_title ); - $pafiledb_template->set_filenames( array( 'body' => $tpl_name ) ); - $pafiledb_functions->page_footer(); - } - } - - /** * pafiledb class * --- 15,18 ---- *************** *** 2339,2341 **** --- 2280,2341 ---- } } + + /** + * Public pafiledb class + * + */ + class pafiledb_public extends mx_pafiledb + { + 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( 'pafiledb_' . $module_name ) ) + { + global $module_root_path, $phpEx; + + $this->module_name = $module_name; + + require_once( $module_root_path . 'pafiledb/modules/pa_' . $module_name . '.' . $phpEx ); + eval( '$this->modules[' . $module_name . '] = new pafiledb_' . $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 + * + * @param unknown_type $page_title send page title + * @param unknown_type $tpl_name template file name + */ + function display( $page_title, $tpl_name ) + { + global $pafiledb_template, $pafiledb_functions; + + $pafiledb_functions->page_header( $page_title ); + $pafiledb_template->set_filenames( array( 'body' => $tpl_name ) ); + $pafiledb_functions->page_footer(); + } + } ?> \ No newline at end of file |