|
From: <mxb...@li...> - 2005-03-17 11:30:48
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28480 Modified Files: common.php index.php mx_dynamic.php mx_includex.php mx_search.php Log Message: added includes/mx_admincp.php for admincp functions only minor fixes Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** common.php 16 Mar 2005 00:18:43 -0000 1.27 --- common.php 17 Mar 2005 11:30:35 -0000 1.28 *************** *** 204,208 **** include_once( $phpbb_root_path . 'includes/db.' . $phpEx ); include_once( $phpbb_root_path . 'includes/functions_selects.' . $phpEx ); - include_once( $phpbb_root_path . 'includes/functions_search.' . $phpEx ); include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); --- 204,207 ---- *************** *** 230,233 **** --- 229,236 ---- define( 'PORTAL_VERSION', $portal_config['portal_version'] ); + // instatiate the mx_request_vars class + + $mx_request_vars = new mx_request_vars(); + // Obtain and encode users IP *************** *** 236,239 **** --- 239,243 ---- // even bother complaining ... go scream and shout at the idiots out there who feel // "clever" is doing harm rather than good ... karma is a great thing ... :) + $client_ip = ( !empty( $HTTP_SERVER_VARS['REMOTE_ADDR'] ) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty( $HTTP_ENV_VARS['REMOTE_ADDR'] ) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR ); $user_ip = encode_ip( $client_ip ); *************** *** 254,280 **** $board_config[$row['config_name']] = $row['config_value']; } - // ++ MX System - /* - if ($language) - { - $board_config['default_lang'] = $language; - setcookie('default_lang',$language , (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - else if (isset($HTTP_COOKIE_VARS['default_lang']) ) - { - $board_config['default_lang']=$HTTP_COOKIE_VARS['default_lang']; - } - if ($style) - { - $board_config['default_style'] = $style; - setcookie('default_style',$style , (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - else if (isset($HTTP_COOKIE_VARS['default_style']) ) - { - $board_config['default_style']=$HTTP_COOKIE_VARS['default_style']; - } - */ - // -- MX System if ( file_exists( $phpbb_root_path . 'attach_mod' ) ) { --- 258,262 ---- |