|
From: Jon O. <jon...@us...> - 2005-09-20 15:40:36
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17659/includes Added Files: forum_hack.php phpbb_constants.php phpbb_defs.php phpbb_footer.php Log Message: adding new files for module mx_phpbb --- NEW FILE: phpbb_footer.php --- <?php /** ------------------------------------------------------------------------ * subject : mx-portal, CMS & portal * begin : june, 2002 * copyright : (C) 2002-2005 MX-System * email : jon...@ho... * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- * * $Id: phpbb_footer.php,v 1.1 2005/09/20 15:40:17 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. */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } // Parse and show the overall footer. $template->set_filenames( array( 'phpbb_footer' => 'phpbb_footer.tpl' ) ); $template->assign_vars( array( 'L_MODULE_VERSION' => $phpbb_module_version, 'L_MODULE_ORIG_AUTHOR' => $phpbb_module_orig_author, 'L_MODULE_AUTHOR' => $phpbb_module_author ) ); $template->pparse( 'phpbb_footer' ); ?> --- NEW FILE: forum_hack.php --- <?php /** * forum_hack.php * -------------- * begin : June, 2004 * copyright : phpMiX (c) 2004, mxBB (c) 2005 * contact : http://www.mx-system.com * module : mx_phpbb * file contents : Common definitions for the module. */ /** * 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. */ define( 'MX_FORUM_DEBUG', 1 ); [...1263 lines suppressed...] { return; } // // Send POST vars via SESSIONS // session_start(); $_SESSION['mxbb_post_vars'] = $_POST; // // Actually, redirection takes place here :-) // $mx_forum->redirect( $portal_url ); } } // -------------------------------------------------------------------------------- // That's all Folks! // -------------------------------------------------------------------------------- ?> --- NEW FILE: phpbb_defs.php --- <?php /** * newssuite_constants.php * ------------------- * begin : April, 2003 * copyright : (C) 2002 MX-System * email : su...@mx... * description : define constants * Author : Haplo (jon...@ho...) * credit : Roman Malarev (romutis), MarcMoris * * $Id: phpbb_defs.php,v 1.1 2005/09/20 15:40:17 jonohlsson Exp $ */ // ---------------------------------------------------------------------START // This file defines specific constants for the module // ------------------------------------------------------------------------- // PHPBB MODE ------------------------------------------------------------------------------------------- define( 'NEWS_CAT_TABLE', FORUMS_TABLE ); $cat_extract_order = 'cat_id, forum_order'; $cool_array_category_id = 'forum_id'; $cat_table_category_id = 'f.forum_id'; $item_table_category_id = 't.forum_id'; $item_table_item_id = 't.topic_id'; $item_table_item_type = 't.topic_type'; $item_table_item_time = 't.topic_time'; $item_table_item_last_time = 't.topic_last_post_id'; $item_table_item_title = 't.topic_title'; $item_id = 'topic_id'; $item_type = 'topic_type'; $item_cat_id = 'forum_id'; $item_text = 'post_text'; $item_bbcode_uid = 'bbcode_uid'; $item_time = 'topic_time'; $item_views = 'topic_views'; $item_title = 'topic_title'; $catt_id = 'forum_id'; $catt_name = 'forum_name'; $catt_desc = 'forum_desc'; $item_types_all = 'forum_news'; $item_types_array = array( 'forum_news_announce', 'forum_news_announce', 'forum_news_sticky', 'forum_news_post' ); $item_types_id_array = array( POST_GLOBAL_ANNOUNCE, POST_ANNOUNCE, POST_STICKY, POST_NORMAL ); ?> --- NEW FILE: phpbb_constants.php --- <?php /** * phpbb_constants.php * ------------------- * begin : April, 2003 * copyright : (C) 2002 MX-System * email : su...@mx... * description : define constants * Author : Haplo (jon...@ho...) * credit : Roman Malarev (romutis), MarcMoris * * $Id: phpbb_constants.php,v 1.1 2005/09/20 15:40:17 jonohlsson Exp $ */ // ---------------------------------------------------------------------START // This file defines specific constants for the module // ------------------------------------------------------------------------- define( 'PAGE_FORUM', -502 ); define( 'PHPBB_CONFIG_TABLE', $mx_table_prefix . 'phpbb_plugin_config' ); define( 'POST_ADD_TYPE', 20 ); define( 'TOPIC_ADD_TYPE_TABLE', $mx_table_prefix . 'topic_add_type' ); // ********************************************************************** // 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['printer'] = "$current_template_images/printer.gif"; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $mx_root_path . 'modules/mx_phpbb/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $mx_root_path . 'modules/mx_phpbb/language/lang_english/lang_admin.' . $phpEx ); $link_language = 'lang_english'; } else { include( $mx_root_path . 'modules/mx_phpbb/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); $link_language = 'lang_' . $board_config['default_lang']; } // // get type list for adding and editing articles // function phpbb2_get_types() { $item_types_array = array( 'forum_news_announce', 'forum_news_announce', 'forum_news_sticky', 'forum_news_post' ); $item_types_id_array = array( POST_GLOBAL_ANNOUNCE, POST_ANNOUNCE, POST_STICKY, POST_NORMAL ); return array( $item_types_array, $item_types_id_array ); } $mxbb_footer_addup[] = 'mxBB phpBB Module'; // ---------- $phpbb_module_version = "0.9x BETA"; $phpbb_module_author = "MX Team"; $phpbb_module_orig_author = "phpBB Group"; ?> |