You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: OryNider <ory...@us...> - 2008-03-08 15:27:57
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18254/pafiledb/includes Modified Files: Tag: core28x pafiledb_constants.php Log Message: update for new mx_mod 2.8.2 Index: pafiledb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/pafiledb_constants.php,v retrieving revision 1.20.2.1 retrieving revision 1.20.2.2 diff -C2 -d -r1.20.2.1 -r1.20.2.2 *** pafiledb_constants.php 28 Jan 2008 03:12:08 -0000 1.20.2.1 --- pafiledb_constants.php 8 Mar 2008 15:27:21 -0000 1.20.2.2 *************** *** 84,87 **** --- 84,94 ---- $pa_module_author = "Haplo/Jon"; $pa_module_orig_author = "Mohd"; + + if (!defined( 'IN_ADMIN' )) + { + $mx_user->set_module_cfg_name('pafiledb'); + $mx_user->set_module_lang_path($module_root_path . 'pafiledb/'); + $mx_user->extend(); + } } else |
|
From: OryNider <ory...@us...> - 2008-03-08 15:27:53
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18254/admin Modified Files: Tag: core28x admin_pafiledb.php Log Message: update for new mx_mod 2.8.2 Index: admin_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pafiledb.php,v retrieving revision 1.6.2.2 retrieving revision 1.6.2.3 diff -C2 -d -r1.6.2.2 -r1.6.2.3 *** admin_pafiledb.php 15 Feb 2008 23:53:11 -0000 1.6.2.2 --- admin_pafiledb.php 8 Mar 2008 15:27:13 -0000 1.6.2.3 *************** *** 9,26 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! define( 'IN_PHPBB', 1 ); ! define( 'MXBB_MODULE', false ); // ! // Main paths // ! $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; // --- 9,64 ---- */ $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); ! ! $phpbb_root_path = $module_root_path = './../'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! ! require_once($mx_mod_path . "includes/functions_required.$phpEx"); ! ! @define('IN_PORTAL', true); ! ! //Check if forum_hack is installed ! if (!isset($mx_root_path)) ! { ! $mx_root_path = './../'; ! ! include_once($mx_mod_path . "includes/mx_constants.$phpEx"); ! include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); ! } ! ! require_once($mx_mod_path . "includes/functions_core.$phpEx"); ! ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! ! //@ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! //error_reporting(E_ALL & ~E_NOTICE); ! ! define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) // ! // Instatiate the mx_cache class // ! $mx_cache = new mx_cache(); ! ! // ! // instatiate the mx_request_vars class ! // ! $mx_request_vars = new mx_request_vars(); ! ! ! // ! // instatiate the mx_user class ! // ! //$mx_user = new mx_user(); // *************** *** 29,35 **** $setmodules_admin_path = ''; $setmodules_module_path = "./../"; ! ! require_once( $phpbb_root_path . 'extension.inc' ); ! require_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); } else --- 67,81 ---- $setmodules_admin_path = ''; $setmodules_module_path = "./../"; ! ! if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2 ! { ! define('PORTAL_BACKEND', 'phpbb2'); ! $tplEx = 'tpl'; ! } ! else if (@file_exists($phpbb_root_path."mcp.$phpEx")) // phpBB3 ! { ! define('PORTAL_BACKEND', 'phpbb3'); ! $tplEx = 'html'; ! } } else *************** *** 75,78 **** --- 121,142 ---- // require( $mx_root_path . '/admin/pagestart.' . $phpEx ); + + if ( !MXBB_MODULE ) + { + require_once($mx_mod_path . "includes/functions_styles.$phpEx"); + + $mx_user = new mx_user(); // instatiate the mx_user class + + // + // Define basic constants + // + $mx_user->page_id = 502; + $mx_user->user_ip = $user_ip; + $mx_user->_init_userprefs(); + $mx_user->set_module_cfg_name('pafiledb'); + $mx_user->set_module_lang_path($module_root_path . 'pafiledb/'); + $mx_user->extend(); + } + include( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); *************** *** 102,106 **** } } - // // Get action variable other wise set it to the main --- 166,169 ---- |
|
From: OryNider <ory...@us...> - 2008-03-08 15:27:35
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18254/templates/subSilver Added Files: Tag: core28x pafiledb.cfg Log Message: update for new mx_mod 2.8.2 --- NEW FILE: pafiledb.cfg --- <?php // // ** Configuration file for subSilver template ** // // ** copyright (C) 2001 The phpBB Group ** // ** Created by subBlue design ** // ** www.subBlue.com ** // // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id: pafiledb.cfg,v 1.1.2.1 2008/03/08 15:27:26 orynider Exp $ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- $current_template_images = PORTAL_URL . $current_template_path . "/images"; // ------------------------------------------------------------------------- // Define images // ------------------------------------------------------------------------- $mx_images['pa_search'] = "$current_template_images/{LANG}/icon_pa_search.gif"; $mx_images['pa_stats'] = "$current_template_images/{LANG}/icon_pa_stats.gif"; $mx_images['pa_toplist'] = "$current_template_images/{LANG}/icon_pa_toplist.gif"; $mx_images['pa_upload'] = "$current_template_images/{LANG}/icon_pa_upload.gif"; $mx_images['pa_viewall'] = "$current_template_images/{LANG}/icon_pa_viewall.gif"; $mx_images['pa_download'] = "$current_template_images/{LANG}/icon_pa_download.gif"; $mx_images['pa_rate'] = "$current_template_images/{LANG}/icon_pa_rate.gif"; $mx_images['pa_email'] = "$current_template_images/{LANG}/icon_pa_email.gif"; $mx_images['pa_comment_post'] = "$current_template_images/{LANG}/icon_pa_post_comment.gif"; $mx_images['pa_file_new'] = "$current_template_images/icon_pa_new.gif"; $mx_images['pa_icon_approve'] = $images['icon_approve']; // ?? ?? $mx_images['pa_icon_unapprove'] = $images['icon_unapprove']; // ?? ?? // ------------------------------------------------------------------------- // Redefine phpBB images // ------------------------------------------------------------------------- $mx_images['pa_icon_minipost'] = $images['icon_minipost']; $mx_images['pa_icon_edit'] = $images['icon_edit']; $mx_images['pa_icon_delpost'] = $images['icon_delpost']; $mx_images['pa_icon_latest_reply'] = $images['icon_latest_reply']; $mx_images['pa_folder'] = $images['folder']; $mx_images['pa_folder_new'] = $images['folder_new']; $mx_images['pa_folder_sticky'] = $images['folder_sticky']; $mx_images['pa_voting_graphic'] = $images['voting_graphic']; ?> |
|
From: OryNider <ory...@us...> - 2008-03-08 15:20:29
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/admin Modified Files: Tag: core28x admin_kb.php Log Message: upgrade for mx_mod 2.8.2 Index: admin_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb.php,v retrieving revision 1.5.2.2 retrieving revision 1.5.2.3 diff -C2 -d -r1.5.2.2 -r1.5.2.3 *** admin_kb.php 15 Feb 2008 23:46:26 -0000 1.5.2.2 --- admin_kb.php 8 Mar 2008 15:19:08 -0000 1.5.2.3 *************** *** 9,27 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! define( 'IN_PHPBB', 1 ); ! define( 'MXBB_MODULE', false ); // ! // Main paths // ! $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; // // Left Pane Paths --- 9,65 ---- */ $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); ! ! $phpbb_root_path = $module_root_path = './../'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! ! require_once($mx_mod_path . "includes/functions_required.$phpEx"); ! ! @define('IN_PORTAL', true); ! ! //Check if forum_hack is installed ! if (!isset($mx_root_path)) ! { ! $mx_root_path = './../'; ! ! include_once($mx_mod_path . "includes/mx_constants.$phpEx"); ! include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); ! } ! ! require_once($mx_mod_path . "includes/functions_core.$phpEx"); ! ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! ! //@ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! //error_reporting(E_ALL & ~E_NOTICE); ! ! define('PAGE_KB', -502); // If this id generates a conflict with other mods, change it ;) // ! // Instatiate the mx_cache class // ! $mx_cache = new mx_cache(); ! ! // ! // instatiate the mx_request_vars class ! // ! $mx_request_vars = new mx_request_vars(); ! + if( !is_object($mx_page)) + { + $mx_page = new mx_page(); + } + // // Left Pane Paths *************** *** 29,41 **** $setmodules_admin_path = ''; $setmodules_module_path = "./../"; ! ! require_once( $phpbb_root_path . 'extension.inc' ); ! require_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); ! require_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! ! // ! // instatiate the mx_request_vars class ! // ! $mx_request_vars = new mx_request_vars(); } else --- 67,81 ---- $setmodules_admin_path = ''; $setmodules_module_path = "./../"; ! ! if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2 ! { ! define('PORTAL_BACKEND', 'phpbb2'); ! $tplEx = 'tpl'; ! } ! else if (@file_exists($phpbb_root_path."mcp.$phpEx")) // phpBB3 ! { ! define('PORTAL_BACKEND', 'phpbb3'); ! $tplEx = 'html'; ! } } else *************** *** 48,52 **** // $mx_root_path = './../../../'; ! $module_root_path = $mx_root_path. 'modules/mx_kb/'; // --- 88,92 ---- // $mx_root_path = './../../../'; ! $module_root_path = './../../../modules/mx_kb/'; // *************** *** 59,67 **** define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); } if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); $module['KB_title']['1_Configuration'] = $setmodules_admin_path . $filename . "?action=settings"; --- 99,109 ---- define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); } + if ( !empty( $setmodules ) ) { + include_once( $setmodules_root_path . $setmodules_module_path . 'kb/includes/kb_constants.' . $phpEx ); + $filename = basename( __FILE__ ); $module['KB_title']['1_Configuration'] = $setmodules_admin_path . $filename . "?action=settings"; *************** *** 78,83 **** --- 120,144 ---- // require( $mx_root_path . 'admin/pagestart.' . $phpEx ); + + if ( !MXBB_MODULE ) + { + require_once($mx_mod_path . "includes/functions_styles.$phpEx"); + + $mx_user = new mx_user(); // instatiate the mx_user class + + // + // Define basic constants + // + $mx_user->page_id = 51; + $mx_user->user_ip = $user_ip; + $mx_user->_init_userprefs(); + $mx_user->set_module_cfg_name('kb'); + $mx_user->set_module_lang_path($module_root_path . 'kb/'); + $mx_user->extend(); + } + include( $module_root_path . 'kb/kb_common.' . $phpEx ); + // ********************************************************************** // Read language definition |
|
From: OryNider <ory...@us...> - 2008-03-08 15:19:57
|
Update of /cvsroot/mxbb/mx_kb/kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/kb Modified Files: Tag: core28x kb_common.php Log Message: upgrade for mx_mod 2.8.2 Index: kb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/kb_common.php,v retrieving revision 1.9.2.1 retrieving revision 1.9.2.2 diff -C2 -d -r1.9.2.1 -r1.9.2.2 *** kb_common.php 28 Jan 2008 03:09:28 -0000 1.9.2.1 --- kb_common.php 8 Mar 2008 15:19:21 -0000 1.9.2.2 *************** *** 64,68 **** // Include Files // =================================================== ! include_once( $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); // --- 64,68 ---- // Include Files // =================================================== ! require($module_root_path . 'kb/includes/kb_constants.'.$phpEx); // *************** *** 85,88 **** --- 85,89 ---- } + /* // ********************************************************************** // If phpBB mod read language definition *************** *** 104,107 **** --- 105,109 ---- // If phpBB mod read theme definition and language in theme definition // ********************************************************************** + if ( !MXBB_MODULE ) { *************** *** 168,183 **** // ------------------------------------------------------------------------- $current_template_images = $phpbb_root_path . $current_template_path . "/images"; - } ! if ( !(MXBB_MODULE) || ($images['kb_icon_edit'] == '') ) ! { ! if (!MXBB_MODULE) ! { ! @include($phpbb_root_path . $template_path . $template_name . '/' . 'kb.cfg'); ! } ! else ! { ! include($module_root_path . $mx_user->current_template_path . '/' . $mx_user->template_name . '.cfg'); ! } $img_lang = ( file_exists($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; --- 170,176 ---- // ------------------------------------------------------------------------- $current_template_images = $phpbb_root_path . $current_template_path . "/images"; ! @include($phpbb_root_path . $template_path . $template_name . '/' . 'kb.cfg'); ! $img_lang = ( file_exists($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; *************** *** 201,205 **** } } ! include_once( $module_root_path . 'kb/includes/functions.' . $phpEx ); include_once( $module_root_path . 'kb/includes/functions_auth.' . $phpEx ); --- 194,198 ---- } } ! */ include_once( $module_root_path . 'kb/includes/functions.' . $phpEx ); include_once( $module_root_path . 'kb/includes/functions_auth.' . $phpEx ); *************** *** 229,233 **** if ( $kb_config['wysiwyg'] ) // Html Textblock { ! if ( @file_exists($mx_root_path . $kb_config['wysiwyg_path'] . 'tinymce/jscripts/tiny_mce/tiny_mce.js') ) { $bbcode_on = false; --- 222,226 ---- if ( $kb_config['wysiwyg'] ) // Html Textblock { ! if ( file_exists( $mx_root_path . 'modules/mx_shared/tinymce/jscripts/tiny_mce/blank.htm' ) ) { $bbcode_on = false; |
|
From: OryNider <ory...@us...> - 2008-03-08 15:19:57
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/kb/includes Modified Files: Tag: core28x kb_constants.php Log Message: upgrade for mx_mod 2.8.2 Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_constants.php,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** kb_constants.php 28 Jan 2008 03:09:27 -0000 1.7.2.1 --- kb_constants.php 8 Mar 2008 15:19:19 -0000 1.7.2.2 *************** *** 33,37 **** // This file defines specific constants for the module // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -503 ); define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); --- 33,37 ---- // This file defines specific constants for the module // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -501 ); define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); *************** *** 61,70 **** if ( !MXBB_MODULE || MXBB_27x ) { ! $kb_module_version = "Knowledge Base MOD v. 2.1.0b"; ! $kb_module_author = "Haplo/Jon"; $kb_module_orig_author = "wGEric"; } else { if (is_object($mx_page)) { --- 61,82 ---- if ( !MXBB_MODULE || MXBB_27x ) { ! $kb_module_version = "Knowledge Base MOD v. 0.9.0"; ! $kb_module_author = "Jon Ohlsson"; $kb_module_orig_author = "wGEric"; + + if (!defined( 'IN_ADMIN' )) + { + $mx_user->set_module_cfg_name('kb'); + $mx_user->set_module_lang_path($module_root_path . 'kb/'); + $mx_user->extend(); + } } else { + if (!$_GET['print']) // Do not "fix" with reuest wrapper!! + { + $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x + } + if (is_object($mx_page)) { *************** *** 76,82 **** // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(MX_LANG_MAIN , MX_IMAGES); ! $mx_page->add_copyright( 'mxBB Knowledge Base Module' ); } } --- 88,94 ---- // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(); ! $mx_page->add_copyright('mxBB Knowledge Base Module'); } } |
|
From: OryNider <ory...@us...> - 2008-03-08 15:19:54
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829 Modified Files: Tag: core28x kb.php Added Files: Tag: core28x kb_install.php kb_uninstall.php Log Message: upgrade for mx_mod 2.8.2 Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.42.2.2 retrieving revision 1.42.2.3 diff -C2 -d -r1.42.2.2 -r1.42.2.3 *** kb.php 15 Feb 2008 23:46:26 -0000 1.42.2.2 --- kb.php 8 Mar 2008 15:19:12 -0000 1.42.2.3 *************** *** 13,24 **** if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define( 'MXBB_MODULE', false ); ! define( 'IN_PHPBB', true ); ! define( 'IN_PORTAL', true ); ! ! // When run as a phpBB mod these paths are identical ;) ! $phpbb_root_path = $module_root_path = $mx_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) --- 13,46 ---- if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); ! ! $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; + + include($phpbb_root_path . 'common.' . $phpEx); + include($mx_mod_path . "includes/functions_required.$phpEx"); + + //Check if forum_hack is installed + if (!isset($mx_root_path)) + { + $mx_root_path = './'; + @define('IN_PORTAL', true); + include_once($mx_mod_path . "includes/mx_constants.$phpEx"); + include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); + } + else + { + @define('IN_PORTAL', true); + include_once($mx_root_path . "includes/mx_constants.$phpEx"); + include_once($mx_root_path . "includes/shared/phpbb2/includes/functions.$phpEx"); + //Redefine mx_root_path to include phpbb page_tail.php + $mx_root_path = $phpbb_root_path; + } + + require($mx_mod_path . "includes/functions_core.$phpEx"); + require($mx_mod_path . "includes/functions_styles.$phpEx"); + //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) *************** *** 27,37 **** } ! include( $phpbb_root_path . 'common.' . $phpEx ); ! ! @ini_set( 'display_errors', '1' ); error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! ! include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); ! include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) --- 49,55 ---- } ! //@ini_set( 'display_errors', '1' ); error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! //error_reporting(E_ALL & ~E_NOTICE); define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) *************** *** 41,49 **** // $mx_cache = new mx_cache(); ! // // Get mxBB config settings // ! $portal_config = $mx_cache->obtain_mxbb_config(); // --- 59,67 ---- // $mx_cache = new mx_cache(); ! // // Get mxBB config settings // ! //$portal_config = $mx_cache->obtain_mxbb_config(); // *************** *** 51,85 **** // $mx_request_vars = new mx_request_vars(); $is_block = false; ! if ( file_exists("./modcp.$phpEx") ) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; ! include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); ! ! // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); ! init_userprefs( $userdata ); ! // End session management ! ! } ! else if ( @file_exists("./mcp.$phpEx") ) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; ! ! //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/bbcode.' . $phpEx ); ! //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/functions_post.' . $phpEx ); ! // ! // Start session management // ! $user->session_begin(); ! $userdata = $user->data; $user->setup(); // --- 69,117 ---- // $mx_request_vars = new mx_request_vars(); + + // + // Page selector + // + $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $is_block = false; + + // + // instatiate the mx_user class + // + $mx_user = new mx_user(); ! if (file_exists("./modcp.$phpEx")) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; + + // + // Start user session + // - populate $userdata and $lang + // + $mx_user->init($user_ip, $page_id, false); + //init_userprefs($userdata); + $mx_user->init_style(); //Overwrite template class ! /* ! $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x ! if (!$userdata['user_level'] == ADMIN) ! { ! die('Only admins may run this script!!!'); ! } ! */ ! } ! else if (@file_exists("./mcp.$phpEx")) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; ! // ! // Start user session ! // - populate $userdata and $lang // ! $mx_user->init($user_ip, $page_id, false); $user->setup(); // *************** *** 87,94 **** // ! // ! // Get phpBB config settings ! // ! $board_config = $config; } else --- 119,129 ---- // ! /* ! $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x ! if ($userdata['user_type'] != USER_FOUNDER) ! { ! die('Only admins may run this script!!!'); ! } ! */ } else *************** *** 120,124 **** $mx_get_page->init('kb.php'); ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; $url = ''; --- 155,159 ---- $mx_get_page->init('kb.php'); ! $start = ( isset( $_GET['start'] ) ) ? intval( $_GET['start'] ) : 0; $url = ''; *************** *** 132,136 **** } ! if (isset($HTTP_GET_VARS['print'])) { $url .= '&print=true'; --- 167,171 ---- } ! if (isset($_GET['print'])) { $url .= '&print=true'; *************** *** 196,200 **** $is_block = true; ! global $images, $mx_images; } define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); --- 231,235 ---- $is_block = true; ! global $images; } define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); *************** *** 215,230 **** // Get mode variables, otherwise set it to the main // =================================================== ! if ( !MXBB_MODULE ) ! { ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! //$mode = ( isset( $_REQUEST['mode'] ) ) ? htmlspecialchars( $_REQUEST['mode'] ) : 'main'; ! $print_version = ( isset( $_REQUEST['print'] ) ) ? htmlspecialchars( $_REQUEST['print'] ) : ''; ! } ! else ! { ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! $print_version = $mx_request_vars->is_request('print', MX_TYPE_NO_TAGS, ''); ! } ! $kb_config['reader_mode'] = false; --- 250,255 ---- // Get mode variables, otherwise set it to the main // =================================================== ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! $print_version = $mx_request_vars->is_request('print'); $kb_config['reader_mode'] = false; *************** *** 326,329 **** include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } - ?> \ No newline at end of file --- 351,353 ---- --- NEW FILE: kb_install.php --- <?php /** * * @package phpBB Mod - Knowledge Base * @version $Id: kb_install.php,v 1.1.2.1 2008/03/08 15:19:15 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); define( 'IN_PHPBB', true ); $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; include($phpbb_root_path . 'common.' . $phpEx); include($mx_mod_path . "includes/functions_required.$phpEx"); //Check if forum_hack is installed if (!isset($mx_root_path)) { $mx_root_path = './'; @define('IN_PORTAL', true); include_once($mx_mod_path . "includes/mx_constants.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); } else { @define('IN_PORTAL', true); include_once($mx_root_path . "includes/mx_constants.$phpEx"); include_once($mx_root_path . "includes/shared/phpbb2/includes/functions.$phpEx"); } require($mx_mod_path . "includes/functions_core.$phpEx"); require($mx_mod_path . "includes/functions_styles.$phpEx"); //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); } //@ini_set( 'display_errors', '1' ); error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables //error_reporting(E_ALL & ~E_NOTICE); define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) // // Instatiate the mx_cache class // $mx_cache = new mx_cache(); // // Get mxBB config settings // //$portal_config = $mx_cache->obtain_mxbb_config(); // // instatiate the mx_request_vars class // $mx_request_vars = new mx_request_vars(); // // Page selector // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $is_block = false; // // instatiate the mx_user class // $mx_user = new mx_user(); if (file_exists("./modcp.$phpEx")) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); init_userprefs($userdata); $mx_user->set_module_default_style('prosilver'); // For compatibility with core 2.8.x if (!$userdata['user_level'] == ADMIN) { die('Only admins may run this script!!!'); } } else if (@file_exists("./mcp.$phpEx")) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); $user->setup(); // // End session management // $mx_user->set_module_default_style('prosilver'); // For compatibility with core 2.8.x if ($userdata['user_type'] != USER_FOUNDER) { die('Only admins may run this script!!!'); } } else { die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!'); } } else // --------------------------------------------------------------------------------- mxBB Module MODE { define( 'MXBB_MODULE', true ); if ( !function_exists( 'read_block_config' ) ) { define( 'IN_PORTAL', true ); $mx_root_path = './../../'; $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); } else { if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings (default mode) // $title = !empty( $mx_block->block_info['block_title'] ) ? $mx_block->block_info['block_title'] : $lang['KB_title']; $desc = $mx_block->block_info['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); } $is_block = true; global $images; } define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); } // // Check if mx_common Mod is prezent // if (!file_exists($mx_mod_path . "includes/functions_admincp.$phpEx")) { die('mx mod is not uploaded!!!'); } else { require($mx_mod_path . "includes/functions_admincp.$phpEx"); } $page_title = 'Installing/Upgrading Knowledge Base'; include($phpbb_root_path . 'includes/page_header.'.$phpEx); $sql = array(); // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $table_prefix . "kb_config" ) ) { $message = "<b>This is a fresh install!</b><br/><br/>"; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_articles "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_categories "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_config "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_types "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_wordlist "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_results "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_wordmatch "; $sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "kb_votes "; $sql[] = "CREATE TABLE " . $table_prefix . "kb_categories ( category_id int(10) NOT NULL auto_increment, category_name text, category_details text, parent int(50) default NULL, parents_data text NOT NULL default '', cat_order int(50) default NULL, cat_allow_file tinyint(2) NOT NULL default '1', cat_allow_comments tinyint(2) NOT NULL default '-1', internal_comments tinyint(2) NOT NULL default '-1', autogenerate_comments tinyint(2) NOT NULL default '-1', comments_forum_id mediumint(8) NOT NULL default '-1', cat_allow_ratings tinyint(2) NOT NULL default '-1', show_pretext tinyint(2) NOT NULL default '-1', notify tinyint(2) NOT NULL default '-1', notify_group mediumint(8) NOT NULL default '-1', number_articles mediumint(8) NOT NULL default '-1', cat_last_article_id mediumint(8) unsigned NOT NULL default '0', cat_last_article_name varchar(255) NOT NULL default '', cat_last_article_time INT(50) UNSIGNED DEFAULT '0' NOT NULL, auth_view tinyint(3) NOT NULL DEFAULT '0', auth_post tinyint(3) NOT NULL DEFAULT '0', auth_rate tinyint(3) NOT NULL DEFAULT '0', auth_view_comment tinyint(3) NOT NULL DEFAULT '0', auth_post_comment tinyint(3) NOT NULL DEFAULT '0', auth_edit_comment tinyint(3) NOT NULL DEFAULT '0', auth_delete_comment tinyint(3) NOT NULL DEFAULT '2', auth_edit tinyint(3) NOT NULL DEFAULT '0', auth_delete tinyint(3) NOT NULL DEFAULT '2', auth_approval tinyint(3) NOT NULL DEFAULT '0', auth_approval_edit tinyint(3) NOT NULL DEFAULT '0', auth_view_groups varchar(255) NOT NULL default '0', auth_post_groups varchar(255) NOT NULL default '0', auth_rate_groups varchar(255) NOT NULL default '0', auth_view_comment_groups varchar(255) NOT NULL default '0', auth_post_comment_groups varchar(255) NOT NULL default '0', auth_edit_comment_groups varchar(255) NOT NULL default '0', auth_delete_comment_groups varchar(255) NOT NULL default '0', auth_edit_groups varchar(255) NOT NULL default '0', auth_delete_groups varchar(255) NOT NULL default '0', auth_approval_groups varchar(255) NOT NULL default '0', /* not really used */ auth_approval_edit_groups varchar(255) NOT NULL default '0', /* not really used */ auth_moderator_groups varchar(255) NOT NULL default '0', PRIMARY KEY (category_id), KEY cat_order (cat_order) )"; $sql[] = "INSERT INTO " . $table_prefix . "kb_categories VALUES (1, 'Test Category', 'Just a test category', '0', '10', '-1', '-1','-1','-1','-1','-1','-1','-1', '-1', '0', '', '0', '0', '0', '0', '0', '0', '0', '2', '0', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' )"; $sql[] = "CREATE TABLE " . $table_prefix . "kb_articles ( article_id mediumint(8) unsigned NOT NULL auto_increment, article_title varchar(255) binary NOT NULL default '', article_description varchar(255) binary NOT NULL default '', article_category_id mediumint(8) unsigned NOT NULL default '0', approved tinyint(1) unsigned NOT NULL default '0', article_body text NOT NULL, bbcode_uid varchar(10) binary NOT NULL default '', article_type mediumint(8) unsigned NOT NULL default '0', article_date int(50) default NULL, article_author_id mediumint(8) NOT NULL, username VARCHAR(255), topic_id mediumint(8) unsigned NOT NULL default '0', views BIGINT(8) NOT NULL DEFAULT '0', PRIMARY KEY (article_id) )"; $sql[] = "CREATE TABLE " . $table_prefix . "kb_config ( config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) )"; // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_comments ( comments_id int(10) NOT NULL auto_increment, article_id int(10) NOT NULL default '0', comments_text text NOT NULL, comments_title text NOT NULL, comments_time int(50) NOT NULL default '0', comment_bbcode_uid varchar(10) default NULL, poster_id mediumint(8) NOT NULL default '0', PRIMARY KEY (comments_id), KEY comments_id (comments_id), FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) )"; $sql[] = "CREATE TABLE " . $table_prefix . "kb_types ( id mediumint(8) unsigned NOT NULL auto_increment, type varchar(255) binary DEFAULT '' NOT NULL, KEY id (id) )"; $sql[] = "INSERT INTO " . $table_prefix . "kb_types VALUES (1, 'Test Type 1')"; $sql[] = "CREATE TABLE " . $table_prefix . "kb_votes ( user_id mediumint(8) NOT NULL default '0', votes_ip varchar(50) NOT NULL default '0', votes_article int(50) NOT NULL default '0', rate_point tinyint(3) unsigned NOT NULL default '0', KEY user_id (user_id) )"; // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_custom ( custom_id int(50) NOT NULL auto_increment, custom_name text NOT NULL, custom_description text NOT NULL, data text NOT NULL, field_order int(20) NOT NULL default '0', field_type tinyint(2) NOT NULL default '0', regex varchar(255) NOT NULL default '', PRIMARY KEY (custom_id) )"; // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_customdata ( customdata_file int(50) NOT NULL default '0', customdata_custom int(50) NOT NULL default '0', data text NOT NULL )"; // // Insert Configs // // General $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('enable_module', '1')"; // allow_new $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('module_name', 'Knowledge Base')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('wysiwyg_path', 'mx_mod/mx_shared/')"; // Articles $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_wordwrap', '1')"; // formatting_fixup $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_image_resize', '300')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_truncate_links', '1')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_wysiwyg', '0')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_html', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_bbcode', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_smilies', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allowed_html_tags', 'b,i,u,a')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_images', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_image_message', '[No image please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_link_message', '[No links please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_subject_chars', '100')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_desc_chars', '500')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_chars', '0')"; // NEW // Appearance $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('sort_method', 'Alphabetic')"; // news_sort $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('sort_order', 'ASC')"; // news_sort_par $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('pagination', '10')"; // art_pagination $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('stats_list', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('header_banner', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('use_simple_navigation', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('cat_col', '2')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('settings_newdays', '1')"; // Comments $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('use_comments', '0')"; // comments_show $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('internal_comments', '1')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_wordwrap', '1')"; // formatting_comment_fixup $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_image_resize', '300')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_truncate_links', '1')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_comment_subject_chars', '50')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_comment_chars', '5000')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_wysiwyg', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_html', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_bbcode', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_smilies', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_images', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_comment_image_message', '[No image please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_comment_link_message', '[No links please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allowed_comment_html_tags', 'b,i,u,a')"; // NEW $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('del_topic', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('autogenerate_comments', '1')"; // bump_post $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_pagination', '5')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_forum_id', '1')"; // New // Ratings $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('use_ratings', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('votes_check_userid', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('votes_check_ip', '1')"; // Instructions $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('show_pretext',0)"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('pt_header','Article Submission Instructions')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config values ('pt_body','Please check your references and include as much information as you can.')"; // Notifications $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('notify', 'pm')"; // updated $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('notify_group', '0')"; // admin_id $message .= mx_do_install_upgrade( $sql ); } else { // Upgrade checks $upgrade_101 = 0; $upgrade_102 = 0; $upgrade_103 = 0; $upgrade_104 = 0; $upgrade_105 = 0; $upgrade_106 = 0; $upgrade_107 = 0; $upgrade_108 = 0; $upgrade_109 = 0; $upgrade_200 = 0; $upgrade_201 = 0; $upgrade_202 = 0; $upgrade_280 = 0; // mxBB 2.8 branch -> $message = "<b>Upgrading!</b><br/><br/>"; // validate before 1.05 $result = $db->sql_query( "SELECT config_value from " . $table_prefix . "kb_config WHERE config_name = 'header_banner'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_105 = 1; $message .= "<b>Upgrading to v. 1.05...</b><br/><br/>"; } else { $message .= "<b>Validating v. 1.05...ok</b><br/><br/>"; } // validate before 1.06 if ( !$result = $db->sql_query( "SELECT votes_userid from " . $table_prefix . "kb_votes" ) ) { $upgrade_106 = 1; $message .= "<b>Validating v. 1.06...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 1.06...ok</b><br/><br/>"; } // validate before 1.07 $result = $db->sql_query( "SELECT config_value from " . $table_prefix . "kb_config WHERE config_name = 'comments_pagination'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_107 = 1; $message .= "<b>Validating v. 1.07...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 1.07...ok</b><br/><br/>"; } // validate before 1.08 $result = $db->sql_query( "SELECT parameter_id from " . $table_prefix . "parameter WHERE parameter_name = 'kb_type_select'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_108 = 1; $message .= "<b>Validating v. 1.08...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 1.08...ok</b><br/><br/>"; } // validate before 1.09 if ( !$result = $db->sql_query( "SELECT auth_edit_groups from " . $table_prefix . "kb_categories" ) ) { $upgrade_109 = 1; $message .= "<b>Upgrading to v. 1.09...</b><br/><br/>"; } else { $message .= "<b>Validating v. 1.09...ok</b><br/><br/>"; } // validate before 2.00 if ( !$result = $db->sql_query( "SELECT custom_id from " . $table_prefix . "kb_custom" ) ) { $upgrade_200 = 1; $message .= "<b>Upgrading to v. 2.00...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 2.00...ok</b><br/><br/>"; } // validate before 2.01 $result = $db->sql_query( "SELECT config_value from " . $table_prefix . "kb_config WHERE config_name = 'wysiwyg_path'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_201 = 1; $message .= "<b>Upgrading to v. 2.01...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 2.01...ok</b><br/><br/>"; } $upgrade_202 = 1; $message .= "<b>Upgrading to v. 2.02...ok</b><br/><br/>"; // validate before 2.0.3 $result = $db->sql_query( "SELECT config_value from " . $table_prefix . "kb_config WHERE config_name = 'internal_comments'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_203 = 1; $message .= "<b>Upgrading to v. 2.0.3...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 2.0.3...ok</b><br/><br/>"; } // validate before 2.8.0 $result = $db->sql_query( "SELECT config_value from " . $table_prefix . "kb_config WHERE config_name = 'comments_forum_id'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_280 = 1; $message .= "<b>Upgrading to v. 2.8.0...ok</b><br/><br/>"; } else { $message .= "<b>Validating v. 2.8.0...ok</b><br/><br/>"; } // ------------------------------------------------------------------------------------------------------ if ( $upgrade_105 == 1 ) { $sql[] = "CREATE TABLE " . $table_prefix . "kb_votes ( votes_ip varchar(50) NOT NULL default '0', votes_file int(50) NOT NULL default '0' ) TYPE=MyISAM"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_rating', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_anonymos_rating', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_show', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('mod_group', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('bump_post', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('stats_list', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('header_banner', '1')"; $sql[] = "ALTER TABLE " . $table_prefix . "kb_articles ADD article_rating double(6,4) NOT NULL default '0.0000' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_articles ADD article_totalvotes int(255) NOT NULL default '0' "; } if ( $upgrade_106 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('votes_check_userid', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('votes_check_ip', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('art_pagination', '5')"; $sql[] = "ALTER TABLE " . $table_prefix . "kb_votes ADD votes_userid int(50) NOT NULL default '0' AFTER votes_ip "; } if ( $upgrade_107 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_pagination', '5')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('news_sort', 'Alphabetic')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('news_sort_par', 'ASC')"; } if ( $upgrade_108 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_pagination', '5')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('news_sort', 'Alphabetic')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('news_sort_par', 'ASC')"; } if ( $upgrade_109 == 1 ) { $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_view tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_post tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_rate tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_comment tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_edit tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_delete tinyint(3) NOT NULL DEFAULT '2' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_approval tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_approval_edit tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_view_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_post_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_rate_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_comment_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_edit_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_delete_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_approval_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_approval_edit_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_moderator_groups varchar(255) "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD comments_forum_id tinyint(3) NOT NULL DEFAULT '-1' "; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'use_comments', config_value = '1' WHERE config_name = 'comments'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'use_ratings', config_value = '1' WHERE config_name = 'allow_rating'"; } if ( $upgrade_200 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('wysiwyg', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_html', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_bbcode', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_smilies', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allowed_html_tags', 'b,i,u,a')"; // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_custom ( custom_id int(50) NOT NULL auto_increment, custom_name text NOT NULL, custom_description text NOT NULL, data text NOT NULL, field_order int(20) NOT NULL default '0', field_type tinyint(2) NOT NULL default '0', regex varchar(255) NOT NULL default '', PRIMARY KEY (custom_id) )"; // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_customdata ( customdata_file int(50) NOT NULL default '0', customdata_custom int(50) NOT NULL default '0', data text NOT NULL )"; } if ( $upgrade_201 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('wysiwyg_path', 'modules/')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_fixup', '0')"; $sql[] = "ALTER TABLE " . $table_prefix . "kb_articles MODIFY article_author_id mediumint(8) NOT NULL "; } if ( $upgrade_202 == 1 ) // Old fix for those upgraded from old old version { // Upgrade the config table to avoid duplicate entries $sql[] = "ALTER TABLE " . $table_prefix . "kb_config MODIFY config_name VARCHAR(255) NOT NULL default '' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_config MODIFY config_value VARCHAR(255) NOT NULL default '' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_config DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) "; } if ( $upgrade_203 == 1 ) { // -------------------------------------------------------- $sql[] = "CREATE TABLE " . $table_prefix . "kb_comments ( comments_id int(10) NOT NULL auto_increment, article_id int(10) NOT NULL default '0', comments_text text NOT NULL, comments_title text NOT NULL, comments_time int(50) NOT NULL default '0', comment_bbcode_uid varchar(10) default NULL, poster_id mediumint(8) NOT NULL default '0', PRIMARY KEY (comments_id), KEY comments_id (comments_id), FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) )"; // Config table $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'enable_module' WHERE config_name = 'allow_new'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'pagination' WHERE config_name = 'art_pagination'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'sort_method' WHERE config_name = 'news_sort'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'sort_order' WHERE config_name = 'news_sort_par'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'autogenerate_comments' WHERE config_name = 'bump_post'"; $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_name = 'notify_group' WHERE config_name = 'admin_id'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'comments_show'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'wysiwyg'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'wysiwyg_comments'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'allow_wysiwyg_comments'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'allow_wysiwyg'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'formatting_fixup'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'formatting_comment_fixup'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'approve_new'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'approve_edit'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'allow_edit'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'allow_anon'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'forum_id'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'allow_anonymos_rating'"; $sql[] = "DELETE FROM " . $table_prefix . "kb_config" . " WHERE config_name = 'mod_group'"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('module_name', 'Knowledge Base')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_wysiwyg', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_images', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_image_message', '[No image please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_link_message', '[No links please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_wordwrap', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_image_resize', '300')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_truncate_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_subject_chars', '100')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_desc_chars', '500')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_chars', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('internal_comments', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_wordwrap', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_image_resize', '300')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('formatting_comment_truncate_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_comment_subject_chars', '50')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('max_comment_chars', '5000')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allowed_comment_html_tags', 'b,i,u,a')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_wysiwyg', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_html', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_bbcode', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_smilies', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_links', '1')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('allow_comment_images', '0')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_comment_image_message', '[No image please]')"; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('no_comment_link_message', '[No links please]')"; // Categories table $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_allow_comments tinyint(2) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD internal_comments tinyint(2) NOT NULL DEFAULT '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD autogenerate_comments tinyint(2) NOT NULL DEFAULT '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD comments_forum_id mediumint(8) NOT NULL DEFAULT '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_allow_ratings tinyint(2) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD show_pretext tinyint(2) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD notify tinyint(2) NOT NULL DEFAULT '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD notify_group mediumint(8) NOT NULL DEFAULT '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_last_article_id mediumint(8) unsigned NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_last_article_name varchar(255) NOT NULL default '' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_last_article_time INT(50) UNSIGNED DEFAULT '0' NOT NULL "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_view_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_post_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_rate_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_comment_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_edit_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_delete_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_approval_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_approval_edit_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY auth_moderator_groups varchar(255) NOT NULL default '0' "; // Number of articles can be -1 when syncing $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY number_articles mediumint(8) NOT NULL"; // // Drop unused tables // $sql[] = "DROP TABLE " . $table_prefix . "kb_wordlist "; $sql[] = "DROP TABLE " . $table_prefix . "kb_results "; $sql[] = "DROP TABLE " . $table_prefix . "kb_wordmatch "; // // New // $sql[] = "UPDATE " . $table_prefix . "kb_config" . " SET config_value = 'modules/mx_shared/' WHERE config_name = 'wysiwyg_path'"; } if ( $upgrade_280 == 1 ) { $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('comments_forum_id', '1')"; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY cat_allow_comments tinyint(2) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY notify_group mediumint(8) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY number_articles mediumint(8) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY category_id int(10) NOT NULL auto_increment "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY category_name text "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY category_details text "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY parent int(50) default NULL "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD parents_data text NOT NULL default '' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD cat_allow_file tinyint(2) NOT NULL default '1' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories MODIFY cat_order int(50) default NULL "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories CHANGE auth_comment auth_view_comment tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_post_comment tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_edit_comment tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_delete_comment tinyint(3) NOT NULL DEFAULT '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories CHANGE auth_comment_groups auth_view_comment_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_post_comment_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_edit_comment_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_categories ADD auth_delete_comment_groups varchar(255) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_votes ADD rate_point tinyint(3) unsigned NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_votes CHANGE votes_userid user_id mediumint(8) NOT NULL default '0' "; $sql[] = "ALTER TABLE " . $table_prefix . "kb_votes CHANGE votes_file votes_article int(50) NOT NULL default '0' "; // Appearance $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('use_simple_navigation', '1') "; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('cat_col', '2') "; $sql[] = "INSERT INTO " . $table_prefix . "kb_config VALUES ('settings_newdays', '1') "; // Delete kb_article table article_rating and article_totalvotes } else { $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } $message .= mx_do_install_upgrade( $sql ); // // Empty module cache // include_once( $mx_mod_path . 'includes/functions_tools.' . $phpEx ); $module_cache = new module_cache($phpbb_root_path . 'kb/'); $module_cache->tidy(); $module_cache->save(); } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Mod Installation/Upgrading/Uninstalling Information - mod specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?> --- NEW FILE: kb_uninstall.php --- <?php /** * * @package phpBB2 Mod - pafileDB * @version $Id: kb_uninstall.php,v 1.1.2.1 2008/03/08 15:19:18 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); define( 'IN_PHPBB', true ); $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; include($phpbb_root_path . 'common.' . $phpEx); include($mx_mod_path . "includes/functions_required.$phpEx"); //Check if forum_hack is installed if (!isset($mx_root_path)) { $mx_root_path = './'; @define('IN_PORTAL', true); include_once($mx_mod_path . "includes/mx_constants.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); } else { @define('IN_PORTAL', true); include_once($mx_root_path . "includes/mx_constants.$phpEx"); include_once($mx_root_path . "includes/shared/phpbb2/includes/functions.$phpEx"); } require($mx_mod_path . "includes/functions_core.$phpEx"); require($mx_mod_path . "includes/functions_styles.$phpEx"); //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); } //@ini_set( 'display_errors', '1' ); error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables //error_reporting(E_ALL & ~E_NOTICE); define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) // // Instatiate the mx_cache class // $mx_cache = new mx_cache(); // // Get mxBB config settings // //$portal_config = $mx_cache->obtain_mxbb_config(); // // instatiate the mx_request_vars class // $mx_request_vars = new mx_request_vars(); // // Page selector // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $is_block = false; // // instatiate the mx_user class // $mx_user = new mx_user(); if (file_exists("./modcp.$phpEx")) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); init_userprefs($userdata); $mx_user->set_module_default_style('prosilver'); // For compatibility with core 2.8.x if (!$userdata['user_level'] == ADMIN) { die('Only admins may run this script!!!'); } } else if (@file_exists("./mcp.$phpEx")) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); $user->setup(); // // End session management // $mx_user->set_module_default_style('prosilver'); // For compatibility with core 2.8.x if ($userdata['user_type'] != USER_FOUNDER) { die('Only admins may run this script!!!'); } } else { die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!'); } } else // --------------------------------------------------------------------------------- mxBB Module MODE { define( 'MXBB_MODULE', true ); if ( !function_exists( 'read_block_config' ) ) { define( 'IN_PORTAL', true ); $mx_root_path = './../../'; $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); } else { if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings (default mode) // $title = !empty( $mx_block->block_info['block_title'] ) ? $mx_block->block_info['block_title'] : $lang['KB_title']; $desc = $mx_block->block_info['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); } $is_block = true; global $images; } define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); } // // Check if mx_common Mod is prezent // if (!file_exists($mx_mod_path . "includes/functions_admincp.$phpEx")) { die('mx mod is not uploaded!!!'); } else { require($mx_mod_path . "includes/functions_admincp.$phpEx"); } $page_title = 'Uninstalling Knowledge Base'; include($phpbb_root_path . 'includes/page_header.'.$phpEx); $sql = array( "DROP TABLE " . $table_prefix . "kb_articles ", "DROP TABLE " . $table_prefix . "kb_categories ", "DROP TABLE " . $table_prefix . "kb_config ", "DROP TABLE " . $table_prefix . "kb_types ", //"DROP TABLE " . $table_prefix . "kb_wordlist ", //"DROP TABLE " . $table_prefix . "kb_results ", //"DROP TABLE " . $table_prefix . "kb_wordmatch ", "DROP TABLE " . $table_prefix . "kb_votes ", "DROP TABLE " . $table_prefix . "kb_custom ", "DROP TABLE " . $table_prefix . "kb_comments ", "DROP TABLE " . $table_prefix . "kb_customdata " ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Mod Installation/Upgrading/Uninstalling Information - mod specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?> |
|
From: OryNider <ory...@us...> - 2008-03-08 15:19:48
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/templates/subSilver Added Files: Tag: core28x kb.cfg Log Message: upgrade for mx_mod 2.8.2 --- NEW FILE: kb.cfg --- <?php // // ** Configuration file for subSilver template ** // // ** copyright (C) 2001 The phpBB Group ** // ** Created by subBlue design ** // ** www.subBlue.com ** // // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id: kb.cfg,v 1.1.2.1 2008/03/08 15:19:42 orynider Exp $ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- // $current_template_images = PHPBB_URL . $current_template_path . "/images"; // ------------------------------------------------------------------------- // Define images // ------------------------------------------------------------------------- $mx_images['kb_icon_approve'] = "$current_template_images/icon_approve.gif"; $mx_images['kb_icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; $mx_images['kb_title'] = "$current_template_images/{LANG}/kb.gif"; $mx_images['kb_search'] = "$current_template_images/{LANG}/icon_kb_search.gif"; $mx_images['kb_stats'] = "$current_template_images/{LANG}/icon_kb_stats.gif"; $mx_images['kb_toplist'] = "$current_template_images/{LANG}/icon_kb_toplist.gif"; $mx_images['kb_upload'] = "$current_template_images/{LANG}/icon_kb_post.gif"; $mx_images['kb_rate'] = "$current_template_images/{LANG}/icon_kb_rate.gif"; $mx_images['kb_comment_post'] = "$current_template_images/{LANG}/icon_kb_post_comment.gif"; // // Article and Category lists // $mx_images['kb_article'] = $images['icon_minipost']; // Article Row //$mx_images['kb_article'] = $mx_root_path . $images['mx_graphics']['menu_icons'] . '/' ."icon_message.gif"; // Article Row $mx_images['kb_article_new'] = $images['icon_minipost_new']; // Article Row //$mx_images['kb_article_new'] = $mx_root_path . $images['mx_graphics']['menu_icons'] . '/' ."icon_message_hot.gif"; // Article Row $mx_images['kb_category'] = $images['folder']; // Category Row $mx_images['kb_category_new'] = $images['folder_new']; // Category Row // ------------------------------------------------------------------------- // Redefine phpBB images (Commenting) // ------------------------------------------------------------------------- $mx_images['kb_icon_minipost'] = $images['icon_minipost']; $mx_images['kb_icon_edit'] = $images['icon_edit']; $mx_images['kb_icon_delpost'] = $images['icon_delpost']; $mx_images['kb_icon_reply'] = $images['icon_reply']; $mx_images['kb_folder'] = $images['folder']; $mx_images['kb_folder_sticky'] = $images['folder_sticky']; $mx_images['kb_folder_announce'] = $images['folder_announce']; $mx_images['kb_icon_newest_reply'] = $images['icon_newest_reply']; // // Last Article block // $mx_images['kb_last_article_folder'] = $images['folder']; $mx_images['kb_icon_latest_reply'] = $images['icon_latest_reply']; ?> |
|
From: OryNider <ory...@us...> - 2008-03-08 15:19:47
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver/images/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/templates/subSilver/images/lang_romanian Added Files: Tag: core28x icon_kb_post.gif icon_kb_post_comment.gif icon_kb_rate.gif icon_kb_search.gif icon_kb_stats.gif icon_kb_toplist.gif index.htm kb.gif Log Message: upgrade for mx_mod 2.8.2 --- NEW FILE: icon_kb_post.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_search.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_post_comment.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_rate.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_stats.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_toplist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: kb.gif --- (This appears to be a binary file; contents omitted.) --- 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> |
|
From: OryNider <ory...@us...> - 2008-03-08 15:18:18
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver/images/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4657/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_kb/templates/subSilver/images/lang_romanian added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-03-08 08:29:26
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28609 Modified Files: mx_functions_style.php Log Message: see the forum about this two functions Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** mx_functions_style.php 8 Mar 2008 07:00:42 -0000 1.58 --- mx_functions_style.php 8 Mar 2008 08:29:20 -0000 1.59 *************** *** 487,490 **** --- 487,491 ---- define('MX_IMAGES' , 50); define('MX_IMAGES_NONE' , 60); + define('MX_LANG_CUSTOM' , 70); /**#@-*/ *************** *** 1274,1277 **** --- 1275,1289 ---- @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $this->default_template_name . '.cfg'); } + + // + // If use default template with difrent modules config file name + // + if ( (!$mx_template_config) && !empty($this->module_cfg_name[$module_root_path])) + { + $current_template_path = $module_root_path . $this->default_current_template_path; + $template_name = $this->default_template_name; + + @include($module_root_path . $this->default_current_template_path . '/' . $this->module_cfg_name[$module_root_path] . '.cfg'); + } // *************** *** 1331,1340 **** if ($lang_mode == MX_LANG_MAIN || $lang_mode == MX_LANG_ALL) { // ------------------------------------------------------------------------- // Read Module Main Language Definition // ------------------------------------------------------------------------- ! if ((@include $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) { ! if ((@include $mx_root_path . $mx_block->module_root_path . "language/lang_english/lang_main.$phpEx") === false) { mx_message_die(CRITICAL_ERROR, 'Module main language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); --- 1343,1361 ---- if ($lang_mode == MX_LANG_MAIN || $lang_mode == MX_LANG_ALL) { + if (!empty($this->module_lang_path[$mx_block->module_root_path])) + { + $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; + } + else + { + $module_lang_path = $mx_root_path . $mx_block->module_root_path; + } + // ------------------------------------------------------------------------- // Read Module Main Language Definition // ------------------------------------------------------------------------- ! if ((@include $module_lang_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) { ! if ((@include $module_lang_path . "language/lang_english/lang_main.$phpEx") === false) { mx_message_die(CRITICAL_ERROR, 'Module main language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); *************** *** 1348,1354 **** // Read Module Admin Language Definition // ------------------------------------------------------------------------- ! if ((@include $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx") === false) { ! if ((@include $mx_root_path . $mx_block->module_root_path . "language/lang_english/lang_admin.$phpEx") === false) { mx_message_die(CRITICAL_ERROR, 'Modiule admin language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx" . ' couldn\'t be opened.'); --- 1369,1375 ---- // Read Module Admin Language Definition // ------------------------------------------------------------------------- ! if ((@include $module_lang_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx") === false) { ! if ((@include $module_lang_path . "language/lang_english/lang_admin.$phpEx") === false) { mx_message_die(CRITICAL_ERROR, 'Modiule admin language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx" . ' couldn\'t be opened.'); *************** *** 1687,1690 **** --- 1708,1725 ---- $this->loaded_default_styles[$mx_block->module_root_path] = $default_module_style; } + + function set_module_cfg_name($module_cfg_name = '') + { + global $mx_block; + + $this->module_cfg_name[$mx_block->module_root_path] = $module_cfg_name; + } + + function set_module_lang_path($module_lang_path = '') + { + global $mx_block; + + $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; + } } // class mx_user ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-08 08:29:26
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28025 Modified Files: Tag: core28x mx_functions_style.php Log Message: I will post this modification to forums Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.19 retrieving revision 1.17.2.20 diff -C2 -d -r1.17.2.19 -r1.17.2.20 *** mx_functions_style.php 8 Mar 2008 02:53:55 -0000 1.17.2.19 --- mx_functions_style.php 8 Mar 2008 08:28:34 -0000 1.17.2.20 *************** *** 773,776 **** --- 773,787 ---- @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $this->default_template_name . '.cfg'); } + + // + // If use default template with difrent modules config file name + // + if ( (!$mx_template_config) && !empty($this->module_cfg_name[$module_root_path])) + { + $current_template_path = $module_root_path . $this->default_current_template_path; + $template_name = $this->default_template_name; + + @include($module_root_path . $this->default_current_template_path . '/' . $this->module_cfg_name[$module_root_path] . '.cfg'); + } // *************** *** 818,835 **** global $lang, $board_config, $mx_block, $phpEx, $mx_root_path; if (!isset($this->loaded_langs[$mx_block->module_root_path])) { if ($lang_mode == MX_LANG_MAIN || $lang_mode == MX_LANG_ALL) { ! // ------------------------------------------------------------------------- ! // Read Module Main Language Definition ! // ------------------------------------------------------------------------- ! if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } else { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } } --- 829,862 ---- global $lang, $board_config, $mx_block, $phpEx, $mx_root_path; + $default_lang = ($this->lang['default_lang']) ? $this->lang['default_lang'] : $board_config['default_lang']; + + if (empty($default_lang)) + { + // - populate $default_lang + $default_lang= 'english'; + } + if (!isset($this->loaded_langs[$mx_block->module_root_path])) { if ($lang_mode == MX_LANG_MAIN || $lang_mode == MX_LANG_ALL) { ! if (!empty($this->module_lang_path[$mx_block->module_root_path])) { ! $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; } else { ! $module_lang_path = $mx_root_path . $mx_block->module_root_path; ! } ! ! // ------------------------------------------------------------------------- ! // Read Module Main Language Definition ! // ------------------------------------------------------------------------- ! if ((@include $module_lang_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) ! { ! if ((@include $module_lang_path . "language/lang_english/lang_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Module main language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); ! } } } *************** *** 840,853 **** // Read Module Admin Language Definition // ------------------------------------------------------------------------- ! if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) ! { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); ! } ! else { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } } - $this->loaded_langs[$mx_block->module_root_path] = '1'; } --- 867,878 ---- // Read Module Admin Language Definition // ------------------------------------------------------------------------- ! if ((@include $module_lang_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx") === false) { ! if ((@include $module_lang_path . "language/lang_english/lang_admin.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Modiule admin language file ' . $mx_root_path . $mx_block->module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx" . ' couldn\'t be opened.'); ! } } } $this->loaded_langs[$mx_block->module_root_path] = '1'; } *************** *** 991,994 **** --- 1016,1033 ---- $this->loaded_default_styles[$mx_block->module_root_path] = $default_module_style; } + + function set_module_cfg_name($module_cfg_name = '') + { + global $mx_block; + + $this->module_cfg_name[$mx_block->module_root_path] = $module_cfg_name; + } + + function set_module_lang_path($module_lang_path = '') + { + global $mx_block; + + $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; + } } // class mx_user ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-08 07:02:20
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9679 Modified Files: mx_functions_style.php Log Message: phpBB3 images lang problems fix (not tested yet) Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** mx_functions_style.php 8 Mar 2008 02:53:18 -0000 1.57 --- mx_functions_style.php 8 Mar 2008 07:00:42 -0000 1.58 *************** *** 1199,1203 **** } ! $img_lang = ( file_exists($phpbb_root_path . $this->current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; // --- 1199,1211 ---- } ! //$img_lang = ( file_exists($phpbb_root_path . $this->current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; ! if (PORTAL_BACKEND == 'phpbb3') ! { ! $img_lang = ($this->lang['default_lang']) ? $this->lang['default_lang'] : (($board_config['phpbb_lang']) ? $board_config['phpbb_lang'] : 'en'); ! } ! else ! { ! $img_lang = ($this->lang['default_lang']) ? $this->get_old_lang($this->lang['default_lang']) : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! } // |
|
From: OryNider <ory...@us...> - 2008-03-08 02:54:02
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19722 Modified Files: Tag: core28x mx_functions_style.php Log Message: this is a big bug wich was discovered in save mode by me ;) Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.18 retrieving revision 1.17.2.19 diff -C2 -d -r1.17.2.18 -r1.17.2.19 *** mx_functions_style.php 23 Feb 2008 19:38:24 -0000 1.17.2.18 --- mx_functions_style.php 8 Mar 2008 02:53:55 -0000 1.17.2.19 *************** *** 47,51 **** function mx_Template($root = '.') { ! parent::Template($root); } --- 47,52 ---- function mx_Template($root = '.') { ! $this->root = $root; ! parent::Template($this->root); } *************** *** 139,146 **** --- 140,178 ---- $filename = $mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename; } + // + // Look at Custom Root folder..............this is used my mx_mod installers too.......this does not use standard templates folders wich are set when the template was re-initialized and defined as custom var + // else if( file_exists( $this->root . '/' . $filename) ) { $filename = $this->root . '/' . $filename; } + if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) + { + // + // First check current template + // + $filename = $this->root . '/' . $style_path . '/' . $filename; + } + else if( file_exists($this->root . '/' . $style_path . '/' . $filename2) ) + { + // + // tpl - html + // + $filename = $this->root. '/' . $style_path . '/' . $filename2; + } + else if( file_exists($this->root . '/' . $mx_user->default_template_name . '/' . $filename) ) + { + // + // Then check current template + // + $filename = $mx_root_path . '/' . $mx_user->default_template_name . '/' . $filename; + } + else if( file_exists($this->root . '/' . $moduleDefault . '/' . $filename) ) + { + // + // Finally check the Custom Root folde(for compatibility with some old modules) + // + $filename = $this->root . '/' . $moduleDefault . '/' . $filename; + } else { *************** *** 186,190 **** if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } --- 218,222 ---- if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Class-Root: $this->root <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } |
|
From: OryNider <ory...@us...> - 2008-03-08 02:53:24
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19580 Modified Files: mx_functions_style.php Log Message: this is a big bug wich was discovered in save mode by me ;) Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** mx_functions_style.php 27 Feb 2008 21:27:11 -0000 1.56 --- mx_functions_style.php 8 Mar 2008 02:53:18 -0000 1.57 *************** *** 153,157 **** function mx_Template($root = '.') { ! parent::Template($root); } --- 153,158 ---- function mx_Template($root = '.') { ! $this->root = $root; ! parent::Template($this->root); } *************** *** 311,318 **** --- 312,350 ---- $filename = $mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename2; } + // + // Look at Custom Root folder..............this is used my mx_mod installers too.......this does not use standard templates folders wich are set when the template was re-initialized and defined as custom var + // else if( file_exists( $this->root . '/' . $filename) ) { $filename = $this->root . '/' . $filename; } + if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) + { + // + // First check current template + // + $filename = $this->root . '/' . $style_path . '/' . $filename; + } + else if( file_exists($this->root . '/' . $style_path . '/' . $filename2) ) + { + // + // tpl - html + // + $filename = $this->root. '/' . $style_path . '/' . $filename2; + } + else if( file_exists($this->root . '/' . $mx_user->default_template_name . '/' . $filename) ) + { + // + // Then check current template + // + $filename = $mx_root_path . '/' . $mx_user->default_template_name . '/' . $filename; + } + else if( file_exists($this->root . '/' . $moduleDefault . '/' . $filename) ) + { + // + // Finally check the Custom Root folde(for compatibility with some old modules) + // + $filename = $this->root . '/' . $moduleDefault . '/' . $filename; + } else { *************** *** 411,415 **** if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } --- 443,447 ---- if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Class-Root: $this->root <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } |
|
From: OryNider <ory...@us...> - 2008-03-07 11:10:49
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12986 Modified Files: mx_functions_phpbb.php Log Message: Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** mx_functions_phpbb.php 7 Mar 2008 05:35:47 -0000 1.53 --- mx_functions_phpbb.php 7 Mar 2008 11:08:37 -0000 1.54 *************** *** 2179,2190 **** } - //Temporary fix till mx_kb is fixed - if(!function_exists('dss_rand')) - { - function dss_rand() - { - return mx_dss_rand(); - } - } - ?> \ No newline at end of file --- 2179,2181 ---- |
|
From: OryNider <ory...@us...> - 2008-03-07 05:50:50
|
Update of /cvsroot/mxbb/mx_kb/templates/_core/images/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3901/templates/_core/images/lang_romanian Added Files: icon_kb_post.gif icon_kb_post_comment.gif icon_kb_rate.gif icon_kb_search.gif icon_kb_stats.gif icon_kb_toplist.gif index.htm kb.gif Log Message: romanian language partily traslated from english for gererating comments etc --- NEW FILE: icon_kb_post.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_search.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_post_comment.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_rate.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_stats.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_kb_toplist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: kb.gif --- (This appears to be a binary file; contents omitted.) --- 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> |
|
From: OryNider <ory...@us...> - 2008-03-07 05:50:43
|
Update of /cvsroot/mxbb/mx_kb/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3901/language/lang_romanian Added Files: index.htm lang_admin.php lang_main.php Log Message: romanian language partily traslated from english for gererating comments etc --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_kb * @version $Id: lang_main.php,v 1.1 2008/03/07 05:50:35 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // General // $lang['kb_disable'] = 'Knowledge base is disabled.'; $lang['KB_title'] = 'Catalogul de articole'; $lang['Article'] = 'Articol'; $lang['Articles'] = 'Articole'; $lang['Category'] = 'Categorie'; $lang['Sub_categories'] = 'Subcategorie'; $lang['Article_description'] = 'Descriere'; $lang['Article_type'] = 'Tip'; $lang['Article_keywords'] = 'Cuvinte cheie'; $lang['Articles'] = 'Articole'; $lang['Add_article'] = 'Adaugã articol'; $lang['Click_cat_to_add'] = 'Apasã pe categorie pentru a adãuga articol'; $lang['KB_Home'] = 'Pagina de start - Catalog articole'; $lang['No_articles'] = 'Nici un articol'; $lang['Article_title'] = 'Nume articol'; $lang['Article_text'] = 'Text articol'; $lang['Add_article'] = 'Trimite articol'; $lang['Read_article'] = 'Citeºte articol'; $lang['Article_not_exsist'] = 'Articolul nu existã'; $lang['Category_not_exsist'] = 'Categoria nu existã'; $lang['Last_article'] = 'Ultimul Articol'; $lang['Quick_jump'] = 'Selecteazã Categoria'; $lang['Edit'] = 'Modificã'; $lang['Click_cat_to_add'] = 'Click on Category to add Article'; $lang['Standalone_Not_Supported'] = 'This module does not support standalone usage. In the AdminCP, add the KB block to a portal page.'; $lang['Article_submitted_Approve'] = 'Articol transmis cu succes.<br />Un administrator va revizui articolul ºi va decide dacã va fi lãsat la dispoziþia utilizatorilor.'; $lang['Article_submitted'] = 'Articol transmis cu succes.'; $lang['Click_return_kb'] = 'Apasã %saici%s pentru a reveni la ' . $lang['KB_title']; $lang['Click_return_article'] = 'Apasã %saici%s pentru a reveni la ' . $lang['Article']; $lang['Article_Edited_Approve'] = 'Articolul a fost modificat cu succes.<br />Va fi necesar ca sã fie aprobat din nou înainte ca utilizatorii sã-l poatã vedea.'; $lang['Article_Edited'] = 'Articolul a fost modificat cu succes.'; $lang['Edit_article'] = 'Modificã articol'; $lang['Article_Deleted'] = 'Articolul a fost ºters cu succes.'; // // Notification // $lang['KB_prefix'] = '[ CA ]'; $lang['KB_notify_subject_new'] = 'Articol Nou!'; $lang['KB_notify_subject_edited'] = 'Articol Editat!'; $lang['KB_notify_subject_approved'] = 'Articol Aprobat!'; $lang['KB_notify_subject_unapproved'] = 'Articol Dez-Aprobat!'; $lang['KB_notify_subject_deleted'] = 'Articol ªters!'; $lang['KB_notify_new_body'] = 'Un nou articol a fost adãugat!'; $lang['KB_notify_edited_body'] = 'Un articol a fost modificat!'; $lang['KB_notify_approved_body'] = 'Un articol a fost aprobat!'; $lang['KB_notify_unapproved_body'] = 'Un articol a fost dez-aprobat.'; $lang['KB_notify_deleted_body'] = 'Un articol a fost ºters.'; $lang['Edited_Article_info'] = 'Articol actualizat de '; $lang['Read_full_article'] = '>> Citeºte articolul întreg'; // // Auth Can // $lang['KB_Rules_post_can'] = 'You <b>can</b> post new articles in this category'; $lang['KB_Rules_post_cannot'] = 'You <b>cannot</b> post new articles in this category'; $lang['KB_Rules_comment_can'] = 'You <b>can</b> comment articles in this category'; $lang['KB_Rules_comment_cannot'] = 'You <b>cannot</b> comment articles in this category'; $lang['KB_Rules_edit_can'] = 'You <b>can</b> edit your articles in this category'; $lang['KB_Rules_edit_cannot'] = 'You <b>cannot</b> edit your articles in this category'; $lang['KB_Rules_delete_can'] = 'You <b>can</b> delete your articles in this category'; $lang['KB_Rules_delete_cannot'] = 'You <b>cannot</b> delete your articles in this category'; $lang['KB_Rules_rate_can'] = 'You <b>can</b> rate articles in this category'; $lang['KB_Rules_rate_cannot'] = 'You <b>cannot</b> rate articles in this category'; $lang['KB_Rules_approval_can'] = 'Articles <b>need no</b> approval in this category'; $lang['KB_Rules_approval_cannot'] = 'Articles <b>need</b> approval in this category'; $lang['KB_Rules_approval_edit_can'] = 'Article edits <b>need no</b> approval in this category'; $lang['KB_Rules_approval_edit_cannot'] = 'Article edits <b>need</b> approval in this category'; $lang['KB_Rules_moderate'] = 'You <b>can</b> %smoderate this category%s'; // %s replaced by a href links, do not remove! $lang['KB_Rules_moderate_can'] = 'You <b>can</b> moderate this category'; // %s replaced by a href links, do not remove! $lang['Empty_fields'] ='Please fill out all parts of the form.'; $lang['Empty_fields_return'] ='Click %sHere%s to return to the form.'; $lang['Empty_category'] ='You must choose a category'; $lang['Empty_type']='You must choose a type'; $lang['Empty_article_name'] = 'You must fill out the article name'; $lang['Empty_article_desc'] = 'You must fill out the article description'; $lang['Comments'] = 'Comments'; $lang['Post_comments'] = 'Post your comments'; $lang['Category_sub'] = 'Sub-Categories'; $lang['Quick_stats'] = 'Quick Stats'; $lang['No_Articles'] = 'There are no articles in this category!'; $lang['Not_authorized'] = 'Sorry, but you are not authorized!'; $lang['TOC'] = 'Contents'; // // Print version // $lang['Print_version'] = '[Printable version]'; // // Stats // $lang['Top_toprated'] = 'Toprated Articles'; $lang['Top_most_popular'] = 'Most Popular'; $lang['Top_latest'] = 'Latest Articles'; $lang['Top_id'] = 'Article Id'; $lang['Top_creation'] = 'Article date'; $lang['Top_alphabetic'] = 'Alphabetic'; $lang['Top_userrank'] = 'Author userrank'; // // Update result messages // $lang['Click_return'] = 'Click %sHere%s to return to previous page'; $lang['Click_return_kb'] = 'Click %sHere%s to return to the ' . $lang['KB_title']; $lang['Click_return_article'] = 'Click %sHere%s to return to the ' . $lang['Article']; // // Article formattting // $lang['Cat_all'] = 'All'; $lang['L_Pages'] = 'Pages'; $lang['L_Pages_explain'] = 'Use the \'[pages]\' command to split the article into pages'; $lang['L_Toc'] = 'Table of contents (TOC)'; $lang['L_Toc_explain'] = 'Use the \'[toc]\' command to add entry in the TOC'; $lang['L_Abstract'] = 'Abstract'; $lang['L_Abstract_explain'] = 'Use the \'[abstract]...[/abstract]\' environment to insert an abstract'; $lang['L_Title_Format'] = 'Title'; $lang['L_Title_Format_explain'] = 'Use the \'[title]...[/title]\' environment to insert a main title'; $lang['L_Subtitle_Format'] = 'Subtitle'; $lang['L_Subtitle_Format_explain'] = 'Use the \'[subtitle]...[/subtitle]\' environment to insert a subtitle'; $lang['L_Subsubtitle_Format'] = 'Sub-subtitle'; $lang['L_Subsubtitle_Format'] = 'Use the \'[subsubtitle]...[/subsubtitle]\' environment to insert a small header'; $lang['L_Options'] = 'Options:'; $lang['L_Formatting'] = 'Formatting:'; $lang['Default_article_id'] = 'Set default article, for the article viewer'; // // MCP // $lang['MCP_title'] = 'Moderator Control Panel'; $lang['MCP_title_explain'] = 'Here moderators can approve and manage articles'; $lang['View'] = 'View'; $lang['Approve_selected'] = 'Approve Selected'; $lang['Unapprove_selected'] = 'Unapprove Selected'; $lang['Delete_selected'] = 'Delete Selected'; $lang['No_item'] = 'There is no articles'; $lang['All_items'] = 'All articles'; $lang['Approved_items'] = 'Approved articles'; $lang['Unapproved_items'] = 'Unapproved articles'; $lang['Broken_items'] = 'Broken articles'; $lang['Item_cat'] = 'Articles in Category'; $lang['Approve'] = 'Approve'; $lang['Unapprove'] = 'Unapprove'; $lang['Sorry_auth_delete'] = 'Sorry, but you cannot delete articles in this category.'; $lang['Sorry_auth_mcp'] = 'Sorry, but you cannot moderate this category.'; $lang['Sorry_auth_approve'] = 'Sorry, but you cannot approve articles in this category.'; $lang['Sorry_auth_post'] = 'Sorry, but you cannot post articles in this category.'; $lang['Sorry_auth_edit'] = 'Sorry, but you cannot edit articles in this category.'; $lang['Edit_article'] = 'Edit'; $lang['Delete_article'] = 'Delete'; // // Added for v. 2.0 // $lang['Addtional_field'] = 'More information (optional)'; $lang['No_cat_comments_forum_id'] = 'Comments are enabled but you have not specified the target phpBB forum category in the KB adminCP - Categories'; // // Quick Nav // $lang['Quick_nav'] = 'Quick Navigation'; $lang['Quick_jump'] = 'Select Category'; $lang['Quick_go'] = 'Go'; // // Search // $lang['Search'] = 'Search'; $lang['Search_results'] = 'Search Results'; $lang['Search_for'] = 'Search for'; $lang['Results'] = 'Results for'; $lang['No_matches'] = 'Sorry, no matches were found for'; $lang['Matches'] = 'matches were found for'; $lang['All'] = 'All Categories'; $lang['Choose_cat'] = 'Choose Category:'; $lang['Include_comments'] = 'Include Comments'; $lang['Submiter'] = 'Submitted by'; // // Comments // $lang['KB_comment_prefix'] = '[ KB ] '; $lang['Comments'] = 'Comments'; $lang['Comments_title'] = 'Comments Title'; $lang['Comment_subject'] = 'Comment Subject'; $lang['Comment'] = 'Comment'; $lang['Comment_explain'] = 'Use the textbox above to give your opinion on this file!'; $lang['Comment_add'] = 'Add Comment'; $lang['Comment_delete'] = 'Delete'; $lang['Comment_posted'] = 'Your comment has been entered successfully'; $lang['Comment_deleted'] = 'The comment you selected has been deleted successfully'; $lang['Comment_desc'] = 'Title'; $lang['No_comments'] = 'Not commented'; $lang['Links_are_ON'] = 'Links are <u>ENABLED</u>'; $lang['Links_are_OFF'] = 'Links are <u>DISABLED</u>'; $lang['Images_are_ON'] = 'Images are <u>ENABLED</u>'; $lang['Images_are_OFF'] = 'Images are <u>DISABLED</u>'; $lang['Check_message_length'] = 'Check Message Length'; $lang['Msg_length_1'] = 'Your message is '; $lang['Msg_length_2'] = ' characters long.'; $lang['Msg_length_3'] = 'You have '; $lang['Msg_length_4'] = ' characters available.';; $lang['Msg_length_5'] = 'There are '; $lang['Msg_length_6'] = ' characters remaining.'; // // Rate // $lang['Votes_label'] = 'Rating'; $lang['Votes'] = 'Votes'; $lang['No_votes'] = 'No votes'; $lang['Rate'] = 'Rate Article'; $lang['ADD_RATING'] = '[Rate Article]'; $lang['Rerror'] = 'Sorry, you have already rated this article.'; $lang['Rateinfo'] = 'You are about to rate the article <i>{filename}</i>.<br />Please select a rating. 1 is the worst, 10 is the best.'; $lang['Rconf'] = 'You have given <i>{filename}</i> a rating of {rate}.<br />This makes the files new rating {newrating}.'; $lang['R1'] = '1'; $lang['R2'] = '2'; $lang['R3'] = '3'; $lang['R4'] = '4'; $lang['R5'] = '5'; $lang['R6'] = '6'; $lang['R7'] = '7'; $lang['R8'] = '8'; $lang['R9'] = '9'; $lang['R10'] = '10'; $lang['Click_return_rate'] = 'Click %sHere%s to return to article'; // // App // // // Menu // $lang['sd_Project'] = 'Project'; $lang['sd_Management'] = 'Management'; $lang['sd_Doc_view'] = 'View Document'; $lang['sd_Options'] = 'Options'; $lang['sd_Help'] = 'Help'; $lang['sd_Contents'] = 'Contents *'; $lang['sd_About'] = 'About *'; // // Tree // $lang['sd_Tree_View'] = 'Tree View'; $lang['sd_Toc'] = 'Table of Contents'; $lang['sd_Where'] = 'Where'; $lang['sd_Before'] = 'Before'; $lang['sd_After'] = 'After'; $lang['sd_Type'] = 'Type'; $lang['sd_Name'] = 'Name'; $lang['sd_Document'] = 'Document'; $lang['sd_Folder'] = 'Folder'; // // Index // $lang['sd_Doc_info'] = 'Document Info'; $lang['sd_Doc_preview'] = 'Preview Document'; $lang['sd_Edit_content'] = 'Edit content'; $lang['sd_Default_edit'] = 'open Edit Content by default'; $lang['sd_Loading'] = 'Loading data ..'; $lang['sd_Saving'] = 'Saving data ..'; // // Generic Type strings // - Types are matched against these lang keys...where 'NAME' is the db defined type name // $lang['KB_type_NAME'] = 'Example Type'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_kb * @version $Id: lang_admin.php,v 1.1 2008/03/07 05:50:34 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // adminCP index // $lang['KB_title'] = 'Knowledge Base'; $lang['1_Configuration'] = 'General Settings'; $lang['2_Cat_man'] = 'Category Manager'; $lang['3_Art_man'] = 'Article Manager'; $lang['4_Permissions'] = 'Permissions'; $lang['5_Types_man'] = 'Types Manager'; $lang['6_Custom_Field'] = 'Custom Fields'; $lang['7_Optimize_tables'] = 'Optimize Search Table'; // // Parameter Types // $lang['ParType_kb_type_select'] = 'Advanced phpBB Source Forum Selection'; $lang['ParType_kb_type_select_info'] = ''; $lang['ParType_default_article_id'] = 'Default Article'; $lang['ParType_default_article_id_info'] = '- Article Reader'; $lang['ParType_kb_quick_cat'] = 'KB default category'; $lang['ParType_kb_quick_cat_info'] = ''; // // Parameter Names // $lang['kb_type_select'] = 'KB Source:'; $lang['kb_type_select_explain'] = 'Select Source KB categories and article types'; $lang['default_article_id'] = 'Default Article:'; $lang['default_article_id_explain'] = '- This article is default (first) displayed if noone else is chosen'; // // Admin Panels - Configuration // $lang['Panel_config_title'] = 'Knowledge Base Configuration'; $lang['Panel_config_explain'] = 'Change the configuration of your Knowledge Base'; // // General // $lang['General_title'] = 'General'; $lang['Module_name'] = 'Module name'; $lang['Module_name_explain'] = ''; $lang['Enable_module'] = 'Enable this module'; $lang['Enable_module_explain'] = 'Let users view and post new articles on in your Knowledge Base.'; $lang['Wysiwyg_path'] = 'Path to WYSIWYG software'; $lang['Wysiwyg_path_explain'] = 'This is the path (from mxBB/phpBB root) to the WYSIWYG software folder, eg \'modules/mx_shared/\' if you have uploaded, for example, TinyMCE in modules/mx_shared/tinymce.'; $lang['Allow_file'] = 'Allow Adding article'; $lang['Allow_file_info'] = 'If you are not allowed to add articles in this category it will be a higher level category.'; // // Article // $lang['Article_title'] = 'Article'; // // Appearance // $lang['Appearance_title'] = 'Appearance'; $lang['Article_pag'] = 'Article pagination'; $lang['Article_pag_explain'] = 'The number of articles to show in a (stats) category before pagination.'; $lang['Sort_method'] = 'Sorting method'; $lang['Sort_method_explain'] = 'Define how articles are sorted within its category.'; $lang['Sort_order'] = 'ASC or DESC sorting'; $lang['Sort_order_explain'] = ''; $lang['Stats_list'] = 'Show KB Stats links'; $lang['Stats_list_explain'] = 'Show KB stats links in the header.'; $lang['Header_banner'] = 'Show Top Logo'; $lang['Header_banner_explain'] = 'Show KB logo in the header.'; $lang['Use_simple_navigation'] = 'Simple Category Navigation'; $lang['Use_simple_navigation_explain'] = 'If you prefer, this will generate more simple categories and other navigation'; $lang['Cat_col'] = 'How many column of categories are to be listed (only used for \'Simple Category Navigation\')'; $lang['Nfdays'] = 'New Article Days'; $lang['Nfdaysinfo'] = 'How many days a new article is to be listed with a \'New Article\' icon. If this is set to 5, then all articles added within the past 5 days will have the \'New Article\' icon'; // // Comments // $lang['Comments_title'] = 'Comments'; $lang['Comments_title_explain'] = 'Some comments settings are default settings, and can be overridden per category'; $lang['Use_comments'] = 'Comments'; $lang['Use_comments_explain'] = 'Enable comments for articles, to be inserted in the forum'; $lang['Internal_comments'] = 'Internal or phpBB Comments'; $lang['Internal_comments_explain'] = 'Use internal comments, or phpBB comments'; $lang['Internal_comments_phpBB'] = 'phpBB Comments'; $lang['Internal_comments_internal'] = 'Internal Comments'; $lang['Select_topic_id'] = 'Select phpBB Comments Topic!'; $lang['Forum_id'] = 'phpBB Forum ID'; $lang['Forum_id_explain'] = 'If phpBB comments are used, this is the forum where the comments will be kept'; $lang['Autogenerate_comments'] = 'Autogenerate comments when articles are managed'; $lang['Autogenerate_comments_explain'] = 'When editing/adding an article, a notifying reply is posted in the article topic.'; $lang['Del_topic'] = 'Delete Topic'; $lang['Del_topic_explain'] = 'When you delete an article, do you want its comments topic to be deleted also?'; $lang['Comments_pag'] = 'Comments pagination'; $lang['Comments_pag_explain'] = 'The number of comments to show for the article before pagination.'; $lang['Allow_Wysiwyg'] = 'Use WYSIWYG editor'; $lang['Allow_Wysiwyg_explain'] = 'If enabled, the standard BBCode/HTML/Smilies input dialog is replaced by a WYSIWYG editor.'; $lang['Allow_links'] = 'Allow Links'; $lang['Allow_links_message'] = 'Default \'No Links\' Message'; $lang['Allow_links_explain'] = 'If links are not allowed this text will be displayed instead'; $lang['Allow_images'] = 'Allow Images'; $lang['Allow_images_message'] = 'Default \'No Images\' Message'; $lang['Allow_images_explain'] = 'If images are not allowed this text will be displayed instead'; $lang['Max_subject_char'] = 'Maximum Number of charcters in subject'; $lang['Max_subject_char_explain'] = 'If to big, you get an error message (Limit the subject).'; $lang['Max_desc_char'] = 'Maximum Number of charcters in description'; $lang['Max_desc_char_explain'] = 'If to big, you get an error message (Limit the subject).'; $lang['Max_char'] = 'Maximum Number of charcters in text'; $lang['Max_char_explain'] = 'If to big, you get an error message (Limit the comment).'; $lang['Format_wordwrap'] = 'Word wrapping'; $lang['Format_wordwrap_explain'] = 'Text control filter'; $lang['Format_truncate_links'] = 'Truncate Links'; $lang['Format_truncate_links_explain'] = 'Links are shortened, eg t ex \'www.mxbb-portal...\''; $lang['Format_image_resize'] = 'Image resize'; $lang['Format_image_resize_explain'] = 'Resize images to this width (pixels)'; // // Ratings // $lang['Ratings_title'] = 'Ratings'; $lang['Ratings_title_explain'] = 'Some ratings settings are default settings, and can be overridden per category'; $lang['Use_ratings'] = 'Ratings'; $lang['Use_ratings_explain'] = 'Enable ratings'; $lang['Votes_check_ip'] = 'Validate ratings - IP'; $lang['Votes_check_ip_explain'] = 'Only one vote per IP address is permitted.'; $lang['Votes_check_userid'] = 'Validate ratings - User'; $lang['Votes_check_userid_explain'] = 'Users may only vote once.'; // // Instructions // $lang['Instructions_title'] = 'User Instructions'; $lang['Pre_text_name'] = 'Article Submission Instructions'; $lang['Pre_text_explain'] = 'Activate Submission Instructions displayed to users at the top of the submission forum.'; $lang['Pre_text_header'] = 'Article Submission Instructions Header'; $lang['Pre_text_body'] = 'Article Submission Instructions Body'; $lang['Show'] = 'Show'; $lang['Hide'] = 'Hide'; // // Notifications // $lang['Notifications_title'] = 'Notification'; $lang['Notify'] = 'Notify admin by'; $lang['Notify_explain'] = 'Choose which way to receive notices that new articles have been posted'; $lang['PM'] = 'PM'; $lang['Notify_group'] = 'and groupmembers '; $lang['Notify_group_explain'] = 'Also send notification to members in this group'; $lang['Click_return_kb_config'] = 'Click %sHere%s to return to Knowledge Base Configuration'; $lang['KB_config_updated'] = 'Knowledge Base Configuration Updated Successfully.'; $lang['KB_config'] = 'KB Configuration'; $lang['Art_types'] = 'Article Types'; $lang['Mod_group'] = 'KB Moderator Group'; $lang['Mod_group_explain'] = '- with KB Admin permissions!'; // // General // $lang['Article'] = 'Article'; $lang['Articles'] = 'Articles'; $lang['Article_description'] = 'Description'; $lang['Article_category'] = 'Category'; $lang['Category'] = 'Category'; $lang['Category_desc'] = 'Category description'; $lang['Article_type'] = 'Type'; $lang['Art_action'] = 'Action'; // // Admin Panels - Article // $lang['Panel_art_title'] = 'Article administration'; $lang['Panel_art_explain'] = 'Here you can approve articles so users can view them, or you can delete articles.'; //approve $lang['Art_edit'] = 'Edited Articles'; $lang['Art_not_approved'] = 'Not Approved'; $lang['Art_approved'] = 'Approved'; $lang['Approve'] = 'Approve'; $lang['Un_approve'] = 'Un-Approve'; $lang['Article_approved'] = 'Article is now Approved.'; $lang['Article_unapproved'] = 'Article is now Unapproved.'; //delete $lang['Delete'] = 'Delete'; $lang['Confirm_art_delete'] = 'Are you sure you want to delete this article?'; $lang['Confirm_art_delete_yes'] = '%sYes, I want to delete this article%s'; $lang['Confirm_art_delete_no'] = '%sNo, I don\'t want to delete this article%s'; $lang['Article_deleted'] = 'Article Deleted Successfully.'; $lang['Click_return_article_manager'] = 'Click %sHere%s to return to the Article Manager'; // // Admin Panels - Category // $lang['Panel_cat_title'] = 'Category administration'; $lang['Panel_cat_explain'] = 'Here you can add, edit, or delete categories in the Knowledge Base'; $lang['Use_default'] = 'Use default setting'; $lang['Create_cat'] = 'Create New Category:'; $lang['Create'] = 'Create'; $lang['Cat_settings'] = 'Category Settings'; $lang['Create_description'] = 'Here you can change the name of the category and add a description to the new category.'; $lang['Cat_created'] = 'Category Created Successfully.'; $lang['Click_return_cat_manager'] = 'Click %sHere%s to return to the ' . $lang['Cat_man']; $lang['Edit_description'] = 'Here you can edit the settings of your category'; $lang['Edit_cat'] = 'Edit Category'; $lang['Cat_edited'] = 'Category Edited Successfully.'; $lang['Parent'] = 'Parent'; $lang['Cat_delete_title'] = 'Delete Category'; $lang['Cat_delete_desc'] = 'Here you can delete a category and move all of the articles in it to a new category'; $lang['Cat_deleted'] = 'Category Deleted Successfully.'; $lang['Delete_all_articles'] = 'Delete Articles'; // // Admin Panels - Permissions // $lang['KB_Auth_Title'] = 'KB Permissions'; $lang['KB_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each KB category, or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['KB_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_KB_auth'] = 'Click %sHere%s to return to the KB Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; $lang['Approval'] = 'Approval'; $lang['Approval_edit'] = 'Approval Edit'; $lang['Allow_rating'] = 'Allow ratings'; $lang['Allow_rating_explain'] = 'Users are allowed to rate articles.'; $lang['Allow_anonymos_rating'] = 'Allow anonymous ratings'; $lang['Allow_anonymos_rating_explain'] = 'If ratings are activated, allow anonymous users to add ratings to your articles'; $lang['Category_Permissions'] = 'Category Permissions'; $lang['Category_Title'] = 'Category Title'; $lang['Category_Desc'] = 'Category Description'; $lang['View_level'] = 'View Level'; $lang['Upload_level'] = 'Upload Level'; $lang['Rate_level'] = 'Rate Level'; $lang['View_Comment_level'] = 'View Comment'; $lang['Post_Comment_level'] = 'Post Comment'; $lang['Edit_Comment_level'] = 'Edit Comment'; $lang['Delete_Comment_level'] = 'Delete Comment'; $lang['Edit_level'] = ' Edit Level'; $lang['Delete_level'] = 'Delete Level'; $lang['Approval_level'] = 'Approval Level'; $lang['Approval_edit_level'] = 'Approval Edit Level'; // // Admin Panels - Types // $lang['Types_man'] = 'Types Manager'; $lang['KB_types_description'] = 'Here you can add, delete, and/or edit the different article types'; $lang['Create_type'] = 'Create new Article Type:'; $lang['Type_created'] = 'Article Type Created Successfully.'; $lang['Click_return_type_manager'] = 'Click %sHere%s to return to the Types Manager'; $lang['Edit_type'] = 'Edit Type'; $lang['Edit_type_description'] = 'Here you can edit the name of the type'; $lang['Type_edited'] = 'Article Type Edited Successfully.'; $lang['Type_delete_title'] = 'Delete Article Type'; $lang['Type_delete_desc'] = 'Here you can change what the article type is of the articles that have the type you are deleting.'; $lang['Change_type'] = 'Change article\'s type to'; $lang['Change_and_Delete'] = 'Change and Delete'; $lang['Type_deleted'] = 'Article Type Deleted Successfully.'; // // Admin Panels - Custom Field // $lang['Fieldselecttitle'] = 'Select what to do'; $lang['Afield'] = 'Custom Field: Add'; $lang['Efield'] = 'Custom Field: Edit'; $lang['Dfield'] = 'Custom Field: Delete'; $lang['Mfieldtitle'] = 'Custom Fields'; $lang['Afieldtitle'] = 'Add Field'; $lang['Efieldtitle'] = 'Edit Field'; $lang['Dfieldtitle'] = 'Delete Field'; $lang['Fieldexplain'] = 'You can use the custom fields management section to add, edit, and delete custom fields. You can use custom fields to add more information about an article.'; $lang['Fieldname'] = 'Field Name'; $lang['Fieldnameinfo'] = 'This is the name of the field, for example \'File Size\''; $lang['Fielddesc'] = 'Field Description'; $lang['Fielddescinfo'] = 'This is a description of the field, for example \'File Size in Megabytes\''; $lang['Fieldadded'] = 'The custom field has been successfully added'; $lang['Fieldedited'] = 'The custom field you selected has been successfully edited'; $lang['Dfielderror'] = 'You didn\'t select any fields to delete'; $lang['Fieldsdel'] = 'The custom fields you selected have been successfully deleted'; $lang['Field_data'] = 'Options'; $lang['Field_data_info'] = 'Enter the options that the user can choose from. Separate each option with a newline (carriage return).'; $lang['Field_regex'] = 'Regular Expression'; $lang['Field_regex_info'] = 'You may require the input field to match a regular expression %s(PCRE)%s.'; $lang['Field_order'] = 'Display Order'; $lang['Click_return'] = 'Click %sHere%s to return to the previous page'; // These are displayed in the drop down boxes for advanced // mode auth, try and keep them short! $lang['Cat_NONE'] = 'NONE'; $lang['Cat_ALL'] = 'ALL'; $lang['Cat_REG'] = 'REG'; $lang['Cat_PRIVATE'] = 'PRIVATE'; $lang['Cat_MOD'] = 'MOD'; $lang['Cat_ADMIN'] = 'ADMIN'; // // Admin Panels - Field Types // $lang['Field_Input'] = 'Single-Line Text Box'; $lang['Field_Textarea'] = 'Multiple-Line Text Box'; $lang['Field_Radio'] = 'Single-Selection Radio Buttons'; $lang['Field_Select'] = 'Single-Selection Menu'; $lang['Field_Select_multiple'] = 'Multiple-Selection Menu'; $lang['Field_Checkbox'] = 'Multiple-Selection Checkbox'; // // Admin Panels - Toplists // $lang['toplist_sort_method'] = 'Toplist type'; $lang['toplist_display_options'] = 'Display options'; $lang['toplist_use_pagination'] = 'Use Pagination (Previous/Next \'Number of rows\')'; $lang['toplist_pagination'] = 'Number of rows'; $lang['toplist_filter_date'] = "Filter by time"; $lang['toplist_filter_date_explain'] = "- Show posts from last week, month, year..."; $lang['toplist_cat_id'] = 'Limit to category'; $lang['target_block'] = 'Associated (target) KB Block'; // // Admin Panels - Mini // $lang['mini_display_options'] = 'Display options'; $lang['mini_pagination'] = 'Number of rows'; $lang['mini_default_cat_id'] = 'Limit to category'; ?> --- 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> |
|
From: OryNider <ory...@us...> - 2008-03-07 05:49:12
|
Update of /cvsroot/mxbb/mx_kb/templates/_core/images/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2562/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_kb/templates/_core/images/lang_romanian added to the repository |
|
From: OryNider <ory...@us...> - 2008-03-07 05:48:51
|
Update of /cvsroot/mxbb/mx_kb/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1961/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_kb/language/lang_romanian added to the repository |
|
From: OryNider <ory...@us...> - 2008-03-07 05:35:54
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22987 Modified Files: mx_functions_phpbb.php Log Message: Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** mx_functions_phpbb.php 1 Mar 2008 21:21:10 -0000 1.52 --- mx_functions_phpbb.php 7 Mar 2008 05:35:47 -0000 1.53 *************** *** 2179,2181 **** --- 2179,2190 ---- } + //Temporary fix till mx_kb is fixed + if(!function_exists('dss_rand')) + { + function dss_rand() + { + return mx_dss_rand(); + } + } + ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-07 03:28:38
|
Update of /cvsroot/mxbb/mx_shotcast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30335/templates/subSilver Modified Files: shotcast_front.tpl Log Message: Index: shotcast_front.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/subSilver/shotcast_front.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_front.tpl 6 Mar 2008 03:09:40 -0000 1.3 --- shotcast_front.tpl 7 Mar 2008 03:28:35 -0000 1.4 *************** *** 27,31 **** <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')">{L_CLICK_TO_LISTEN_STATION}</a> ] <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> --- 27,31 ---- <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')">{L_CLICK_TO_LISTEN_STATION}</a> ]<br /> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> |
|
From: OryNider <ory...@us...> - 2008-03-07 03:28:38
|
Update of /cvsroot/mxbb/mx_shotcast/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30335/templates/_core Modified Files: shotcast_front.tpl Log Message: Index: shotcast_front.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/_core/shotcast_front.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** shotcast_front.tpl 6 Mar 2008 03:09:39 -0000 1.2 --- shotcast_front.tpl 7 Mar 2008 03:28:33 -0000 1.3 *************** *** 27,31 **** <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')">{L_CLICK_TO_LISTEN_STATION}</a> ] <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> --- 27,31 ---- <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')">{L_CLICK_TO_LISTEN_STATION}</a> ]<br /> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> |
|
From: OryNider <ory...@us...> - 2008-03-07 03:28:38
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30335 Modified Files: getinfo.php play.php Log Message: Index: play.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** play.php 6 Mar 2008 05:12:19 -0000 1.4 --- play.php 7 Mar 2008 03:28:33 -0000 1.5 *************** *** 142,146 **** document.write ('<OBJECT ID="MediaPlayer"'); document.write (' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); ! document.write (' CODEBASE="<?=$wmp6pluginspace;?>"'); document.write (' standby="Loading Microsoft Windows Media Player components..."'); document.write (' TYPE="application/x-oleobject" width="250" height="62">'); --- 142,146 ---- document.write ('<OBJECT ID="MediaPlayer"'); document.write (' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); ! document.write (' CODEBASE="http://retro-radio.net/plugin/setup_AAC_aacPlus_plugin_1_0_36.exe"'); document.write (' standby="Loading Microsoft Windows Media Player components..."'); document.write (' TYPE="application/x-oleobject" width="250" height="62">'); |
|
From: OryNider <ory...@us...> - 2008-03-07 03:28:32
|
Update of /cvsroot/mxbb/mx_radio/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29322/includes Modified Files: common.php Log Message: Index: common.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/includes/common.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** common.php 1 Mar 2008 18:33:42 -0000 1.4 --- common.php 7 Mar 2008 03:26:26 -0000 1.5 *************** *** 44,65 **** // // Load language files. // ! if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx) ) ! { ! include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); ! } ! else { ! include($module_root_path . 'language/lang_english/lang_admin.' . $phpEx); } ! //Load main laguage file ! if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { ! include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } else { ! include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); } --- 44,74 ---- // + // Cache settings + // + $use_cache = 1; + + // // Load language files. // ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! //Main module lang ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) { ! if ((@include $module_root_path . "language/lang_english/lang_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $default_lang = 'english'; } ! ! //Admin Module Lang ! if( file_exists($module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx") ) { ! include($module_root_path . "language/lang_" . $default_lang . "/lang_admin.$phpEx"); } else { ! include($module_root_path . "language/lang_english/lang_admin.$phpEx"); } *************** *** 97,119 **** // ================================================================================ ! // ! // Get radio Settings from config table ! // ! ! if( defined('_RADIO_CONFIG') ) { $radio_config = array(); ! $sql = "SELECT * FROM ".RADIO_CONFIG_TABLE; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, "Couldn't query radio config table", "", __LINE__, __FILE__, $sql); ! } ! else { ! while($row = $db->sql_fetchrow($result)) { ! $radio_config[$row['config_name']] = $row['config_value']; } } } --- 106,140 ---- // ================================================================================ ! if (($mx_cache->get('radio_config')) && ($use_cache)) ! { ! $radio_config = $mx_cache->get('radio_config'); ! } ! else if(defined('_RADIO_CONFIG')) { $radio_config = array(); ! $sql = "SELECT * FROM " . RADIO_CONFIG_TABLE; ! ! if (!($result = $db->sql_query($sql))) { ! if (!function_exists('mx_message_die')) { ! die("Couldnt query radio_config information, Allso this hosting or server is using a cache optimizer not compatible with MX-Publisher or just lost connection to database wile query."); } + else + { + mx_message_die( GENERAL_ERROR, 'Couldnt query radio_config information', '', __LINE__, __FILE__, $sql ); + } + } + + while ($row = $db->sql_fetchrow($result)) + { + $radio_config[$row['config_name']] = $row['config_value']; + } + $db->sql_freeresult($result); + + if ($use_cache) + { + $mx_cache->put('radio_config', $radio_config); } } *************** *** 122,125 **** --- 143,199 ---- $period = $radio_config['check_period'] * 1000; + // Settings by lsn (hb...@ho...) + $hostandport = explode("//", $radio_config['radio_FileName']); + + //Trasfer Protocol + if ($hostandport[0]) + { + $protocol_type = $hostandport[0]; + } + else + { + $protocol_type = 'http:'; + } + + //Domain + $hostname = $hostandport[1]; + + // Shoutcast Ip or Host + $host = explode(":", $hostname); + + if ($host[0]) + { + $radio_ip = $host[0]; + } + elseif ($hostname) + { + $radio_ip = $hostname; + } + else + { + $radio_ip = '127.0.0.0'; //localhost + } + + // Shoutcast Port + $port = explode("/", $host[1]); + + if ($port[0]) + { + $radio_port = $port[0]; + } + elseif ($host[1]) + { + $radio_port = $host[1]; + } + else + { + $radio_port = '80'; + } + + $mount = "/"; // Used for alternate path to "Streaming URL" -- leave as "/" for the default setup. + + $wmpmode = ($protocol_type == 'icyx:') ? 'icyx://' : 'http://'; // AAC VS MPEG + $mimetype = ($protocol_type == 'icyx:') ? 'audio/aacp' : 'audio/x-mpeg'; // AAC VS MPEG + // ================================================================================ // [ COMMON FUNCTIONS ] |