|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:47
|
Update of /cvsroot/mxbb/mx_dev_startkit/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328/includes Added Files: startkit_constants.php startkit_functions.php Log Message: adding this module --- NEW FILE: startkit_constants.php --- <?php /** ------------------------------------------------------------------------ * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team * Credits : The phpBB Group & Marc Morisette * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * * $Id: startkit_constants.php,v 1.1 2005/10/22 12:40:33 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ // ---------------------------------------------------------------------START // This file defines specific constants for the module // ------------------------------------------------------------------------- define( 'STARTKIT_CONFIG_TABLE', $mx_table_prefix . 'dev_startkit_config' ); // ********************************************************************** // Read theme definition // ********************************************************************** if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) { // ---------- $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; // ---------- } else { // ---------- $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; // ---------- } $images['startkit_image'] = $current_template_images . "/dev_startkit.gif"; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); $link_language = 'lang_english'; } else { include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); $link_language = 'lang_' . $board_config['default_lang']; } // // Module Copyrights // $mxbb_footer_addup[] = 'mxBB Dev Startkit Module'; // ---------- $phpbb_module_version = "1.0"; $phpbb_module_author = "mxBB Team"; ?> --- NEW FILE: startkit_functions.php --- <?php /** ------------------------------------------------------------------------ * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team * Credits : The phpBB Group & Marc Morisette * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * * $Id: startkit_functions.php,v 1.1 2005/10/22 12:40:33 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ // // Module functions class // Do not define module functions outside this class!! // class mx_startkit { // // Public Methods // /********************************************************************************\ | Double \********************************************************************************/ function double($number = 0) { $new_number = 2 * $number; return $new_number; } } ?> |