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: Markus P. <mar...@us...> - 2005-05-02 09:24:59
|
Update of /cvsroot/mxbb/mx_sitestats/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/language/lang_english Removed Files: lang_admin.php lang_main.php Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- lang_main.php DELETED --- --- lang_admin.php DELETED --- |
Update of /cvsroot/mxbb/mx_sitestats/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/templates Removed Files: sitestats_adminstats_body.tpl sitestats_counter_body.tpl sitestats_fastestusers_body.tpl sitestats_monthlystats_body.tpl sitestats_mostintopics_body.tpl sitestats_sitestaff_body.tpl sitestats_topavatars_body.tpl sitestats_topposters_body.tpl sitestats_topposters_tiny.tpl sitestats_topreferers_body.tpl sitestats_topsmilies_body.tpl sitestats_topstarters_body.tpl sitestats_toptopics_body.tpl sitestats_topwords_body.tpl sitestats_usersranks_body.tpl Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- sitestats_topwords_body.tpl DELETED --- --- sitestats_sitestaff_body.tpl DELETED --- --- sitestats_topposters_body.tpl DELETED --- --- sitestats_adminstats_body.tpl DELETED --- --- sitestats_usersranks_body.tpl DELETED --- --- sitestats_topsmilies_body.tpl DELETED --- --- sitestats_toptopics_body.tpl DELETED --- --- sitestats_topreferers_body.tpl DELETED --- --- sitestats_topavatars_body.tpl DELETED --- --- sitestats_topstarters_body.tpl DELETED --- --- sitestats_counter_body.tpl DELETED --- --- sitestats_topposters_tiny.tpl DELETED --- --- sitestats_fastestusers_body.tpl DELETED --- --- sitestats_monthlystats_body.tpl DELETED --- --- sitestats_mostintopics_body.tpl DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:58
|
Update of /cvsroot/mxbb/mx_sitestats/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/templates/admin Removed Files: sitestats_counter_admin.tpl sitestats_referers_admin.tpl sitestats_settings.tpl Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- sitestats_referers_admin.tpl DELETED --- --- sitestats_counter_admin.tpl DELETED --- --- sitestats_settings.tpl DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:58
|
Update of /cvsroot/mxbb/mx_sitestats/language/lang_swedish In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/language/lang_swedish Removed Files: lang_admin.php lang_main.php Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- lang_main.php DELETED --- --- lang_admin.php DELETED --- |
Update of /cvsroot/mxbb/mx_sitestats In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191 Removed Files: SiteStats.pak adminstats.php collector.php counter.php db_install.php db_uninstall.php db_upgrade.php fastestusers.php monthlyposts.php monthlytopics.php monthlyusers.php mostintopics.php mx_install_readme.htm sitestaff.php topavatars.php topposters.php topposters_tiny.php topreferers.php topsmilies.php topstarters.php toptopics.php topwords.php usersranks.php version_history.txt Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- monthlyposts.php DELETED --- --- db_upgrade.php DELETED --- --- topstarters.php DELETED --- --- version_history.txt DELETED --- --- SiteStats.pak DELETED --- --- topposters.php DELETED --- --- sitestaff.php DELETED --- --- adminstats.php DELETED --- --- topreferers.php DELETED --- --- mostintopics.php DELETED --- --- collector.php DELETED --- --- monthlyusers.php DELETED --- --- topwords.php DELETED --- --- usersranks.php DELETED --- --- db_uninstall.php DELETED --- --- topavatars.php DELETED --- --- mx_install_readme.htm DELETED --- --- db_install.php DELETED --- --- topsmilies.php DELETED --- --- monthlytopics.php DELETED --- --- topposters_tiny.php DELETED --- --- fastestusers.php DELETED --- --- counter.php DELETED --- --- toptopics.php DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:48
|
Update of /cvsroot/mxbb/mx_sitestats/images/digits/mb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/images/digits/mb Removed Files: 0.gif 1.gif 2.gif 3.gif 4.gif 5.gif 6.gif 7.gif 8.gif 9.gif Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- 9.gif DELETED --- --- 8.gif DELETED --- --- 7.gif DELETED --- --- 6.gif DELETED --- --- 1.gif DELETED --- --- 0.gif DELETED --- --- 5.gif DELETED --- --- 4.gif DELETED --- --- 3.gif DELETED --- --- 2.gif DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:48
|
Update of /cvsroot/mxbb/mx_sitestats/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/includes Removed Files: common.php Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- common.php DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:48
|
Update of /cvsroot/mxbb/mx_sitestats/images/digits In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/images/digits Removed Files: spacer.gif Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- spacer.gif DELETED --- |
|
From: Markus P. <mar...@us...> - 2005-05-02 09:24:48
|
Update of /cvsroot/mxbb/mx_sitestats/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1191/admin Removed Files: admin_counter.php admin_referers.php admin_sitestats.php Log Message: Removed all stuff from mx_sitestats module in CVS. Read this for agreement: http://www.mx-system.com/forum/viewtopic.php?p=30606#30606 --- admin_referers.php DELETED --- --- admin_sitestats.php DELETED --- --- admin_counter.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:20:22
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3409/modules/mx_pafiledb/admin Modified Files: pa_block_config.php Log Message: minor cache related fixes Index: pa_block_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/pa_block_config.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pa_block_config.php 11 Apr 2005 17:55:39 -0000 1.2 --- pa_block_config.php 1 May 2005 20:20:11 -0000 1.3 *************** *** 22,25 **** --- 22,26 ---- $module_root_path = "../"; + $no_page_header = TRUE; require( $mx_root_path . 'admin/pagestart.php' ); |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:20:00
|
Update of /cvsroot/mxbb/mx_newssuite/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3262/modules/mx_newssuite/admin Modified Files: news_config.php Log Message: minor cache related fixes Index: news_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/admin/news_config.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** news_config.php 11 Feb 2005 22:11:57 -0000 1.10 --- news_config.php 1 May 2005 20:19:48 -0000 1.11 *************** *** 24,27 **** --- 24,29 ---- $mx_root_path = '../../../'; $module_root_path = "../"; + + $no_page_header = TRUE; require( $mx_root_path . 'admin/pagestart.php' ); |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:19:34
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3147/modules/mx_kb/admin Modified Files: kb_config.php Log Message: minor cache related fixes Index: kb_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/kb_config.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** kb_config.php 20 Apr 2005 19:30:17 -0000 1.9 --- kb_config.php 1 May 2005 20:19:23 -0000 1.10 *************** *** 27,30 **** --- 27,31 ---- define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); + $no_page_header = TRUE; require( $mx_root_path . 'admin/pagestart.php' ); |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:19:11
|
Update of /cvsroot/mxbb/mx_forum/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3064/modules/mx_forum/admin Modified Files: phpbb_config.php Log Message: minor cache related fixes Index: phpbb_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_forum/admin/phpbb_config.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** phpbb_config.php 18 Feb 2005 10:06:52 -0000 1.7 --- phpbb_config.php 1 May 2005 20:19:02 -0000 1.8 *************** *** 13,16 **** --- 13,18 ---- $mx_root_path = '../../../'; $module_root_path = "../"; + + $no_page_header = TRUE; require( $mx_root_path . 'admin/pagestart.php' ); *************** *** 149,154 **** } ! // Update cache ! update_session_cache( $block_id ); $_SESSION['phpbb_setup'] = ''; --- 151,156 ---- } ! // Update mxBB cache ! $mx_cache->update( MX_BLOCK, $block_id ); $_SESSION['phpbb_setup'] = ''; |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:18:32
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2796/modules/mx_textblocks/admin Modified Files: mx_textblock_edit.php Log Message: minor cache related fixes Index: mx_textblock_edit.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/admin/mx_textblock_edit.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** mx_textblock_edit.php 26 Apr 2005 18:07:30 -0000 1.19 --- mx_textblock_edit.php 1 May 2005 20:18:09 -0000 1.20 *************** *** 23,26 **** --- 23,27 ---- $module_root_path = '../'; + $no_page_header = TRUE; require($mx_root_path . 'admin/pagestart.php'); include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx); // required for search tables |
|
From: Jon O. <jon...@us...> - 2005-05-01 20:18:32
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2796/includes Modified Files: mx_cache.php Log Message: minor cache related fixes Index: mx_cache.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_cache.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_cache.php 1 May 2005 16:02:12 -0000 1.5 --- mx_cache.php 1 May 2005 20:18:09 -0000 1.6 *************** *** 145,150 **** if ( MX_CACHE_DEBUG ) { echo('writing id block cache'); } ! $block_config = $this->_get_block_config( $block_id, 0 ); ! $this->_data2cache( $block_config, $cache_file, $action, $type ); break; --- 145,150 ---- if ( MX_CACHE_DEBUG ) { echo('writing id block cache'); } ! $block_config = $this->_get_block_config( $id, 0 ); ! $this->_data2cache( $block_config[$id], $cache_file, $action, $type ); break; *************** *** 969,971 **** --- 969,977 ---- } + function update_session_cache( $block_id = '' ) + { + global $mx_cache; + + $mx_cache->update( MX_BLOCK, $block_id ); + } ?> \ No newline at end of file |
|
From: Markus P. <mar...@us...> - 2005-05-01 19:47:07
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28273 Modified Files: template.php Log Message: Revised template.php. It works on eXtreme Styles MOD ;-) Index: template.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/template.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** template.php 21 Mar 2005 22:10:25 -0000 1.11 --- template.php 1 May 2005 19:46:54 -0000 1.12 *************** *** 1,14 **** <?php /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- - * copyright : (C) 2001 The phpBB Group - * email : su...@ph... * * $Id$ --- 1,11 ---- <?php /** ------------------------------------------------------------------------ ! * subject : mxBB-Portal, CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- * * $Id$ *************** *** 35,39 **** * This is required. Reason is constructors have different method names. */ ! function mx_Template( $root = "." ) { parent::Template($root); --- 32,36 ---- * This is required. Reason is constructors have different method names. */ ! function mx_Template($root = '.') { parent::Template($root); *************** *** 47,108 **** * object. */ ! function make_filename( $filename ) { global $module_root_path, $mx_root_path, $phpbb_root_path, $theme; ! $style_path = $theme['template_name'] . '/'; ! ! // Look at MX-Module folder... ! ! if ( file_exists( $module_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $module_root_path . 'templates/' . $style_path . $filename; } ! else if ( file_exists( $module_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $module_root_path . 'templates/subSilver/' . $filename; } ! else if ( file_exists( $module_root_path . 'templates/' . $filename ) ) { $filename = $module_root_path . 'templates/' . $filename; ! } ! ! // Look at MX-Root folder... ! ! else if ( file_exists( $mx_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $mx_root_path . 'templates/' . $style_path . $filename; } ! else if ( file_exists( $mx_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $mx_root_path . 'templates/subSilver/' . $filename; } ! else if ( file_exists( $mx_root_path . 'templates/' . $filename ) ) { $filename = $mx_root_path . 'templates/' . $filename; } ! else if ( file_exists( $mx_root_path . $this->root . '/' . $filename ) ) { $filename = $mx_root_path . $this->root . '/' . $filename; ! } ! // Look at phpBB-Root folder... ! ! else if ( file_exists( $phpbb_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $phpbb_root_path . 'templates/' . $style_path . $filename; } ! else if ( file_exists( $phpbb_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $phpbb_root_path . 'templates/subSilver/' . $filename; } ! else if ( file_exists( $phpbb_root_path . $this->root . '/' . $filename ) ) { $filename = $phpbb_root_path . $this->root . '/' . $filename; } ! else if ( file_exists( $this->root . '/' . $filename ) ) ! { // Check if it's an absolute or relative path. ! if ( substr( $filename, 0, 1 ) != '/' ) { $filename = ($rp_filename = phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; --- 44,108 ---- * object. */ ! function make_filename($filename) { global $module_root_path, $mx_root_path, $phpbb_root_path, $theme; ! $style_path = $theme['template_name'] . '/'; ! ! // ! // Look at mxBB-Module folder... ! // ! if( file_exists($module_root_path . 'templates/' . $style_path . $filename) ) { $filename = $module_root_path . 'templates/' . $style_path . $filename; } ! else if( file_exists($module_root_path . 'templates/subSilver/' . $filename) ) { $filename = $module_root_path . 'templates/subSilver/' . $filename; } ! else if( file_exists($module_root_path . 'templates/' . $filename) ) { $filename = $module_root_path . 'templates/' . $filename; ! } ! ! // ! // Look at mxBB-Root folder... ! // ! else if( file_exists($mx_root_path . 'templates/' . $style_path . $filename) ) { $filename = $mx_root_path . 'templates/' . $style_path . $filename; } ! else if( file_exists($mx_root_path . 'templates/subSilver/' . $filename) ) { $filename = $mx_root_path . 'templates/subSilver/' . $filename; } ! else if( file_exists($mx_root_path . 'templates/' . $filename) ) { $filename = $mx_root_path . 'templates/' . $filename; } ! else if( file_exists($mx_root_path . $this->root . '/' . $filename) ) { $filename = $mx_root_path . $this->root . '/' . $filename; ! } ! ! // // Look at phpBB-Root folder... ! // ! else if( file_exists($phpbb_root_path . 'templates/' . $style_path . $filename) ) { $filename = $phpbb_root_path . 'templates/' . $style_path . $filename; } ! else if( file_exists($phpbb_root_path . 'templates/subSilver/' . $filename) ) { $filename = $phpbb_root_path . 'templates/subSilver/' . $filename; } ! else if( file_exists($phpbb_root_path . $this->root . '/' . $filename) ) { $filename = $phpbb_root_path . $this->root . '/' . $filename; } ! else if( file_exists($this->root . '/' . $filename) ) ! { // Check if it's an absolute or relative path. ! if( substr($filename, 0, 1) != '/' ) { $filename = ($rp_filename = phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; *************** *** 110,116 **** } ! if ( !file_exists( $filename ) ) { ! die( "Template->make_filename(): Error - file $filename does not exist." ); } --- 110,116 ---- } ! if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist."); } |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:42:10
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb/admin Modified Files: admin_pa_catauth.php admin_pa_category.php admin_pa_custom.php admin_pa_fchecker.php admin_pa_file.php admin_pa_license.php admin_pa_settings.php admin_pa_ug_auth.php Log Message: additional fixes - adding jumpbox Index: admin_pa_fchecker.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_fchecker.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_pa_fchecker.php 21 Apr 2005 20:55:42 -0000 1.9 --- admin_pa_fchecker.php 1 May 2005 16:41:28 -0000 1.10 *************** *** 24,31 **** define( 'MXBB_MODULE', false ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Fchecker_title'] = $file; return; } --- 24,35 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['6_Fchecker_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 48,53 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Fchecker_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 51,61 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['6_Fchecker_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_custom.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_custom.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** admin_pa_custom.php 21 Apr 2005 20:55:42 -0000 1.10 --- admin_pa_custom.php 1 May 2005 16:41:28 -0000 1.11 *************** *** 24,31 **** define( 'MXBB_MODULE', false ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Custom_manage_title'] = $file; return; } --- 24,35 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['5_Custom_manage_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 50,55 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Custom_manage_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 53,63 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['5_Custom_manage_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_category.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_pa_category.php 21 Apr 2005 20:55:42 -0000 1.9 --- admin_pa_category.php 1 May 2005 16:41:27 -0000 1.10 *************** *** 23,31 **** define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', false ); ! if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Cat_manage_title'] = $file; return; } --- 23,35 ---- define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', false ); ! ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require_once( $phpbb_root_path . 'extension.inc' ); ! if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['1_Cat_manage_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 49,54 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Cat_manage_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 52,62 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['1_Cat_manage_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_file.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** admin_pa_file.php 21 Apr 2005 20:55:42 -0000 1.12 --- admin_pa_file.php 1 May 2005 16:41:28 -0000 1.13 *************** *** 24,31 **** define( 'MXBB_MODULE', false ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['File_manage_title'] = $file; return; } --- 24,35 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['2_File_manage_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 49,54 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['File_manage_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 52,62 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['2_File_manage_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_settings.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_settings.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** admin_pa_settings.php 21 Apr 2005 20:55:42 -0000 1.10 --- admin_pa_settings.php 1 May 2005 16:41:28 -0000 1.11 *************** *** 24,31 **** define( 'MXBB_MODULE', false ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Configuration_title'] = $file; return; } --- 24,35 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['0_Configuration_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 48,53 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Configuration_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 51,61 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['0_Configuration_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_ug_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_ug_auth.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_pa_ug_auth.php 21 Apr 2005 20:55:42 -0000 1.6 --- admin_pa_ug_auth.php 1 May 2005 16:41:28 -0000 1.7 *************** *** 24,27 **** --- 24,30 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { *************** *** 33,38 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 36,40 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); Index: admin_pa_catauth.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_catauth.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_pa_catauth.php 21 Apr 2005 20:55:42 -0000 1.8 --- admin_pa_catauth.php 1 May 2005 16:41:26 -0000 1.9 *************** *** 23,31 **** define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', false ); ! if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Permissions_title'] = $file; return; } --- 23,35 ---- define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', false ); ! ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require_once( $phpbb_root_path . 'extension.inc' ); ! if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['3_Permissions_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 48,53 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['Permissions_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 51,61 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['3_Permissions_title'] = $module_root_path . 'admin/' . $file; return; } Index: admin_pa_license.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pa_license.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_pa_license.php 21 Apr 2005 20:55:42 -0000 1.9 --- admin_pa_license.php 1 May 2005 16:41:28 -0000 1.10 *************** *** 24,31 **** define( 'MXBB_MODULE', false ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['License_title'] = $file; return; } --- 24,35 ---- define( 'MXBB_MODULE', false ); + $phpbb_root_path = $module_root_path = $mx_root_path = './../'; + require_once( $phpbb_root_path . 'extension.inc' ); + if ( !empty( $setmodules ) ) { + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $file = basename( __FILE__ ); ! $module['pafileDB_Download']['4_License_title'] = $file; return; } *************** *** 34,39 **** $no_page_header = true; ! $phpbb_root_path = $module_root_path = $mx_root_path = './../'; ! require( $phpbb_root_path . 'extension.inc' ); require( './pagestart.' . $phpEx ); --- 38,42 ---- $no_page_header = true; ! require( './pagestart.' . $phpEx ); *************** *** 48,53 **** if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); ! $module['pafileDB_Download']['License_title'] = 'modules/mx_pafiledb/admin/' . $file; return; } --- 51,61 ---- if ( !empty( $setmodules ) ) { + $mx_root_path = './../'; + $module_root_path = './../modules/mx_pafiledb/'; + require_once( $mx_root_path . 'extension.inc' ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); + $file = basename( __FILE__ ); ! $module['pafileDB_Download']['4_License_title'] = $module_root_path . 'admin/' . $file; return; } |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:42:07
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb Modified Files: db_uninstall.php Log Message: additional fixes - adding jumpbox Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_uninstall.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_uninstall.php 16 Jan 2005 01:04:00 -0000 1.7 --- db_uninstall.php 1 May 2005 16:41:28 -0000 1.8 *************** *** 42,45 **** --- 42,54 ---- // End session management } + + // For compatibility with core 2.7.+ + define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); + + if ( MXBB_27x ) + { + include_once( $mx_root_path . 'modules/mx_pafiledb/pafiledb/includes/functions_mx.' . $phpEx ); + } + $sql = array( "DROP TABLE " . $mx_table_prefix . "pa_cat ", "DROP TABLE " . $mx_table_prefix . "pa_auth ", |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:41:41
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb/templates/subSilver Modified Files: pa_footer.tpl pa_lists.tpl Log Message: additional fixes - adding jumpbox Index: pa_lists.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_lists.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pa_lists.tpl 9 Jan 2005 21:44:14 -0000 1.3 --- pa_lists.tpl 1 May 2005 16:41:30 -0000 1.4 *************** *** 2,6 **** <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <td class="row2" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"><span class="cattitle"> {L_RECENT_PUBLIC_PICS}</span></td> </tr> <!-- BEGIN no_pics --> --- 2,6 ---- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"> {L_RECENT_PUBLIC_PICS}</th> </tr> <!-- BEGIN no_pics --> *************** *** 31,35 **** <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <td class="row2" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"><span class="cattitle"> {L_MOST_PUBLIC_PICS}</span></td> </tr> <!-- BEGIN no_pics --> --- 31,35 ---- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"> {L_MOST_PUBLIC_PICS}</th> </tr> <!-- BEGIN no_pics --> *************** *** 60,64 **** <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <td class="row2" height="25" colspan="{S_COLS}" align="left" nowrap="nowrap"><span class="cattitle"> {L_TOPRATED_PUBLIC_PICS}</span></td> </tr> <!-- BEGIN no_pics --> --- 60,64 ---- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"> {L_TOPRATED_PUBLIC_PICS}</th> </tr> <!-- BEGIN no_pics --> *************** *** 89,93 **** <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <td class="row2" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"><span class="cattitle"> {L_RANDOM_PUBLIC_PICS}</span></td> </tr> <!-- BEGIN no_pics --> --- 89,93 ---- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" align="left" colspan="{S_COLS}" nowrap="nowrap"> {L_RANDOM_PUBLIC_PICS}</th> </tr> <!-- BEGIN no_pics --> Index: pa_footer.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_footer.tpl,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pa_footer.tpl 18 Feb 2005 10:09:07 -0000 1.13 --- pa_footer.tpl 1 May 2005 16:41:29 -0000 1.14 *************** *** 1,20 **** </td> </tr> - <!-- <tr> ! <td align="left" valign="top"> ! <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return false;}"> <input type="hidden" name="action" value="category" /> <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"> <option value="-1">{L_JUMP}</option> {JUMPMENU} - {MX_PAGE} </select> </form> </td> ! <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> - --> </table> </td> --- 1,20 ---- </td> </tr> <tr> ! <td align="left" valign="top" > <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return false;}"> <input type="hidden" name="action" value="category" /> + <input type="hidden" name="page" value="{MX_PAGE}" /> + <span class="gensmall">{L_JUMP} <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"> <option value="-1">{L_JUMP}</option> {JUMPMENU} </select> + <input type="submit" value="{L_GO}" class="liteoption" /> + </span> </form> </td> ! <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td> </tr> </table> </td> *************** *** 22,29 **** </table> ! <!-- ! <div align="center"><span class="copyright"><br /> ! Powered by paFileDB 3.1 ©2002 <a href="http://www.phparena.net/" target="_phpbb" class="copyright">PHP Arena</a>, <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=56035" target="_phpbb" class="copyright">Mohd (pafiledb integration v 0.0.9d)</a><br /> ! This script (pafileDB v. 2.0.0 :: mxBB Portal Module 2004) is modified by <a href="http://www.mx-system.com/" target="_phpbb" class="copyright">mxBB Team</a><br /> </span></div> ! --> --- 22,28 ---- </table> ! <!-- BEGIN copy_footer --> ! <div align="center"><span class="copyright"><br /> ! Powered by {L_MODULE_VERSION}, {L_MODULE_ORIG_AUTHOR} & <a href="http://www.mx-system.com/" target="_phpbb" class="copyright">{L_MODULE_AUTHOR}</a> © 2002-2005 <br /><a href="http://www.phpbb.com/phpBB/viewtopic.php?t=193124" target="_phpbb" class="copyright">PHPBB.com MOD</a> </span></div> ! <!-- END copy_footer --> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:41:41
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_category.php pa_file.php pa_post_comment.php pa_stats.php Log Message: additional fixes - adding jumpbox Index: pa_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_category.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pa_category.php 9 Jan 2005 21:44:14 -0000 1.7 --- pa_category.php 1 May 2005 16:41:29 -0000 1.8 *************** *** 122,125 **** --- 122,144 ---- message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } + + // + // + // User authorisation levels output + // + $pa_auth_can = '<br />' . ( ( $this->auth[$cat_id]['auth_upload'] ) ? $lang['PA_Rules_upload_can'] : $lang['PA_Rules_upload_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_view_file'] ) ? $lang['PA_Rules_view_file_can'] : $lang['PA_Rules_view_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_edit_file'] ) ? $lang['PA_Rules_edit_file_can'] : $lang['PA_Rules_edit_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_delete_file'] ) ? $lang['PA_Rules_delete_file_can'] : $lang['PA_Rules_delete_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_view_comment'] ) ? $lang['PA_Rules_view_comment_can'] : $lang['PA_Rules_view_comment_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_post_comment'] ) ? $lang['PA_Rules_post_comment_can'] : $lang['PA_Rules_post_comment_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_rate'] ) ? $lang['PA_Rules_rate_can'] : $lang['PA_Rules_rate_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$cat_id]['auth_download'] ) ? $lang['PA_Rules_download_can'] : $lang['PA_Rules_download_cannot'] ) . '<br />'; + + if ( $this->auth[$cat_id]['auth_mod'] ) + { + $pa_auth_can .= $lang['PA_Rules_moderate_can']; + } + // =================================================== // assign var for naviagation *************** *** 138,145 **** 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), */ // MX 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'] ) ); --- 157,165 ---- 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), */ + 'S_AUTH_LIST' => $pa_auth_can, // MX 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'] ) ); Index: pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_file.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pa_file.php 11 Apr 2005 17:55:41 -0000 1.11 --- pa_file.php 1 May 2005 16:41:29 -0000 1.12 *************** *** 95,98 **** --- 95,116 ---- } + // + // + // User authorisation levels output + // + $pa_auth_can = '<br />' . ( ( $this->auth[$file_data['file_catid']]['auth_upload'] ) ? $lang['PA_Rules_upload_can'] : $lang['PA_Rules_upload_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_view_file'] ) ? $lang['PA_Rules_view_file_can'] : $lang['PA_Rules_view_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_edit_file'] ) ? $lang['PA_Rules_edit_file_can'] : $lang['PA_Rules_edit_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_delete_file'] ) ? $lang['PA_Rules_delete_file_can'] : $lang['PA_Rules_delete_file_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_view_comment'] ) ? $lang['PA_Rules_view_comment_can'] : $lang['PA_Rules_view_comment_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_post_comment'] ) ? $lang['PA_Rules_post_comment_can'] : $lang['PA_Rules_post_comment_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_rate'] ) ? $lang['PA_Rules_rate_can'] : $lang['PA_Rules_rate_cannot'] ) . '<br />'; + $pa_auth_can .= ( ( $this->auth[$file_data['file_catid']]['auth_download'] ) ? $lang['PA_Rules_download_can'] : $lang['PA_Rules_download_cannot'] ) . '<br />'; + + if ( $this->auth[$file_data['file_catid']]['auth_mod'] ) + { + $pa_auth_can .= $lang['PA_Rules_moderate_can']; + } + $this->generate_category_nav( $file_data['file_catid'] ); *************** *** 103,106 **** --- 121,126 ---- // MX 'L_INDEX' => "<<", + + 'S_AUTH_LIST' => $pa_auth_can, /* - orig Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pa_post_comment.php 11 Apr 2005 17:55:41 -0000 1.8 --- pa_post_comment.php 1 May 2005 16:41:29 -0000 1.9 *************** *** 33,37 **** // MX FIX include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! include( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); if ( isset( $_REQUEST['file_id'] ) ) --- 33,37 ---- // MX FIX include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); if ( isset( $_REQUEST['file_id'] ) ) Index: pa_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_stats.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pa_stats.php 12 Apr 2005 19:32:57 -0000 1.10 --- pa_stats.php 1 May 2005 16:41:29 -0000 1.11 *************** *** 1,368 **** ! <?php ! /** ! * pafiledb mx module ! * ------------------- ! * copyright : (C) 2002 MX-System ! * begin : oct 23, 2003 ! * email : jon...@ho... ! * based on code by Mohd Basri, and pafilDB ! * ! * $Id$ ! */ ! /* ! paFileDB 3.0 ! ©2001/2002 PHP Arena ! Written by Todd ! to...@ph... ! http://www.phparena.net ! Keep all copyright links on the script visible ! Please read the license included with this script for more information. ! */ ! ! class pafiledb_stats extends pafiledb_public ! { ! function main( $action ) ! { ! global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $db, $images; ! global $_REQUEST, $phpbb_root_path, $userdata; ! // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx; ! ! if ( !$this->auth_global['auth_stats'] ) ! { ! if ( !$userdata['session_logged_in'] ) ! { ! /* - orig ! redirect(append_sid("login.$phpEx?redirect=dload.$phpEx?action=stats", true)); ! */ ! // MX ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); ! } ! ! $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! ! $num['cats'] = $this->total_cat; ! ! $sql = "SELECT file_id ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $num['files'] = $db->sql_numrows( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $newest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $oldest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! $popular = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $lpopular = $db->sql_fetchrow( $result ); ! $total_votes = $total_rating = 0; ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $total_rating += $row['rating']; ! $total_votes++; ! } ! $db->sql_freeresult( $result ); ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $mostdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $leastdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $totaldls += $row['file_dls']; ! } ! $db->sql_freeresult( $result ); ! ! $avg = @round( $total_rating / $total_votes ); ! ! $avgdls = @round( $totaldls / $num['files'] ); ! ! /* - orig ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! */ ! // MX ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! ! /* - orig ! $lang['Stats_text'] = str_replace("{total_files}", $num['files'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_categories}", $num['cats'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_downloads}", $totaldls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_newest_file}", append_sid("dload.php?action=file&id=" . $newest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{newest_file}", $newest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_oldest_file}", append_sid("dload.php?action=file&id=" . $oldest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{oldest_file}", $oldest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{average}", $avg, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_popular}", append_sid("dload.php?action=file&id=" . $popular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{popular}", $popular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most}", round($popular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_lpopular}", append_sid("dload.php?action=file&id=" . $lpopular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{lpopular}", $lpopular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least}", round($lpopular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{avg_dls}", $avgdls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_most_dl}", append_sid("dload.php?action=file&id=" . $mostdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_dl}", $mostdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_no}", $mostdl['file_dls'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_least_dl}", append_sid("dload.php?action=file&id=" . $leastdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_dl}", $leastdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_no}", $leastdl['file_dls'], $lang['Stats_text']); ! */ ! // MX ! $lang['Stats_text'] = str_replace( "{total_files}", $num['files'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); ! ! $agent_lang = array( 'OPERA' => 'Opera', 'IE' => 'Internet Explorer', 'MOZILLA' => 'Mozilla', 'NETSCAPE' => 'NetScape', 'OTHER' => 'Other' ); ! $agent_image = array( 'OPERA' => 'opera.gif', 'IE' => 'explorer.gif', 'MOZILLA' => 'mozilla.gif', 'NETSCAPE' => 'netscape.gif', 'OTHER' => 'irix.gif' ); ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! ! $os_lang = array( 'Win' => 'Windows', 'Mac' => 'Macintosh', 'Linux' => 'Linux', 'Unix' => 'Unix', 'Other' => 'Other' ); ! $os_image = array( 'Win' => 'windows.gif', 'Mac' => 'mac.gif', 'Linux' => 'linux.gif', 'Unix' => 'linux.gif', 'Other' => 'os2.gif' ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT downloader_os, downloader_browser ! FROM " . PA_DOWNLOAD_INFO_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_downloads = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_downloads ); $i++ ) ! { ! $os_point[$row_downloads[$i]['downloader_os']]++; ! $agent_point[$row_downloads[$i]['downloader_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT voter_os, voter_browser ! FROM " . PA_VOTES_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_ratings = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_ratings ); $i++ ) ! { ! $os_point[$row_ratings[$i]['voter_os']]++; ! $agent_point[$row_ratings[$i]['voter_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $pafiledb_template->assign_vars( array( ! /* - orig ! 'S_ACTION_CHART' => append_sid('dload.'.$phpEx.'?action=stats'), ! */ ! // MX ! 'S_ACTION_CHART' => append_sid( pa_this_mxurl( 'action=stats' ) ), ! ! 'L_STATISTICS' => $lang['Statistics'], ! /* - orig ! 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), ! */ ! // MX ! 'L_INDEX' => "<<", ! 'L_GENERAL_INFO' => $lang['General_Info'], ! 'L_DOWNLOADS_STATS' => $lang['Downloads_stats'], ! 'L_RATING_STATS' => $lang['Rating_stats'], ! 'L_OS' => $lang['Os'], ! 'L_BROWSERS' => $lang['Browsers'], ! ! /* - orig ! 'U_INDEX' => append_sid('index.'.$phpEx), ! 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), ! */ ! // MX ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! ! 'U_VOTE_LCAP' => $phpbb_root_path . "templates/subSilver/images/vote_lcap.gif", ! 'U_VOTE_RCAP' => $phpbb_root_path . "templates/subSilver/images/vote_rcap.gif", ! ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'], ! 'STATS_TEXT' => $lang['Stats_text'] ) ! ); ! $this->display( $lang['Download'], 'pa_stats_body.tpl' ); ! } ! } ! ?> \ No newline at end of file --- 1,368 ---- ! <?php ! /** ! * pafiledb mx module ! * ------------------- ! * copyright : (C) 2002 MX-System ! * begin : oct 23, 2003 ! * email : jon...@ho... ! * based on code by Mohd Basri, and pafilDB ! * ! * $Id$ ! */ ! /* ! paFileDB 3.0 ! ©2001/2002 PHP Arena ! Written by Todd ! to...@ph... ! http://www.phparena.net ! Keep all copyright links on the script visible ! Please read the license included with this script for more information. ! */ ! ! class pafiledb_stats extends pafiledb_public ! { ! function main( $action ) ! { ! global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $db, $images; ! global $_REQUEST, $phpbb_root_path, $userdata; ! // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx; ! ! if ( !$this->auth_global['auth_stats'] ) ! { ! if ( !$userdata['session_logged_in'] ) ! { ! /* - orig ! redirect(append_sid("login.$phpEx?redirect=dload.$phpEx?action=stats", true)); ! */ ! // MX ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); ! } ! ! $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! ! $num['cats'] = $this->total_cat; ! ! $sql = "SELECT file_id ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $num['files'] = $db->sql_numrows( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $newest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $oldest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! $popular = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $lpopular = $db->sql_fetchrow( $result ); ! $total_votes = $total_rating = 0; ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $total_rating += $row['rating']; ! $total_votes++; ! } ! $db->sql_freeresult( $result ); ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $mostdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $leastdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $totaldls += $row['file_dls']; ! } ! $db->sql_freeresult( $result ); ! ! $avg = @round( $total_rating / $total_votes ); ! ! $avgdls = @round( $totaldls / $num['files'] ); ! ! /* - orig ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx); ! */ ! // MX ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx ); ! ! /* - orig ! $lang['Stats_text'] = str_replace("{total_files}", $num['files'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_categories}", $num['cats'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_downloads}", $totaldls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_newest_file}", append_sid("dload.php?action=file&id=" . $newest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{newest_file}", $newest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_oldest_file}", append_sid("dload.php?action=file&id=" . $oldest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{oldest_file}", $oldest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{average}", $avg, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_popular}", append_sid("dload.php?action=file&id=" . $popular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{popular}", $popular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most}", round($popular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_lpopular}", append_sid("dload.php?action=file&id=" . $lpopular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{lpopular}", $lpopular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least}", round($lpopular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{avg_dls}", $avgdls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_most_dl}", append_sid("dload.php?action=file&id=" . $mostdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_dl}", $mostdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_no}", $mostdl['file_dls'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_least_dl}", append_sid("dload.php?action=file&id=" . $leastdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_dl}", $leastdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_no}", $leastdl['file_dls'], $lang['Stats_text']); ! */ ! // MX ! $lang['Stats_text'] = str_replace( "{total_files}", $num['files'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); ! ! $agent_lang = array( 'OPERA' => 'Opera', 'IE' => 'Internet Explorer', 'MOZILLA' => 'Mozilla', 'NETSCAPE' => 'NetScape', 'OTHER' => 'Other' ); ! $agent_image = array( 'OPERA' => 'opera.gif', 'IE' => 'explorer.gif', 'MOZILLA' => 'mozilla.gif', 'NETSCAPE' => 'netscape.gif', 'OTHER' => 'irix.gif' ); ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! ! $os_lang = array( 'Win' => 'Windows', 'Mac' => 'Macintosh', 'Linux' => 'Linux', 'Unix' => 'Unix', 'Other' => 'Other' ); ! $os_image = array( 'Win' => 'windows.gif', 'Mac' => 'mac.gif', 'Linux' => 'linux.gif', 'Unix' => 'linux.gif', 'Other' => 'os2.gif' ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT downloader_os, downloader_browser ! FROM " . PA_DOWNLOAD_INFO_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_downloads = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_downloads ); $i++ ) ! { ! $os_point[$row_downloads[$i]['downloader_os']]++; ! $agent_point[$row_downloads[$i]['downloader_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT voter_os, voter_browser ! FROM " . PA_VOTES_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_ratings = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_ratings ); $i++ ) ! { ! $os_point[$row_ratings[$i]['voter_os']]++; ! $agent_point[$row_ratings[$i]['voter_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $pafiledb_template->assign_vars( array( ! /* - orig ! 'S_ACTION_CHART' => append_sid('dload.'.$phpEx.'?action=stats'), ! */ ! // MX ! 'S_ACTION_CHART' => append_sid( pa_this_mxurl( 'action=stats' ) ), ! ! 'L_STATISTICS' => $lang['Statistics'], ! /* - orig ! 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), ! */ ! // MX ! 'L_INDEX' => "<<", ! 'L_GENERAL_INFO' => $lang['General_Info'], ! 'L_DOWNLOADS_STATS' => $lang['Downloads_stats'], ! 'L_RATING_STATS' => $lang['Rating_stats'], ! 'L_OS' => $lang['Os'], ! 'L_BROWSERS' => $lang['Browsers'], ! ! /* - orig ! 'U_INDEX' => append_sid('index.'.$phpEx), ! 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), ! */ ! // MX ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! ! 'U_VOTE_LCAP' => $phpbb_root_path . "templates/subSilver/images/vote_lcap.gif", ! 'U_VOTE_RCAP' => $phpbb_root_path . "templates/subSilver/images/vote_rcap.gif", ! ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'], ! 'STATS_TEXT' => $lang['Stats_text'] ) ! ); ! $this->display( $lang['Download'], 'pa_stats_body.tpl' ); ! } ! } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:41:38
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb/pafiledb/includes Modified Files: functions.php pafiledb_constants.php Log Message: additional fixes - adding jumpbox Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** functions.php 11 Apr 2005 17:55:40 -0000 1.13 --- functions.php 1 May 2005 16:41:29 -0000 1.14 *************** *** 720,735 **** global $phpEx, $template, $do_gzip_compress, $debug, $db, $starttime; // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx, $page_id; ! $pafiledb_template->assign_vars( array( 'JUMPMENU' => $pafiledb->modules[$pafiledb->module_name]->jumpmenu_option(), ! 'L_JUMP' => $lang['jump'], /* - orig 'S_JUMPBOX_ACTION' => append_sid('dload.php'), */ // MX ! 'S_JUMPBOX_ACTION' => append_sid( 'dload.php' ), 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ) ) ); $pafiledb->modules[$pafiledb->module_name]->_pafiledb(); if ( !isset( $_GET['explain'] ) ) { --- 720,747 ---- global $phpEx, $template, $do_gzip_compress, $debug, $db, $starttime; // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx, $page_id, $pa_auth_can; ! global $pa_module_version, $pa_module_orig_author, $pa_module_author; ! $pafiledb_template->assign_vars( array( 'JUMPMENU' => $pafiledb->modules[$pafiledb->module_name]->jumpmenu_option( 0, 0, array( $_GET['cat_id'] => 1 ) ), ! 'L_JUMP' => $lang['Jump'], ! 'L_GO' => $lang['Jump_go'], /* - orig 'S_JUMPBOX_ACTION' => append_sid('dload.php'), */ // MX ! 'MX_PAGE' => $page_id, ! 'L_MODULE_VERSION' => $pa_module_version, ! 'L_MODULE_ORIG_AUTHOR' => $pa_module_orig_author, ! 'L_MODULE_AUTHOR' => $pa_module_author, ! 'S_JUMPBOX_ACTION' => append_sid( pa_this_mxurl( ) ), 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ) ) ); $pafiledb->modules[$pafiledb->module_name]->_pafiledb(); + + if ( !MXBB_MODULE || MXBB_27x ) + { + $pafiledb_template->assign_block_vars( 'copy_footer', array() ); + } + if ( !isset( $_GET['explain'] ) ) { Index: pafiledb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/pafiledb_constants.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pafiledb_constants.php 12 Apr 2005 19:32:56 -0000 1.11 --- pafiledb_constants.php 1 May 2005 16:41:29 -0000 1.12 *************** *** 82,96 **** // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { $link_language = 'lang_english'; ! include( $module_root_path . 'language/' . $link_language . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin.' . $phpEx ); } else { $link_language = 'lang_' . $board_config['default_lang']; ! include( $module_root_path . 'language/' . $link_language . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin.' . $phpEx ); } --- 82,96 ---- // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx ) ) { $link_language = 'lang_english'; ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb_admin.' . $phpEx ); } else { $link_language = 'lang_' . $board_config['default_lang']; ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb_admin.' . $phpEx ); } *************** *** 121,127 **** if ( !MXBB_MODULE || MXBB_27x ) { ! $kb_module_version = "Knowledge Base v. 2.0.x"; ! $kb_module_author = "Haplo"; ! $kb_module_orig_author = "wGEric"; } else --- 121,127 ---- if ( !MXBB_MODULE || MXBB_27x ) { ! $pa_module_version = "pafileDB Download Manager v. 2.0.x"; ! $pa_module_author = "Haplo/Jon"; ! $pa_module_orig_author = "Mohd"; } else |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:41:37
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1825/modules/mx_pafiledb/pafiledb/docs Modified Files: update_009d_mx201.sql Log Message: additional fixes - adding jumpbox Index: update_009d_mx201.sql =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/docs/update_009d_mx201.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** update_009d_mx201.sql 11 Apr 2005 20:00:18 -0000 1.2 --- update_009d_mx201.sql 1 May 2005 16:41:28 -0000 1.3 *************** *** 9,13 **** MODIFY auth_delete_file tinyint(2) DEFAULT '0' NOT NULL; ! ALTER TABLE phpbb_kb_config MODIFY config_name VARCHAR(255) NOT NULL default '', MODIFY config_value VARCHAR(255) NOT NULL default '', --- 9,13 ---- MODIFY auth_delete_file tinyint(2) DEFAULT '0' NOT NULL; ! ALTER TABLE phpbb_pa_config MODIFY config_name VARCHAR(255) NOT NULL default '', MODIFY config_value VARCHAR(255) NOT NULL default '', |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:39:52
|
Update of /cvsroot/mxbb/mx_kb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv651/modules/mx_kb/includes Modified Files: functions_kb.php functions_kb_field.php kb_constants.php kb_moderator.php kb_post.php kb_rate.php Log Message: additional fixes Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/kb_constants.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** kb_constants.php 12 Apr 2005 19:30:55 -0000 1.27 --- kb_constants.php 1 May 2005 16:39:22 -0000 1.28 *************** *** 1,125 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! if ( !MXBB_MODULE ) ! { ! $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; ! $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); ! $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; ! $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); ! $script_name = ($script_name == '') ? $script_name : '/' . $script_name; ! ! define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); ! define( 'PHPBB_URL', PORTAL_URL ); ! ! $reader_mode = false; ! $kb_config['news_operate_mode'] = false; ! $mx_table_prefix = $table_prefix; ! $is_block = false; ! } ! ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -500 ); ! define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); ! define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); ! define( 'KB_CONFIG_TABLE', $mx_table_prefix . 'kb_config' ); ! define( 'KB_TYPES_TABLE', $mx_table_prefix . 'kb_types' ); ! define( 'KB_WORD_TABLE', $mx_table_prefix . 'kb_wordlist' ); ! define( 'KB_SEARCH_TABLE', $mx_table_prefix . 'kb_results' ); ! define( 'KB_MATCH_TABLE', $mx_table_prefix . 'kb_wordmatch' ); ! define( 'KB_VOTES_TABLE', $mx_table_prefix . 'kb_votes' ); ! ! define( 'KB_CUSTOM_TABLE', $mx_table_prefix . 'kb_custom' ); ! define( 'KB_CUSTOM_DATA_TABLE', $mx_table_prefix . 'kb_customdata' ); ! ! // Field Types ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); ! ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $kb_module_version = "Knowledge Base v. 2.0.x"; ! $kb_module_author = "Haplo"; ! $kb_module_orig_author = "wGEric"; ! } ! else ! { ! $mxbb_footer_addup[] = 'mxBB Knowledge Base Module'; ! } ! ! ! ! ?> \ No newline at end of file --- 1,125 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! if ( !MXBB_MODULE ) ! { ! $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; ! $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); ! $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; ! $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); ! $script_name = ($script_name == '') ? $script_name : '/' . $script_name; ! ! define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); ! define( 'PHPBB_URL', PORTAL_URL ); ! ! $reader_mode = false; ! $kb_config['news_operate_mode'] = false; ! $mx_table_prefix = $table_prefix; ! $is_block = false; ! } ! ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -500 ); ! define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); ! define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); ! define( 'KB_CONFIG_TABLE', $mx_table_prefix . 'kb_config' ); ! define( 'KB_TYPES_TABLE', $mx_table_prefix . 'kb_types' ); ! define( 'KB_WORD_TABLE', $mx_table_prefix . 'kb_wordlist' ); ! define( 'KB_SEARCH_TABLE', $mx_table_prefix . 'kb_results' ); ! define( 'KB_MATCH_TABLE', $mx_table_prefix . 'kb_wordmatch' ); ! define( 'KB_VOTES_TABLE', $mx_table_prefix . 'kb_votes' ); ! ! define( 'KB_CUSTOM_TABLE', $mx_table_prefix . 'kb_custom' ); ! define( 'KB_CUSTOM_DATA_TABLE', $mx_table_prefix . 'kb_customdata' ); ! ! // Field Types ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); ! ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_kb.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_kb.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_kb.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $kb_module_version = "Knowledge Base MOD v. 2.0.x"; ! $kb_module_author = "Haplo/Jon"; ! $kb_module_orig_author = "wGEric"; ! } ! else ! { ! $mxbb_footer_addup[] = 'mxBB Knowledge Base Module'; ! } ! ! ! ! ?> \ No newline at end of file Index: kb_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/kb_rate.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** kb_rate.php 2 Apr 2005 20:37:03 -0000 1.10 --- kb_rate.php 1 May 2005 16:39:22 -0000 1.11 *************** *** 205,209 **** // Send variables to template (the associated *.tpl file) ! $template->assign_vars( array( 'S_RATE_ACTION' => append_sid( this_kb_mxurl( "mode=rate&cat=$category_id&k=$article_id" ) ), 'L_RATE' => $lang['Rate'], 'L_RERROR' => $lang['Rerror'], --- 205,209 ---- // Send variables to template (the associated *.tpl file) ! $template->assign_vars( array( 'S_RATE_ACTION' => append_sid( this_kb_mxurl( ) ), 'L_RATE' => $lang['Rate'], 'L_RERROR' => $lang['Rerror'], Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/functions_kb.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** functions_kb.php 21 Apr 2005 19:36:17 -0000 1.32 --- functions_kb.php 1 May 2005 16:39:22 -0000 1.33 *************** *** 522,539 **** // update number of articles in a category ! function update_kb_number( $id, $change ) { ! global $db; ! // update number of articles in category if article has been approve ! $sql = "SELECT * FROM " . KB_CATEGORIES_TABLE . " WHERE category_id = '" . $id . "'"; if ( !( $results = $db->sql_query( $sql ) ) ) { message_die( GENERAL_ERROR, "Could not obtain article data", '', __LINE__, __FILE__, $sql ); } if ( $kb_cat = $db->sql_fetchrow( $results ) ) { ! $new_number = $kb_cat['number_articles'] . $change; } ! $sql = "UPDATE " . KB_CATEGORIES_TABLE . " SET number_articles = " . $new_number . " WHERE category_id = '" . $id . "'"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 522,569 ---- // update number of articles in a category ! function update_kb_number( $category_id, $change = 0 ) { ! global $db, $kb_config; ! ! // Get number of articles in this category ! $sql = "SELECT count(article_id) AS total ! FROM " . KB_ARTICLES_TABLE . " ! WHERE "; ! ! // newssuite addon ! if ( $kb_config['news_operate_mode'] ) ! { ! $kb_types_list = ns_auth_item( $category_id ); ! $sql .= " article_type IN " . $kb_types_list . ' AND'; ! } ! ! $sql .= " article_category_id = '$category_id' AND approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Error getting total articles', '', __LINE__, __FILE__, $sql ); ! } ! ! if ( $total = $db->sql_fetchrow( $result ) ) ! { ! // Define number of articles in this cateogry + subcats ! $total_articles = $total['total'] + $change; ! } ! ! // Get some category data ! $sql = "SELECT * FROM " . KB_CATEGORIES_TABLE . " WHERE category_id = '" . $category_id . "'"; ! if ( !( $results = $db->sql_query( $sql ) ) ) { message_die( GENERAL_ERROR, "Could not obtain article data", '', __LINE__, __FILE__, $sql ); } + if ( $kb_cat = $db->sql_fetchrow( $results ) ) { ! $parent_id = $kb_cat['parent']; } ! ! // update number of articles in category if article has been approve ! $sql = "UPDATE " . KB_CATEGORIES_TABLE . " SET number_articles = " . $total_articles . " WHERE category_id = '" . $category_id . "'"; if ( !( $result = $db->sql_query( $sql ) ) ) *************** *** 542,548 **** } ! if ( $kb_cat['parent'] != '0' ) { ! update_kb_number( $kb_cat['parent'], $change ); } --- 572,578 ---- } ! if ( $parent_id != '0' ) { ! update_kb_number( $parent_id, $total_articles ); } *************** *** 1331,1335 **** function kb_insert_post( ! $message, $subject, $forum_id, --- 1361,1365 ---- function kb_insert_post( ! $kb_message, $subject, $forum_id, *************** *** 1362,1367 **** // parse the message and the subject (belt & braces :) ! $message = addslashes(unprepare_message($message)); ! $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); $message_update_text = addslashes(unprepare_message($message_update_text)); $message_update_text = prepare_message(trim($message_update_text), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); --- 1392,1397 ---- // parse the message and the subject (belt & braces :) ! $kb_message = addslashes(unprepare_message($kb_message)); ! $kb_message = prepare_message(trim($kb_message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); $message_update_text = addslashes(unprepare_message($message_update_text)); $message_update_text = prepare_message(trim($message_update_text), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); *************** *** 1433,1441 **** case '.0.2' : case '.0.3' : ! add_search_words( $post_id, stripslashes( $message ), stripslashes( $subject ) ); break; default : ! add_search_words( '', $post_id, stripslashes( $message ), stripslashes( $subject ) ); break; } --- 1463,1471 ---- case '.0.2' : case '.0.3' : ! add_search_words( $post_id, stripslashes( $kb_message ), stripslashes( $subject ) ); break; default : ! add_search_words( '', $post_id, stripslashes( $kb_message ), stripslashes( $subject ) ); break; } *************** *** 1458,1464 **** mx_message_die( GENERAL_ERROR, "Could not obtain orig_post_id data", '', __LINE__, __FILE__, $sql ); } ! $row = $db->sql_fetchrow( $result ); ! $orig_post_id = $row[0]; $sql = "UPDATE " . TOPICS_TABLE . " SET --- 1488,1494 ---- mx_message_die( GENERAL_ERROR, "Could not obtain orig_post_id data", '', __LINE__, __FILE__, $sql ); } ! $row_tmp = $db->sql_fetchrow( $result ); ! $orig_post_id = $row_tmp['topic_first_post_id']; $sql = "UPDATE " . TOPICS_TABLE . " SET *************** *** 1471,1475 **** } ! $message_tmp = $mode == 'newtopic' ? $message : $message . '\n\n' . $message_update_text; $sql = "UPDATE " . POSTS_TEXT_TABLE . " SET --- 1501,1505 ---- } ! $message_tmp = ( ( $mode == 'newtopic' ) ? $kb_message : $kb_message . '\n\n' . $message_update_text ); $sql = "UPDATE " . POSTS_TEXT_TABLE . " SET Index: functions_kb_field.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/functions_kb_field.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** functions_kb_field.php 11 Apr 2005 20:07:57 -0000 1.4 --- functions_kb_field.php 1 May 2005 16:39:22 -0000 1.5 *************** *** 252,260 **** function display_edit_input( $file_id, $field_id, $field_data ) { ! global $template; $template->assign_block_vars( 'input', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], ! 'FIELD_VALUE' => ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : '' ) ); } --- 252,262 ---- function display_edit_input( $file_id, $field_id, $field_data ) { ! global $template, $_POST; ! $field_value_temp = (!empty( $this->field_data_rowset[$file_id][$field_id]['data'] )) ? $this->field_data_rowset[$file_id][$field_id]['data'] : ''; ! $field_value = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $field_value_temp ; $template->assign_block_vars( 'input', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], ! 'FIELD_VALUE' => $field_value ) ); } *************** *** 263,270 **** { global $template; $template->assign_block_vars( 'textarea', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], ! 'FIELD_VALUE' => ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : '' ) ); } --- 265,274 ---- { global $template; + $field_value_temp = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : ''; + $field_value = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $field_value_temp ; $template->assign_block_vars( 'textarea', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], ! 'FIELD_VALUE' => $field_value ) ); } *************** *** 278,282 **** ); ! $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); --- 282,287 ---- ); ! $data_temp = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : array(); ! $data = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $data_temp ; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); *************** *** 300,304 **** ); ! $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : ''; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); --- 305,310 ---- ); ! $data_temp = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : ''; ! $data = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $data_temp ; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); *************** *** 322,326 **** ); ! $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); --- 328,333 ---- ); ! $data_temp = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); ! $data = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $data_temp ; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); *************** *** 353,357 **** ); ! $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); --- 360,365 ---- ); ! $data_temp = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); ! $data = !empty( $_POST['field'][$field_data['custom_id']] ) ? $_POST['field'][$field_data['custom_id']] : $data_temp ; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); Index: kb_post.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/kb_post.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** kb_post.php 9 Apr 2005 21:41:28 -0000 1.9 --- kb_post.php 1 May 2005 16:39:22 -0000 1.10 *************** *** 175,197 **** { $approve = 1; - - if ( $cat_switch ) - { - update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) ); - update_kb_number( $category_id, '+ 1' ); - } - else - { - update_kb_number( $category_id, '+ 1' ); - } } else { $approve = 2; - - if ( $cat_switch ) - { - update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) ); - } } --- 175,182 ---- *************** *** 211,215 **** mx_message_die( GENERAL_ERROR, "Could not edit article", '', __LINE__, __FILE__, $sql ); } ! mx_remove_search_post( $article_id, 'kb' ); --- 196,206 ---- mx_message_die( GENERAL_ERROR, "Could not edit article", '', __LINE__, __FILE__, $sql ); } ! ! if ( $cat_switch ) ! { ! update_kb_number( $old_category_id ); ! } ! update_kb_number( $category_id ); ! mx_remove_search_post( $article_id, 'kb' ); *************** *** 238,242 **** { $approve = 1; - update_kb_number( $category_id, '+ 1' ); } else --- 229,232 ---- *************** *** 253,256 **** --- 243,248 ---- } + update_kb_number( $category_id ); + // Update kb_row $sql = "SELECT * *************** *** 302,306 **** mx_add_search_words( 'single', $article_id, stripslashes( $article_text ), stripslashes( $article_title ), 'kb' ); - // $message = $lang['Article_submitted'] . '<br /><br />' . sprintf( $lang['Click_return_kb'], '<a href="' . append_sid( this_kb_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); $message = $lang['Article_submitted'] . '<br /><br />' . sprintf( $lang['Click_return_kb'], '<a href="' . append_sid( this_kb_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf($lang['Click_return_article'], '<a href="' . append_sid(this_kb_mxurl("mode=article&k=" . $article_id)). '">', '</a>') . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); } --- 294,297 ---- Index: kb_moderator.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/kb_moderator.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** kb_moderator.php 9 Apr 2005 21:41:28 -0000 1.10 --- kb_moderator.php 1 May 2005 16:39:22 -0000 1.11 *************** *** 118,122 **** $article_category_id = $kb_row['article_category_id']; ! update_kb_number( $article_category_id, '+ 1' ); kb_notify( $kb_config['notify'], $kb_message, $kb_config['admin_id'], $kb_comment['article_editor_id'], 'approved' ); mx_add_search_words( 'single', $article_id, stripslashes( $kb_row['article_body'] ), stripslashes( $kb_row['article_title'] ), 'kb' ); --- 118,122 ---- $article_category_id = $kb_row['article_category_id']; ! update_kb_number( $article_category_id ); kb_notify( $kb_config['notify'], $kb_message, $kb_config['admin_id'], $kb_comment['article_editor_id'], 'approved' ); mx_add_search_words( 'single', $article_id, stripslashes( $kb_row['article_body'] ), stripslashes( $kb_row['article_title'] ), 'kb' ); *************** *** 151,155 **** } ! update_kb_number( $article_category_id, '- 1' ); mx_remove_search_post( $article_id, 'kb' ); --- 151,155 ---- } ! update_kb_number( $article_category_id ); mx_remove_search_post( $article_id, 'kb' ); *************** *** 179,183 **** if ( $article['approved'] == 1 ) { ! update_kb_number( $article_category_id, '- 1' ); } --- 179,183 ---- if ( $article['approved'] == 1 ) { ! update_kb_number( $article_category_id ); } |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:39:51
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv651/modules/mx_kb Modified Files: install.txt kb.php Log Message: additional fixes Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** kb.php 20 Apr 2005 19:30:19 -0000 1.19 --- kb.php 1 May 2005 16:39:23 -0000 1.20 *************** *** 250,254 **** // mode - if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { --- 250,253 ---- Index: install.txt =================================================================== RCS file: /cvsroot/mxbb/mx_kb/install.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** install.txt 21 Apr 2005 19:36:16 -0000 1.4 --- install.txt 1 May 2005 16:39:23 -0000 1.5 *************** *** 182,191 **** ## - First Release ## - ## 1) Edit the Original phpBB2 Code. - ## 2) Upload all Remaining Files. - ## 3) Prepare the database by running the included install/upgrade-*.php file. - ## - use install_kb_tables.php for a fresh installation, - ## and upgrade_kb_tables.php if upgrading (even if from original kb 0.76 - supported! ) - ## 4) Delete install/upgrade files!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ## ############################################################## --- 182,185 ---- *************** *** 194,197 **** --- 188,206 ---- # + #-----[ Installation instructions ]------------------------------------------ + # + + 1) Edit the original phpBB2 files (fresh install only). + 2) Upload all shipped Files. + 3) Prepare the database by running the included install/upgrade-*.php file. + - use install_kb_tables.php for a fresh installation, + and upgrade_kb_tables.php if upgrading (even if from original kb 0.76 - supported! ) + 4) Delete install/upgrade files! + + # + #-----[ Shipped files to upload ]------------------------------------------ + # + + # #-----[ COPY ]------------------------------------------ # *************** *** 221,225 **** copy mx_kb/templates/subSilver/images/lang_english/kb.gif to phpbbroot/templates/subSilver/images/lang_english/kb.gif ! Notes: Files distributed in this zip, NOT used by the phpBB version of the KB MOD --- 230,237 ---- copy mx_kb/templates/subSilver/images/lang_english/kb.gif to phpbbroot/templates/subSilver/images/lang_english/kb.gif ! # ! #-----[ Note ]------------------------------------------ ! # ! Files distributed in this zip, NOT used by the phpBB version of the KB MOD *************** *** 232,235 **** --- 244,251 ---- # + #-----[ phpBB files to mod ]------------------------------------------ + # + + # #-----[ OPEN ]------------------------------------------ # |
|
From: Jon O. <jon...@us...> - 2005-05-01 16:39:51
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv651/modules/mx_kb/templates/subSilver Modified Files: kb_footer.tpl kb_rate_body.tpl Log Message: additional fixes Index: kb_rate_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_rate_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_rate_body.tpl 20 Apr 2005 20:48:24 -0000 1.3 --- kb_rate_body.tpl 1 May 2005 16:39:23 -0000 1.4 *************** *** 22,25 **** --- 22,26 ---- <!-- BEGIN rate --> + <form action="{S_RATE_ACTION}" method="POST"> <table width="100%" cellpadding="4" cellspacing="0" class="forumline"> <tr> *************** *** 28,32 **** <tr> <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> ! <td class="row2"><form action="{S_RATE_ACTION}" method="post"> <select size="1" name="rating" class="forminput"> <option value="1">{L_R1}</option> --- 29,33 ---- <tr> <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> ! <td class="row2"> <select size="1" name="rating" class="forminput"> <option value="1">{L_R1}</option> *************** *** 40,51 **** <option value="9">{L_R9}</option> <option value="10">{L_R10}</option> - <input type="hidden" name="action" value="rate"> - <input type="hidden" name="id" value="{ID}"> - <input type="hidden" name="rate" value="dorate"> </select> </td> </tr> <tr> ! <td colspan="2" class="catBottom" align="center"><input class="liteoption" type="submit" value="{L_RATE}" name="B1"> <!-- END rate --> </td> --- 41,52 ---- <option value="9">{L_R9}</option> <option value="10">{L_R10}</option> </select> + <input type="hidden" name="mode" value="rate"> + <input type="hidden" name="k" value="{ID}"> + <input type="hidden" name="rate" value="dorate"> </td> </tr> <tr> ! <td colspan="2" class="catBottom" align="center"><input class="liteoption" type="submit" value="{L_RATE}"> <!-- END rate --> </td> Index: kb_footer.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_footer.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** kb_footer.tpl 5 Apr 2005 20:52:30 -0000 1.7 --- kb_footer.tpl 1 May 2005 16:39:23 -0000 1.8 *************** *** 38,42 **** <!-- BEGIN copy_footer --> <div align="center"><span class="copyright"><br /> ! Powered by Knowledge Base MOD, {L_MODULE_ORIG_AUTHOR} & <a href="http://www.mx-system.com/" target="_phpbb" class="copyright">{L_MODULE_AUTHOR}</a> © 2002-2005 <br /><a href="http://www.phpbb.com/phpBB/viewtopic.php?t=200195" target="_phpbb" class="copyright">PHPBB.com MOD</a> </span></div> <!-- END copy_footer --> --- 38,42 ---- <!-- BEGIN copy_footer --> <div align="center"><span class="copyright"><br /> ! Powered by {L_MODULE_VERSION}, {L_MODULE_ORIG_AUTHOR} & <a href="http://www.mx-system.com/" target="_phpbb" class="copyright">{L_MODULE_AUTHOR}</a> © 2002-2005 <br /><a href="http://www.phpbb.com/phpBB/viewtopic.php?t=200195" target="_phpbb" class="copyright">PHPBB.com MOD</a> </span></div> <!-- END copy_footer --> |