|
From: Markus P. <mar...@us...> - 2005-04-04 00:43:05
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8387 Modified Files: admin_mx_meta.php Log Message: Oopss... I forgot to load the META lang file. Index: admin_mx_meta.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_meta.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_mx_meta.php 4 Apr 2005 00:21:56 -0000 1.7 --- admin_mx_meta.php 4 Apr 2005 00:42:37 -0000 1.8 *************** *** 28,53 **** } - function generate_meta_select($default, $select_name) - { - global $lang; - - $select = '<select name="' . $select_name . '">'; - foreach( $lang['mx_meta'][$select_name] as $key => $value ) - { - $selected = ( $key == $default ) ? ' selected="selected"' : ''; - $select .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>'; - } - $select .= '</select>'; - - return $select; - } - define('IN_PORTAL', 1); $mx_root_path = '../'; // Security and page header ! require('./pagestart.php'); if ( $mx_request_vars->is_post('submit') ) { --- 28,56 ---- } define('IN_PORTAL', 1); $mx_root_path = '../'; + // // Security and page header ! // require('./pagestart.php'); + + // + // Load language file. + // + if ( @file_exists($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_meta.' . $phpEx) ) + { + include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_meta.' . $phpEx); + } + else + { + include($mx_root_path . 'language/lang_english/lang_meta.' . $phpEx); + } + + + // + // Main procedure + // if ( $mx_request_vars->is_post('submit') ) { *************** *** 104,108 **** } ! include( '../mx_meta.inc' ); $template->set_filenames(array( 'meta' => 'admin/admin_mx_meta.tpl') --- 107,116 ---- } ! ! // ! // Read current settings and send result to browser ! // ! include($mx_root_path . 'mx_meta.inc'); ! $template->set_filenames(array( 'meta' => 'admin/admin_mx_meta.tpl') *************** *** 147,149 **** --- 155,177 ---- include("./page_footer_admin.$phpEx"); + + // ======================================== + // FUNCTIONS + // ======================================== + + function generate_meta_select($default, $select_name) + { + global $lang; + + $select = '<select name="' . $select_name . '">'; + foreach( $lang['mx_meta'][$select_name] as $key => $value ) + { + $selected = ( $key == $default ) ? ' selected="selected"' : ''; + $select .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>'; + } + $select .= '</select>'; + + return $select; + } + ?> \ No newline at end of file |