Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6489/modules/mx_kb/admin Modified Files: admin_kb_art.php admin_kb_auth.php admin_kb_cat.php admin_kb_custom.php admin_kb_settings.php admin_kb_types.php Log Message: massive fix Index: admin_kb_settings.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_settings.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_kb_settings.php 17 Jun 2006 20:11:23 -0000 1.5 --- admin_kb_settings.php 5 Jul 2006 22:48:25 -0000 1.6 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { *************** *** 214,217 **** --- 216,222 ---- $stats_list_no = ( !$new['stats_list'] ) ? "checked=\"checked\"" : ""; + $settings_newdays = $new['settings_newdays']; + $cat_col = $new['cat_col']; + // // Instructions *************** *** 429,432 **** --- 434,444 ---- 'S_HEADER_BANNER_NO' => $header_banner_no, + 'CAT_COL' => $cat_col, + 'L_CAT_COL' => $lang['cat_col'], + + 'L_NFDAYS' => $lang['Nfdays'], + 'L_NFDAYSINFO' => $lang['Nfdaysinfo'], + 'SETTINGS_NEWDAYS' => $settings_newdays, + // // Comments Index: admin_kb_art.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_art.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** admin_kb_art.php 17 Jun 2006 20:11:23 -0000 1.31 --- admin_kb_art.php 5 Jul 2006 22:48:25 -0000 1.32 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { *************** *** 16,20 **** $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; ! require_once( $phpbb_root_path . 'extension.inc' ); if ( !empty( $setmodules ) ) --- 18,22 ---- $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; ! require( $phpbb_root_path . 'extension.inc' ); if ( !empty( $setmodules ) ) *************** *** 32,35 **** --- 34,38 ---- include( $phpbb_root_path . 'kb/kb_common.' . $phpEx ); + } else *************** *** 68,77 **** { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); - include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); // Notification } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); - include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); // Notification } --- 71,78 ---- *************** *** 82,85 **** --- 83,91 ---- // + // Init + // + $mx_kb->init(); + + // // Get vars/mode // *************** *** 139,143 **** // $mx_kb->update_add_article_notify($article_id, 'approve'); - $message = $lang['Article_approved'] . '<br /><br />' . sprintf( $lang['Click_return_article_manager'], '<a href="' . append_sid( "admin_kb_art.$phpEx" ) . "&start=" . $start . '">', '</a>' ) ; mx_message_die( GENERAL_MESSAGE, $message ); --- 145,148 ---- Index: admin_kb_types.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_types.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** admin_kb_types.php 17 Jun 2006 20:11:23 -0000 1.22 --- admin_kb_types.php 5 Jul 2006 22:48:25 -0000 1.23 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { Index: admin_kb_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_auth.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** admin_kb_auth.php 17 Jun 2006 20:11:23 -0000 1.16 --- admin_kb_auth.php 5 Jul 2006 22:48:25 -0000 1.17 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { Index: admin_kb_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_cat.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** admin_kb_cat.php 3 Jul 2006 12:24:44 -0000 1.26 --- admin_kb_cat.php 5 Jul 2006 22:48:25 -0000 1.27 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { Index: admin_kb_custom.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_custom.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** admin_kb_custom.php 17 Jun 2006 20:11:23 -0000 1.16 --- admin_kb_custom.php 5 Jul 2006 22:48:25 -0000 1.17 *************** *** 9,12 **** --- 9,14 ---- */ + return; + if ( file_exists( './../viewtopic.php' ) ) { |