|
From: Jon O. <jon...@us...> - 2005-09-22 10:08:16
|
Update of /cvsroot/mxbb/mx_calsnails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7547/modules/mx_calsnails Modified Files: CalSnails_Lite.pak calendar.php db_install.php db_uninstall.php db_upgrade.php mx_calendar_events.php Log Message: updating Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/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:24:46 -0000 1.7 --- db_uninstall.php 22 Sep 2005 10:08:05 -0000 1.8 *************** *** 2,12 **** /** * * ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System * email : jon...@ho... * project site : www.mx-system.com * - * description : * ------------------------------------------------------------------------- * --- 2,11 ---- /** * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * ------------------------------------------------------------------------- * *************** *** 24,28 **** if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = '../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); --- 23,27 ---- if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); *************** *** 33,42 **** if ( !$userdata['session_logged_in'] ) { ! die( "Hacking attempt(3)" ); } if ( $userdata['user_level'] != ADMIN ) { ! die( "Hacking attempt(4)" ); } // End session management --- 32,41 ---- if ( !$userdata['session_logged_in'] ) { ! die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { ! die( "Hacking attempt(2)" ); } // End session management *************** *** 49,58 **** ); - $message .= mx_do_install_upgrade( $sql ); - echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; ! echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; --- 48,55 ---- ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; ! echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/db_upgrade.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_upgrade.php 17 Mar 2005 12:04:26 -0000 1.7 --- db_upgrade.php 22 Sep 2005 10:08:05 -0000 1.8 *************** *** 2,12 **** /** * * ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System * email : jon...@ho... * project site : www.mx-system.com * - * description : * ------------------------------------------------------------------------- * --- 2,11 ---- /** * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * ------------------------------------------------------------------------- * *************** *** 22,32 **** define( 'IN_PORTAL', true ); - - $mx_module_version = 'mxBB Calsnails Module 2.0.0'; - $mx_module_copy = 'Based on <a href="http://www.snailsource.com/" target="_phpbb" >Calendar LITE, Martin</a>'; - if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = '../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); --- 21,27 ---- define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); *************** *** 37,50 **** if ( !$userdata['session_logged_in'] ) { ! die( "Hacking attempt(3)" ); } if ( $userdata['user_level'] != ADMIN ) { ! die( "Hacking attempt(4)" ); } // End session management } define( 'DB_INSTALL', true ); $module_root_path = dirname( __FILE__ ) . '/'; --- 32,48 ---- if ( !$userdata['session_logged_in'] ) { ! die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { ! die( "Hacking attempt(2)" ); } // End session management } + $mx_module_version = 'mxBB Calsnails Module 2.0.0'; + $mx_module_copy = 'Based on <a href="http://www.snailsource.com/" target="_phpbb" >Calendar LITE, Martin</a>'; + define( 'DB_INSTALL', true ); $module_root_path = dirname( __FILE__ ) . '/'; Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/db_install.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** db_install.php 17 Mar 2005 12:04:26 -0000 1.13 --- db_install.php 22 Sep 2005 10:08:05 -0000 1.14 *************** *** 2,12 **** /** * * ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System * email : jon...@ho... * project site : www.mx-system.com * - * description : * ------------------------------------------------------------------------- * --- 2,11 ---- /** * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * ------------------------------------------------------------------------- * *************** *** 22,39 **** define( 'IN_PORTAL', true ); - - $mx_module_version = 'mxBB Calsnails Module 2.0.0'; - $mx_module_copy = 'Based on <a href="http://www.snailsource.com/" target="_phpbb" >Calendar LITE, Martin</a>'; - if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = '../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); // End session management } define( 'DB_INSTALL', true ); $module_root_path = dirname( __FILE__ ) . '/'; --- 21,48 ---- define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! if ( !$userdata['session_logged_in'] ) ! { ! die( "Hacking attempt(1)" ); ! } ! ! if ( $userdata['user_level'] != ADMIN ) ! { ! die( "Hacking attempt(2)" ); ! } // End session management } + + $mx_module_version = 'mxBB Calsnails Module 2.0.0'; + $mx_module_copy = 'Based on <a href="http://www.snailsource.com/" target="_phpbb" >Calendar LITE, Martin</a>'; + define( 'DB_INSTALL', true ); $module_root_path = dirname( __FILE__ ) . '/'; Index: mx_calendar_events.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/mx_calendar_events.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_calendar_events.php 1 May 2005 16:38:07 -0000 1.8 --- mx_calendar_events.php 22 Sep 2005 10:08:05 -0000 1.9 *************** *** 47,51 **** $block_config = read_block_config( $block_id ); ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' );$block_title = $block_config[$block_id]['Calendar_Block_Title']['parameter_value']; $block_vsize = $block_config[$block_id]['Calendar_Vertical_Size']['parameter_value']; $text_length = $block_config[$block_id]['Calendar_Text_Length']['parameter_value']; --- 47,52 ---- $block_config = read_block_config( $block_id ); ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! $block_title = $block_config[$block_id]['Calendar_Block_Title']['parameter_value']; $block_vsize = $block_config[$block_id]['Calendar_Vertical_Size']['parameter_value']; $text_length = $block_config[$block_id]['Calendar_Text_Length']['parameter_value']; *************** *** 60,68 **** } ! define( 'CALRANGE_TODAY' , 0 ); ! define( 'CALRANGE_THIS_WEEK' , 1 ); ! define( 'CALRANGE_NEXT_WEEK' , 2 ); ! define( 'CALRANGE_THIS_MONTH', 3 ); ! define( 'CALRANGE_NEXT_MONTH', 4 ); // Check parameters: assign default values if the module is not correctly installed. --- 61,69 ---- } ! define( 'CALRANGE_TODAY' , 'today' ); ! define( 'CALRANGE_THIS_WEEK' , 'this day' ); ! define( 'CALRANGE_NEXT_WEEK' , 'next day' ); ! define( 'CALRANGE_THIS_MONTH', 'this week' ); ! define( 'CALRANGE_NEXT_MONTH', 'next week' ); // Check parameters: assign default values if the module is not correctly installed. Index: calendar.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/calendar.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** calendar.php 12 Apr 2005 21:11:06 -0000 1.15 --- calendar.php 22 Sep 2005 10:08:05 -0000 1.16 *************** *** 1,1759 **** ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: MX Block Initialization and Use of $block_size. ! * MX002: Remove include cal_settings (includes/mx_common.php). ! * MX003: Move other includes into mx_common.php. ! * MX004: Add $module_root_path to $thisscript. ! * MX005: Check the use of header/footer (only if running standalone). ! * MX006: Change table names to match MX conventions. [...3491 lines suppressed...] ! { ! $omega--; ! } ! } ! if ( $alpha > $omega ) ! { ! break; ! } ! $temporary = $array[$alpha]; ! $array[$alpha++] = $array[$omega]; ! $array[$omega--] = $temporary; ! } ! array_qsort2 ( $array, $column, $order, $first, $omega ); ! array_qsort2 ( $array, $column, $order, $alpha, $last ); ! } ! return $array; ! } ! ?> \ No newline at end of file Index: CalSnails_Lite.pak =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/CalSnails_Lite.pak,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CalSnails_Lite.pak 17 Mar 2005 12:04:26 -0000 1.5 --- CalSnails_Lite.pak 22 Sep 2005 10:08:05 -0000 1.6 *************** *** 3,13 **** function=+:42=+:43=+:CalSnails Lite=+:Main Calendar Lite script=+:calendar.php=+: parameter=+:43=+:111=+:auth_all=+:Function=+:2=+:get_list_static("{parameter_id}[]",array("No access","View only","View,Suggest","View,Add","View,Add(Edit/Delete own)"),"{parameter_value}") - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:43=+:112=+:auth_reg=+:Function=+:2=+:get_list_static("{parameter_id}[]",array("No access","View only","View,Suggest","View,Add","View,Add(Edit/Delete own)"),"{parameter_value}") ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:43=+:170=+:cal_filter=+:Boolean=+:FALSE=+: ! option=+:0=+:0=+:0=+:endoflist=+: parameter=+:43=+:169=+:cal_mod_group=+:Function=+:0=+:mx_get_groups("{parameter_value}","{parameter_id}[]") - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Lite=+:Demo block=+:43=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 --- 3,9 ---- function=+:42=+:43=+:CalSnails Lite=+:Main Calendar Lite script=+:calendar.php=+: parameter=+:43=+:111=+:auth_all=+:Function=+:2=+:get_list_static("{parameter_id}[]",array("No access","View only","View,Suggest","View,Add","View,Add(Edit/Delete own)"),"{parameter_value}") parameter=+:43=+:112=+:auth_reg=+:Function=+:2=+:get_list_static("{parameter_id}[]",array("No access","View only","View,Suggest","View,Add","View,Add(Edit/Delete own)"),"{parameter_value}") ! parameter=+:43=+:170=+:cal_filter=+:Boolean=+:0=+: parameter=+:43=+:169=+:cal_mod_group=+:Function=+:0=+:mx_get_groups("{parameter_value}","{parameter_id}[]") parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Lite=+:Demo block=+:43=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 *************** *** 15,57 **** function=+:42=+:45=+:CalSnails Events=+:Basic script to deal with calendar event reports=+:mx_calendar_events.php=+: parameter=+:45=+:68=+:Calendar_Block_Title=+:Text=+:=+: - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:45=+:69=+:Calendar_Events_dateformat=+:Text=+:l, d F Y h:i a=+: - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:45=+:74=+:Calendar_Events_Next=+:Number=+:3=+: - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:45=+:73=+:Calendar_Events_Prev=+:Number=+:3=+: ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:45=+:72=+:Calendar_Events_Range=+:Values=+:0=+: ! option=+:8=+:72=+:0=+:Today ! option=+:9=+:72=+:1=+:This Week ! option=+:10=+:72=+:2=+:Next Week ! option=+:11=+:72=+:3=+:This Month ! option=+:12=+:72=+:4=+:Next Month ! option=+:0=+:0=+:0=+:endoflist=+: parameter=+:45=+:71=+:Calendar_Text_Length=+:Number=+:30=+: - option=+:0=+:0=+:0=+:endoflist=+: parameter=+:45=+:70=+:Calendar_Vertical_Size=+:Number=+:200=+: ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:45=+:110=+:target_block=+:Function=+:0=+:get_list_formatted("calsnails","{parameter_value}","{parameter_id}[]") ! option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Events=+:Demo block=+:45=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:44=+:CalSnails Mini=+:Calendar Lite (mini function)=+:mx_calendar_mini.php=+: ! parameter=+:45=+:110=+:target_block=+:Function=+:0=+:get_list_formatted("calsnails","{parameter_value}","{parameter_id}[]") ! option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Mini=+:Demo block=+:44=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:42=+:46=+:Calendar Query=+:Sample function to help you export Calendar Lite data=+:mx_calendar_query.php=+: ! parameter=+:46=+:75=+:Calendar_Block_Title=+:Text=+:=+: ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:46=+:76=+:Calendar_Events_dateformat=+:Text=+:=+: ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:46=+:78=+:Calendar_Order=+:Text=+:stamp, subject=+: ! option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:46=+:77=+:Calendar_Where=+:Text=+:=+: ! option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - Calendar Query=+:Demo block=+:46=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 11,31 ---- function=+:42=+:45=+:CalSnails Events=+:Basic script to deal with calendar event reports=+:mx_calendar_events.php=+: parameter=+:45=+:68=+:Calendar_Block_Title=+:Text=+:=+: parameter=+:45=+:69=+:Calendar_Events_dateformat=+:Text=+:l, d F Y h:i a=+: parameter=+:45=+:74=+:Calendar_Events_Next=+:Number=+:3=+: parameter=+:45=+:73=+:Calendar_Events_Prev=+:Number=+:3=+: ! parameter=+:45=+:72=+:Calendar_Events_Range=+:Menu_single_select=+:this week=+:a:5:{i:0;s:5:"today";i:1;s:9:"this week";i:2;s:9:"next week";i:3;s:10:"this month";i:4;s:10:"next month";} parameter=+:45=+:71=+:Calendar_Text_Length=+:Number=+:30=+: parameter=+:45=+:70=+:Calendar_Vertical_Size=+:Number=+:200=+: ! parameter=+:45=+:110=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "calendar.php") parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Events=+:Demo block=+:45=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:44=+:CalSnails Mini=+:Calendar Lite (mini function)=+:mx_calendar_mini.php=+: ! parameter=+:44=+:325=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "calendar.php") parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Mini=+:Demo block=+:44=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:42=+:46=+:Calendar Querys1=+:Sample function to help you export Calendar Lite data=+:mx_calendar_query.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - Calendar Querys1=+:Demo block=+:46=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 |