Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17095 Modified Files: README admin.php config.inc.php day.php month.php preferences.php print.php search.php week.php year.php Log Message: Added todo.js and charset. Needs testing. Index: README =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/README,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** README 11 Aug 2004 22:47:26 -0000 1.69 --- README 12 Aug 2004 19:20:43 -0000 1.70 *************** *** 97,100 **** --- 97,102 ---- -Italian and Spanish translations added. -Some authentication issues resolved. + -Change your charset in config. + -Better Evolution compatibility. 2.0 alpha Index: admin.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/admin.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** admin.php 24 May 2004 01:39:42 -0000 1.16 --- admin.php 12 Aug 2004 19:20:43 -0000 1.17 *************** *** 4,7 **** --- 4,8 ---- require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); // Redirect if administration is not allowed *************** *** 48,51 **** --- 49,54 ---- 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'template' => $template, Index: config.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/config.inc.php,v retrieving revision 1.150 retrieving revision 1.151 diff -C2 -d -r1.150 -r1.151 *** config.inc.php 8 Aug 2004 05:55:17 -0000 1.150 --- config.inc.php 12 Aug 2004 19:20:44 -0000 1.151 *************** *** 27,30 **** --- 27,31 ---- $download_uri = ''; // The HTTP URL to your calendars directory, ie. http://www.example.com/phpicalendar/calendars -- AUTO SETTING -- Only set if you are having subscribe issues. $default_path = 'http://www.example.com/phpicalendar'; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar + $charset = 'UTF-8'; // Character set your calendar is in, suggested UTF-8, or iso-8859-1 for most languages. // Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase. Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** day.php 19 May 2004 03:45:07 -0000 1.115 --- day.php 12 Aug 2004 19:20:45 -0000 1.116 *************** *** 13,16 **** --- 13,18 ---- require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); + if ($minical_view == 'current') $minical_view = 'day'; *************** *** 47,50 **** --- 49,54 ---- 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'template' => $template, Index: month.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** month.php 11 Aug 2004 23:49:12 -0000 1.120 --- month.php 12 Aug 2004 19:20:45 -0000 1.121 *************** *** 4,7 **** --- 4,8 ---- require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); $current_view = "month"; if ($minical_view == 'current') $minical_view = 'month'; *************** *** 54,57 **** --- 55,60 ---- 'calendar_nav' => BASE.'templates/'.$template.'/calendar_nav.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'template' => $template, 'cal' => $cal, Index: preferences.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/preferences.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** preferences.php 19 May 2004 04:16:48 -0000 1.46 --- preferences.php 12 Aug 2004 19:20:47 -0000 1.47 *************** *** 4,7 **** --- 4,8 ---- require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); $display_date = $preferences_lang; Index: print.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/print.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** print.php 24 May 2004 01:39:42 -0000 1.26 --- print.php 12 Aug 2004 19:20:47 -0000 1.27 *************** *** 5,8 **** --- 5,9 ---- require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); *************** *** 43,46 **** --- 44,49 ---- 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'template' => $template, Index: search.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/search.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** search.php 15 May 2004 02:42:13 -0000 1.30 --- search.php 12 Aug 2004 19:20:47 -0000 1.31 *************** *** 7,10 **** --- 7,11 ---- require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER'] != '') { *************** *** 277,280 **** --- 278,283 ---- 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'template' => $template, Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.114 retrieving revision 1.115 diff -C2 -d -r1.114 -r1.115 *** week.php 11 Aug 2004 23:49:12 -0000 1.114 --- week.php 12 Aug 2004 19:20:47 -0000 1.115 *************** *** 6,9 **** --- 6,10 ---- require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); if ($minical_view == "current") $minical_view = "week"; *************** *** 50,53 **** --- 51,56 ---- 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', 'event_js' => BASE.'functions/event.js', + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'template' => $template, Index: year.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/year.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** year.php 19 May 2004 03:45:09 -0000 1.31 --- year.php 12 Aug 2004 19:20:48 -0000 1.32 *************** *** 4,7 **** --- 4,8 ---- require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/template.php'); + header("Content-Type: text/html; charset=$charset"); $current_view = 'year'; *************** *** 21,24 **** --- 22,27 ---- 'footer' => BASE.'templates/'.$template.'/footer.tpl', 'template' => $template, + 'todo_js' => BASE.'functions/todo.js', + 'charset' => $charset, 'default_path' => '', 'cal' => $cal, |