|
From: Jon O. <jon...@us...> - 2008-01-28 22:21:10
|
Update of /cvsroot/mxbb/core/modules/mx_news/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26348/admin Added Files: admin_mx_news.php index.htm Log Message: New module. Based on the KB engine and reuse the core comments OO class to make a simple news/comments module, for wuick news. Very handy... --- NEW FILE: admin_mx_news.php --- <?php /** * * @package mxBB Portal Module - mx_news * @version $Id: admin_mx_news.php,v 1.3 2008/01/28 22:21:05 jonohlsson Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); $module['mxNews_mx_news']['0_Configuration'] = 'modules/mx_news/admin/' . $filename . "?action=setting"; return; } $mx_root_path = '../../../'; $module_root_path = "../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include( $module_root_path . 'mx_news/mx_news_common.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } // // Get action variable other wise set it to the main // $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'setting'; // // an array of all expected actions // $actions = array( 'setting' => 'setting' ); // // Lets Build the page // $mx_news->adminmodule( $actions[$action] ); $mx_news->modules[$actions[$action]]->main( $action ); $mx_news->modules[$actions[$action]]->_mx_news(); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |