|
From: Jon O. <jon...@us...> - 2006-07-08 10:22:42
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26757/modules/mx_linkdb/linkdb/includes Modified Files: functions_linkdb.php Added Files: functions_admin.php Log Message: working... Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** functions_linkdb.php 5 Jul 2006 22:49:20 -0000 1.13 --- functions_linkdb.php 8 Jul 2006 10:22:38 -0000 1.14 *************** *** 24,50 **** /** - * load admin module - * - * @param unknown_type $module_name send module name to load it - */ - function adminmodule( $module_name ) - { - if ( !class_exists( 'linkdb_' . $module_name ) ) - { - global $module_root_path, $phpEx; - - $this->module_name = $module_name; - - require_once( $module_root_path . 'linkdb/admin/admin_' . $module_name . '.' . $phpEx ); - eval( '$this->modules[' . $module_name . '] = new linkdb_' . $module_name . '();' ); - - if ( method_exists( $this->modules[$module_name], 'init' ) ) - { - $this->modules[$module_name]->init(); - } - } - } - - /** * load module * --- 24,27 ---- --- NEW FILE: functions_admin.php --- <?php /** * * @package mxBBmodule_mx_kb * @version $Id: functions_admin.php,v 1.1 2006/07/08 10:22:38 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Public linkdb_admin class. * */ class linkdb_admin extends linkdb_public { /** * load admin module * * @param unknown_type $module_name send module name to load it */ function adminmodule( $module_name ) { if ( !class_exists( 'linkdb_' . $module_name ) ) { global $module_root_path, $phpEx; $this->module_name = $module_name; require_once( $module_root_path . 'linkdb/admin/admin_' . $module_name . '.' . $phpEx ); eval( '$this->modules[' . $module_name . '] = new linkdb_' . $module_name . '();' ); if ( method_exists( $this->modules[$module_name], 'init' ) ) { $this->modules[$module_name]->init(); } } } } ?> |