|
From: Jon O. <jon...@us...> - 2007-02-15 12:43:56
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7691/bugsbt Added Files: bugsbt_common.php index.htm Log Message: Ok. here we go. This is the cool new mxBB Bugtracker ;) --- NEW FILE: bugsbt_common.php --- <?php /** * * @package mxBB Portal Module - mx_bugsbt * @version $Id: bugsbt_common.php,v 1.1 2007/02/15 12:43:45 jonohlsson Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Cezary Tomczak] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /* // =================================================== // addslashes to vars if magic_quotes_gpc is off // =================================================== if ( !@function_exists( 'slash_input_data' ) ) { function slash_input_data( &$data ) { if ( is_array( $data ) ) { foreach ( $data as $k => $v ) { $data[$k] = ( is_array( $v ) ) ? slash_input_data( $v ) : addslashes( $v ); } } return $data; } } // =================================================== // to make it work with php version under 4.1 and other stuff // =================================================== if ( @phpversion() < '4.1' ) { $_GET = &$HTTP_GET_VARS; $_POST = &$HTTP_POST_VARS; $_COOKIE = &$HTTP_COOKIE_VARS; $_SERVER = &$HTTP_SERVER_VARS; $_ENV = &$HTTP_ENV_VARS; $_FILES = &$HTTP_POST_FILES; $_SESSION = &$HTTP_SESSION_VARS; } if ( !isset( $_REQUEST ) ) { $_REQUEST = array_merge( $_GET, $_POST, $_COOKIE ); } if ( !get_magic_quotes_gpc() ) { $_GET = slash_input_data( $_GET ); $_POST = slash_input_data( $_POST ); $_COOKIE = slash_input_data( $_COOKIE ); $_REQUEST = slash_input_data( $_REQUEST ); } */ // =================================================== // Include Files // =================================================== include_once( $module_root_path . 'bugsbt/includes/bugsbt_constants.' . $phpEx ); // // Load addon tools // // - Class module_cache // - Class mx_custom_fields // - Class mx_notification // - Class mx_text // - Class mx_text_formatting // include_once( $mx_root_path . 'includes/mx_functions_tools.' . $phpEx ); include_once( $module_root_path . 'bugsbt/includes/functions.' . $phpEx ); include_once( $module_root_path . 'bugsbt/includes/functions_auth.' . $phpEx ); //include_once( $module_root_path . 'bugsbt/includes/functions_mx.' . $phpEx ); include_once( $module_root_path . 'bugsbt/includes/functions_bugsbt.' . $phpEx ); // =================================================== // Load classes // =================================================== $mx_bugsbt_cache = new module_cache($module_root_path . 'bugsbt/'); $mx_bugsbt_functions = new mx_bugsbt_functions(); if ( $mx_bugsbt_cache->exists( 'config' ) ) { $bugsbt_config = $mx_bugsbt_cache->get( 'config' ); } else { $bugsbt_config = $mx_bugsbt_functions->bugsbt_config(); $mx_bugsbt_cache->put( 'config', $bugsbt_config ); } // // options // /* $kb_wysiwyg = false; if ( $kb_config['wysiwyg'] ) // Html Textblock { if ( file_exists( $mx_root_path . 'modules/mx_shared/tinymce/jscripts/tiny_mce/blank.htm' ) ) { $bbcode_on = false; $html_on = true; $smilies_on = false; $kb_wysiwyg = true; } } if ( !$kb_wysiwyg ) { $bbcode_on = $kb_config['allow_bbcode'] ? true : false; $html_on = $kb_config['allow_html'] ? true : false; $smilies_on = $kb_config['allow_smilies'] ? true : false; } */ // // Some general template vars // $template->assign_vars( array( // // Index // 'L_VIEW_BUGS' => $lang['sd_View_bugs'], 'L_VIEW_BUG' => $lang['sd_View_bug'], 'L_REPORT_BUG' => $lang['sd_Report_bug'], 'L_EDIT_BUG' => $lang['sd_Edit_bug'], 'L_DELETE_BUG' => $lang['sd_Delete_bug'], 'L_DEFAULT_EDIT' => $lang['sd_Default_edit'], 'L_LOADING' => $lang['sd_Loading'], 'L_SAVING' => $lang['sd_Saving'], )); if (defined( 'IN_ADMIN' )) { include_once( $module_root_path . 'bugsbt/includes/functions_admin.' . $phpEx ); $mx_bugsbt = new mx_bugsbt_admin(); } else { $mx_bugsbt = new mx_bugsbt_public(); } ?> --- 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> |