|
From: Jon O. <jon...@us...> - 2007-05-05 20:33:22
|
Update of /cvsroot/mxbb/mx_slides/slides In directory sc8-pr-cvs16:/tmp/cvs-serv30431/slides Added Files: .htaccess index.htm slides_common.php Log Message: First commit --- NEW FILE: slides_common.php --- <?php /** * * @package mxBB Portal Module - mx_slides * @version $Id: slides_common.php,v 1.1 2007/05/05 20:33:19 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 . 'slides/includes/slides_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 . 'slides/includes/functions.' . $phpEx ); include_once( $module_root_path . 'slides/includes/functions_slides.' . $phpEx ); // =================================================== // Load classes // =================================================== //$mx_slides_cache = new module_cache($module_root_path . 'slides/'); $mx_slides_functions = new mx_slides_functions(); /* if ( $mx_slides_cache->exists( 'config' ) ) { $slides_config = $mx_slides_cache->get( 'config' ); } else { $slides_config = $mx_slides_functions->slides_config(); $mx_slides_cache->put( 'config', $slides_config ); } */ $slides_config = array(); // // Some general template vars // $template->assign_vars( array( // // Index // 'L_VIEW_BUGS' => $lang['sd_View_bugs'], 'L_VIEW_ALL_BUGS' => $lang['sd_View_all_bugs'], 'L_VIEW_LATEST_BUGS' => $lang['sd_View_latest_bugs'], 'L_VIEW_LAST_UPDATED_BUGS' => $lang['sd_View_last_updated_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'], )); $mx_slides = new mx_slides_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> --- NEW FILE: .htaccess --- deny from all |