|
From: Jon O. <jon...@us...> - 2006-06-29 13:39:06
|
Update of /cvsroot/mxbb/mx_calsnails/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4127/modules/mx_calsnails/includes Modified Files: cal_functions.php mx_common.php Log Message: Code cleanup Index: cal_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/includes/cal_functions.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** cal_functions.php 25 Jun 2006 21:53:26 -0000 1.5 --- cal_functions.php 29 Jun 2006 13:39:03 -0000 1.6 *************** *** 41,53 **** } - // -MX007: End - // -------------------------------------------------- function validate() { // Start of MOD function (validate untrusted events) global $thisscript, $phpbb_root_path, $phpEx, $db, $action, $template, $id, $day, $month, $year, $userdata, $lang, $config_footer, $footer, $caluser, ! $block_size, // MX001 [...1117 lines suppressed...] global $lang, $caluser; + if ( $caluser >= 5 ) { *************** *** 1242,1245 **** --- 1279,1283 ---- { global $lang, $caluser; + if ( $caluser >= 4 ) { *************** *** 1268,1271 **** --- 1306,1310 ---- { global $lang, $caluser, $block_id; + // Next Month $button_add = "<form method=post action='$url'><td>"; Index: mx_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/includes/mx_common.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** mx_common.php 26 Jun 2006 21:33:17 -0000 1.15 --- mx_common.php 29 Jun 2006 13:39:03 -0000 1.16 *************** *** 22,28 **** if ( !defined( 'DB_INSTALL' ) ) { ! // Get Calendar Settings from Cal_config table ! $cal_config = array(); --- 22,28 ---- if ( !defined( 'DB_INSTALL' ) ) { ! // // Get Calendar Settings from Cal_config table ! // $cal_config = array(); *************** *** 55,59 **** // a) Martin's mydateformat() does not translate weekdays. // b) Solve the phpBB collision with $lang['datetime']['May']. - function my_dateformat( $thisdate, $dateformat = 'd M Y G:i', $span = 0 ) { --- 55,58 ---- *************** *** 155,158 **** return $woy; } - ?> \ No newline at end of file --- 154,156 ---- |