openfirst-cvscommit Mailing List for openFIRST (Page 75)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <xt...@us...> - 2003-10-05 15:31:10
|
Update of /cvsroot/openfirst/members/phpicalendar/includes In directory sc8-pr-cvs1:/tmp/cvs-serv25449 Modified Files: header.inc.php Log Message: Fix typo of show_login() instead of showlogin() which was preventing authentication from working as expected. Index: header.inc.php =================================================================== RCS file: /cvsroot/openfirst/members/phpicalendar/includes/header.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** header.inc.php 5 Oct 2003 15:29:06 -0000 1.1 --- header.inc.php 5 Oct 2003 15:31:07 -0000 1.2 *************** *** 2,6 **** include($header); if(! isset($user->user) || $user->user == "") { ! die(show_login() . include($footer)); } ?> --- 2,6 ---- include($header); if(! isset($user->user) || $user->user == "") { ! die(showlogin() . include($footer)); } ?> |
Update of /cvsroot/openfirst/members/phpicalendar/languages In directory sc8-pr-cvs1:/tmp/cvs-serv25131 Added Files: brazilian.inc.php catalan.inc.php czech.inc.php danish.inc.php dutch.inc.php english.inc.php esperanto.inc.php finnish.inc.php french.inc.php german.inc.php italian.inc.php japanese.inc.php norwegian.inc.php polish.inc.php portuguese.inc.php spanish.inc.php swedish.inc.php traditional_chinese.inc.php Log Message: Add the various language files used by PHP iCalendar --- NEW FILE: brazilian.inc.php --- <?php // Brazilian Portuguese language include // For version 0.9.4 PHP iCalendar // // Translation by Wilton, Bennet (su...@be...) // 01-nov-2002 02:42 PM // Submit new translations to ch...@ch... $day_lang = 'Dia'; $week_lang = 'Semana'; $month_lang = 'Mês'; $year_lang = 'Ano'; $calendar_lang = 'Calendário'; $next_day_lang = 'Dia seguinte'; $next_month_lang = 'Mês seguinte'; $next_week_lang = 'Próxima semana'; $next_year_lang = 'Ano Seguinte'; $last_day_lang = 'Dia anterior'; $last_month_lang = 'Mês anterior'; $last_week_lang = 'Semana anterior'; $last_year_lang = 'Ano anterior'; $subscribe_lang = 'Assinar'; $download_lang = 'Download'; $powered_by_lang = 'Powered by'; $event_lang = 'Evento'; $event_start_lang = 'Hora de início'; $event_end_lang = 'Hora de fim'; $this_months_lang = 'Eventos deste mês'; $date_lang = 'Data'; $summary_lang = 'Sumário'; $all_day_lang = 'Evento dia todo'; $notes_lang = 'Notas'; $this_years_lang = 'Eventos deste ano'; $today_lang = 'Hoje'; $this_week_lang = 'Esta semana'; $this_month_lang = 'Este mês'; $jump_lang = 'Ir para'; $tomorrows_lang = 'Eventos para amanha'; $goday_lang = 'Ir para Hoje'; $goweek_lang = 'Ir para este semana'; $gomonth_lang = 'Ir para este mês'; $goyear_lang = 'Ir para este ano'; $search_lang = 'Buscar'; // the verb $results_lang = 'Buscar Resultados'; $query_lang = 'Questão: '; // will be followed by the search query $no_results_lang = 'Eventos não encontrados'; $goprint_lang = 'Versão para imprimir'; $time_lang = 'Hora'; $summary_lang = 'Resumo'; $description_lang = 'Descrição'; $this_site_is_lang = 'Esse site é'; $no_events_day_lang = 'Não há eventos para hoje.'; $no_events_week_lang = 'Não há eventos para esta semana.'; $no_events_month_lang = 'Não há eventos para esse mês.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%b %e'; // Lists just the day $rss_month_date = '%b %e'; // Lists just the day $rss_language = 'en-us'; $search_took_lang = 'Search took %s seconds'; $recurring_event_lang = 'Recurring event'; $exception_lang = 'Exception'; $no_query_lang = 'No query given'; $preferences_lang = 'Preferences'; $printer_lang = 'Printer'; $select_lang_lang = 'Select your default language:'; $select_cal_lang = 'Select your default calendar:'; $select_view_lang = 'Select your default view:'; $select_time_lang = 'Select your default start time:'; $select_day_lang = 'Select your default start day of week:'; $select_style_lang = 'Select your default style:'; $set_prefs_lang = 'Set preferences'; $completed_date_lang = 'Completed on'; $completed_lang = 'Completed'; $created_lang = 'Created:'; $due_lang = 'Due:'; $priority_lang = 'Priority:'; $priority_high_lang = 'High'; $priority_low_lang = 'Low'; $priority_medium_lang = 'Medium'; $priority_none_lang = 'None'; $status_lang = 'Status:'; $todo_lang = 'To do items'; $unfinished_lang = 'Unfinished'; $prefs_set_lang = 'Your preferences have been set.'; $prefs_unset_lang = 'Preferences unset. Changes will take place next page load.'; $unset_prefs_lang = 'Unset preferences:'; $organizer_lang = 'Organizer'; $attendee_lang = 'Attendee'; $status_lang = 'Status'; $location_lang = 'Location'; $admin_header_lang = 'PHP iCalendar Administration'; $username_lang = 'Username'; $password_lang = 'Password'; $login_lang = 'Login'; $invalid_login_lang = 'Wrong username or password.'; $addupdate_cal_lang = 'Add or Update a Calendar'; $addupdate_desc_lang = 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.'; $delete_cal_lang = 'Delete a Calendar'; $logout_lang = 'Logout'; $cal_file_lang = 'Calendar File'; $php_error_lang = 'PHP Error'; $upload_error_gen_lang = 'There was a problem with your upload.'; $upload_error_lang[0] = 'There was a problem with your upload.'; $upload_error_lang[1] = 'The file you are trying to upload is too big.'; $upload_error_lang[2] = 'The file you are trying to upload is too big.'; $upload_error_lang[3] = 'The file you are trying upload was only partially uploaded.'; $upload_error_lang[4] = 'You must select a file for upload.'; $upload_error_type_lang = 'Only .ics files may be uploaded.'; $copy_error_lang = 'Failed to copy file'; $delete_error_lang = 'Failed to delete file'; $delete_success_lang = 'was deleted successfully.'; $action_success_lang = 'Your action was successful.'; $submit_lang = 'Submit'; $delete_lang = 'Delete'; // ----- New for 0.9.4 $all_cal_comb_lang = 'All calendars combined'; // - navigation $back_lang = 'Back'; $next_lang = 'Next'; $prev_lang = 'Prev'; $day_view_lang = 'Day View'; $week_view_lang = 'Week View'; $month_view_lang = 'Month View'; $year_view_lang = 'Year View'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('year','years'); // for these, put singular $format_recur_lang['monthly'] = array('month','months'); // and plural forms $format_recur_lang['weekly'] = array('week','weeks'); // these will be %freq% $format_recur_lang['daily'] = array('day','days'); // in the replacement below $format_recur_lang['hourly'] = array('hour','hours'); $format_recur_lang['minutely'] = array('minute','minutes'); $format_recur_lang['secondly'] = array('second','seconds'); $format_recur_lang['start'] = 'Every %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'until %date%'; // ie, 'until January 4' $format_recur_lang['count'] = 'for a count of %int%'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'In months: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'On dates: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'On days: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- $daysofweek_lang = array ('Domingo','Segunda-Feira','Terca-Feira','Quarta-Feira','Quinta-Feira','Sexta-Feira','Sábado'); $daysofweekshort_lang = array ('Dom','Seg','Ter','Qua','Qui','Sex','Sáb'); $daysofweekreallyshort_lang = array ('D','S','T','Q','Q','S','S'); $monthsofyear_lang = array ('Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'); $monthsofyearshort_lang = array ('Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'g:i A'; $timeFormat_small = 'g:i'; // For date formatting, see note below $dateFormat_day = '%A,%e %B'; $dateFormat_week = '%e %B'; $dateFormat_week_list = '%a, %e %b'; $dateFormat_week_jump = '%e %b'; $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A, %e %B'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Erro!'; $error_window_lang = 'Aconteceu um erro!'; $error_calendar_lang = 'O calendário "%s" estava sendo processado quando ocorreu este erro.'; $error_path_lang = 'Não foi possível abrir: "%s"'; $error_back_lang = 'Por favor use o botão de "Back" para voltar.'; $error_remotecal_lang = 'Este servidor bloqueia calendários remotos que nao foram aprovados.'; $error_restrictedcal_lang = 'Tentou acessar um calendário o qual é restrito o acesso neste servidor.'; $error_invalidcal_lang = 'Arquivo de calendário inválido. Por favor tente usar outro calendário.'; ?> --- NEW FILE: catalan.inc.php --- <?php // Catalan language include // For version 0.9.4 PHP iCalendar // // Translation by Oriol Ferrer Mesia; (tm...@sa...) $day_lang = "Dia"; $week_lang = "Setmana"; $month_lang = "Mes"; $year_lang = "Any"; $calendar_lang = "Calendari"; $next_day_lang = "Dia següent"; $next_month_lang = "Mes següent"; $next_week_lang = "Setmana següent"; $next_year_lang = "Any següent"; $last_day_lang = "Dia anterior"; $last_month_lang = "Mes anterior"; $last_week_lang = "Setmana anterior"; $last_year_lang = "Any anterior"; $subscribe_lang = "Subscriure"; $download_lang = "Descarregar"; $powered_by_lang = "Gràcies a"; $version_lang = "0.9"; $event_lang = 'Event'; $event_start_lang = 'Inici'; $event_end_lang = 'Fi'; $this_months_lang = 'Events d\'aquest mes'; $date_lang = 'Data'; $summary_lang = 'Descripció'; $all_day_lang = 'Event diario'; $notes_lang = 'Notes'; $this_years_lang = 'Events d\'aquest any'; $today_lang = 'Avui'; $this_week_lang = 'Aquesta setmana'; $this_month_lang = 'Aquesta mes'; $jump_lang = 'Anar a'; $tomorrows_lang = 'Events de demà'; $goday_lang = 'Anar a Avui'; $goweek_lang = 'Anar a aquesta Setmana'; $gomonth_lang = 'Anar a aquest Mes'; $goyear_lang = 'Anar a aquest Any'; $search_lang = 'Buscar'; // the verb $results_lang = 'Resultats de la cerca'; $query_lang = 'Consulta: '; // will be followed by the search query $no_results_lang = 'No s\'ha trobat cap event'; $goprint_lang = 'Format d\'impressió'; $time_lang = 'Hora'; $summary_lang = 'Resum'; $description_lang = 'Descripció'; $this_site_is_lang = 'Aquesta pàgina és'; $no_events_day_lang = 'No hi ha events per a avui.'; $no_events_week_lang = 'No hi ha events per a aquesta setmana.'; $no_events_month_lang = 'No hi ha events per a aquest mes.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%e de %b'; // Lists just the day $rss_month_date = '%e de %b'; // Lists just the day $rss_language = 'en-us'; $search_took_lang = 'La cerca ha trigat %s segons'; $recurring_event_lang = 'Event periòdic'; $exception_lang = 'Excepció'; $no_query_lang = 'Sense consulta'; $preferences_lang = 'Preferències'; $printer_lang = 'Impressora'; $select_lang_lang = 'Esculli el seu idioma per defecte:'; $select_cal_lang = 'Esculli el seu calendari per defecte:'; $select_view_lang = 'Esculli la seva vista per defecte:'; $select_time_lang = 'Esculli la seva hora d\'inici per defecte:'; $select_day_lang = 'Esculli el seu dia inicial de la setmana:'; $select_style_lang = 'Esculli el seu estil per defecte:'; $set_prefs_lang = 'Guardar preferències'; $completed_date_lang = 'Finalitzat a'; $completed_lang = 'Finalitzat'; $created_lang = 'Creat:'; $due_lang = 'Fins:'; $priority_lang = 'Prioritat:'; $priority_high_lang = 'Alta'; $priority_low_lang = 'Baixa'; $priority_medium_lang = 'Mitjana'; $priority_none_lang = 'Cap'; $status_lang = 'Estat:'; $todo_lang = 'Pendent'; $unfinished_lang = 'Sense acabar'; $prefs_set_lang = 'Your preferences have been set.'; $prefs_unset_lang = 'Preferences unset. Changes will take place next page load.'; $unset_prefs_lang = 'Unset preferences:'; $organizer_lang = 'Organitzador'; $attendee_lang = 'Persones presents'; $status_lang = 'Estat'; $location_lang = 'Lloc'; $admin_header_lang = 'Administració PHP iCalendar'; $username_lang = 'Nom d\'usuari'; $password_lang = 'contrasenya'; $login_lang = 'Login'; $invalid_login_lang = 'Nom d\'usuari o contrassenya incorrectes.'; $addupdate_cal_lang = 'Afegeix o actualitza un Calendari'; $addupdate_desc_lang = 'Afegeix un Calendari enviant un fitxer. Actualitza un Calendari enviant un fitxer amb el mateix nom.'; $delete_cal_lang = 'Esborra un Calendari'; $logout_lang = 'Desconnexió'; $cal_file_lang = 'Fitxer de Calendari'; $php_error_lang = 'Error de PHP '; $upload_error_gen_lang = 'Hi ha hagut un error en el procés d\'enviament.'; $upload_error_lang[0] = 'Hi ha hagut un error en el procés d\'enviament.'; $upload_error_lang[1] = 'El fitxer enviat és massa gran.'; $upload_error_lang[2] = 'El fitxer enviat és massa gran.'; $upload_error_lang[3] = 'El fitxer ha estat enviat només parcialment.'; $upload_error_lang[4] = 'Cal sel·leccionar un fitxer a enviar.'; $upload_error_type_lang = 'Nomes es poden enviar fitxers del tipus .ics.'; $copy_error_lang = 'Error durant la còpia del fitxer.'; $delete_error_lang = 'Error al esborrar el fitxer.'; $delete_success_lang = 'ha estat eliminat.'; $action_success_lang = 'L\'acció ha acabat satisfactòriament.'; $submit_lang = 'Envia'; $delete_lang = 'Esborra'; // ----- New for 0.9.4 $all_cal_comb_lang = 'All calendars combined'; // - navigation $back_lang = 'Endarrera'; $next_lang = 'Següent'; $prev_lang = 'Anterior'; $day_view_lang = 'Vista Diària'; $week_view_lang = 'Vista Setmanal'; $month_view_lang = 'Vista Mensual'; $year_view_lang = 'Vista Anual'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('any','anys'); // for these, put singular $format_recur_lang['monthly'] = array('mes','mesos'); // and plural forms $format_recur_lang['weekly'] = array('setmana','setmanes'); // these will be %freq% $format_recur_lang['daily'] = array('dia','dies'); // in the replacement below $format_recur_lang['hourly'] = array('hora','hores'); $format_recur_lang['minutely'] = array('minut','minuts'); $format_recur_lang['secondly'] = array('segon','segons'); $format_recur_lang['start'] = 'Cada %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'fins al %date%'; // ie, 'until January 4' $format_recur_lang['count'] = '%int% vegades'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'Durant els mesos: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'Durant els dies: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'Durant els dies de la setmana: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- $daysofweek_lang = array ('Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'); $daysofweekshort_lang = array ('Dium','Dill','Dima','Dime','Dij','Div','Dis'); $daysofweekreallyshort_lang = array ('D','L','M','X','J','V','S'); $monthsofyear_lang = array ('Gener','Febrer','Març','Abril','Maig','Juny','Juliol','Agost','Setembre','Octubre','Novembre','Desembre'); $monthsofyearshort_lang = array ('Gen','Feb','Mar','Abr','Mai','Jun','Jul','Ago','Sep','Oct','Nov','Des'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; $timeFormat_small = 'G:i'; // For date formatting, see note below $dateFormat_day = '%A, %e de %B'; $dateFormat_week = '%e de %B'; $dateFormat_week_list = '%a, %e de %b'; $dateFormat_week_jump = '%e de %b'; $dateFormat_month = '%B de %Y'; $dateFormat_month_list = '%A, %e de %B'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Error!'; $error_window_lang = 'Hi ha hagut error!'; $error_calendar_lang = 'L\'error s\'ha produït mentre es processava el calendari "%s".'; $error_path_lang = 'Incapaç d\'obrir: "%s"'; $error_back_lang = 'Per favor, utilitzi el botó "endarrera" per a tornar.'; $error_remotecal_lang = 'Aquest servidor bloqueja calendaris remots que no han estat acceptats.'; $error_restrictedcal_lang = 'Ha intentat arribar a un calendari que té l\'accés restringit.'; $error_invalidcal_lang = 'Fitxer de calendari invàlid. Per favor, provi un altre calendari.'; ?> --- NEW FILE: czech.inc.php --- <?php // Czech language include // For version 0.9.4 PHP iCalendar // // Translation by Whit, studio jižák (wh...@st...) // // Submit new translations to ch...@ch... $day_lang = 'Den'; $week_lang = 'Týden'; $month_lang = 'MÄsÃc'; $year_lang = 'Rok'; $calendar_lang = 'KalendáÅ'; $next_day_lang = 'NásledujÃcà den'; $next_month_lang = 'NásledujÃcà mÄsÃc'; $next_week_lang = 'NásledujÃcà týden'; $next_year_lang = 'PÅÃÅ¡tà rok'; $last_day_lang = 'PÅedchozà den'; $last_month_lang = 'PÅedchozà mÄsÃc'; $last_week_lang = 'PÅedchozà týden'; $last_year_lang = 'PÅedchozà rok'; $subscribe_lang = 'PÅihlaÅ¡'; $download_lang = 'Stáhni'; $powered_by_lang = 'Powered by'; $event_lang = 'Událost'; $event_start_lang = 'ZaÄátek'; $event_end_lang = 'Konec'; $this_months_lang = 'Tento mÄsÃc'; $date_lang = 'Datum'; $summary_lang = 'Souhrn'; $all_day_lang = 'Celý den'; $notes_lang = 'Poznámky'; $this_years_lang = 'Tento rok'; $today_lang = 'Dnes'; $this_week_lang = 'Tento týden'; $this_month_lang = 'Tento mÄsÃc'; $jump_lang = 'Jdi'; $tomorrows_lang = 'ZÃtra'; $goday_lang = 'DneÅ¡ek'; $goweek_lang = 'Tento týden'; $gomonth_lang = 'Tento mÄsÃc'; $goyear_lang = 'Tento rok'; $search_lang = 'Hledej'; // the verb $results_lang = 'Výsledky hledánÃ'; $query_lang = 'Dotaz: '; // will be followed by the search query $no_results_lang = 'Žádné nalezené záznamy'; $goprint_lang = 'Tisk'; $time_lang = 'Äas'; $summary_lang = 'Souhrn'; $description_lang = 'Popis'; $this_site_is_lang = 'Tato stránka je'; $no_events_day_lang = 'Žádné záznamy v tomto dni.'; $no_events_week_lang = 'Žádné záznamy v tomto týdnu.'; $no_events_month_lang = 'Žádné záznamy v tomto mÄsÃci.'; $rss_day_date = 'G:i A'; // Lists just the time $rss_week_date = '%A, %e %B'; // Lists just the day $rss_month_date = '%A, %e %B'; // Lists just the day $rss_language = 'cs-cz'; $search_took_lang = 'Hledánà trvalo %s vteÅin'; $recurring_event_lang = 'OpakujÃcà se událost'; $exception_lang = 'Výjimka'; $no_query_lang = 'Nebyl zadán dotaz'; $preferences_lang = 'NastavenÃ'; $printer_lang = 'Tiskárna'; $select_lang_lang = 'Výchozà jazyk:'; $select_cal_lang = 'Výchozà kalendáÅ:'; $select_view_lang = 'Výchozà pohled:'; $select_time_lang = 'Výchozà startovnà Äas:'; $select_day_lang = 'Výchozà prvnà den týdne:'; $select_style_lang = 'Výchozà styl:'; $set_prefs_lang = 'Ulož nastavenÃ'; $completed_date_lang = 'Kompletnà v'; $completed_lang = 'KompletnÃ'; $created_lang = 'VytvoÅeno:'; $due_lang = 'Due:'; $priority_lang = 'Priorita:'; $priority_high_lang = 'Vysoká'; $priority_low_lang = 'NÃzká'; $priority_medium_lang = 'StÅednÃ'; $priority_none_lang = 'Žádná'; $status_lang = 'Status:'; $todo_lang = 'Seznam úkolů'; $unfinished_lang = 'NedokonÄeno'; $prefs_set_lang = 'Your preferences have been set.'; $prefs_unset_lang = 'Preferences unset. Changes will take place next page load.'; $unset_prefs_lang = 'Unset preferences:'; // ----- New for 0.9.2 $organizer_lang = 'Organizer'; $attendee_lang = 'Attendee'; $status_lang = 'Status'; $location_lang = 'Location'; $admin_header_lang = 'PHP iCalendar Administration'; $username_lang = 'Username'; $password_lang = 'Password'; $login_lang = 'Login'; $invalid_login_lang = 'Wrong username or password.'; $addupdate_cal_lang = 'Add or Update a Calendar'; $addupdate_desc_lang = 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.'; $delete_cal_lang = 'Delete a Calendar'; $logout_lang = 'Logout'; $cal_file_lang = 'Calendar File'; $php_error_lang = 'PHP Error'; $upload_error_gen_lang = 'There was a problem with your upload.'; $upload_error_lang[0] = 'There was a problem with your upload.'; $upload_error_lang[1] = 'The file you are trying to upload is too big.'; $upload_error_lang[2] = 'The file you are trying to upload is too big.'; $upload_error_lang[3] = 'The file you are trying upload was only partially uploaded.'; $upload_error_lang[4] = 'You must select a file for upload.'; $upload_error_type_lang = 'Only .ics files may be uploaded.'; $copy_error_lang = 'Failed to copy file'; $delete_error_lang = 'Failed to delete file'; $delete_success_lang = 'was deleted successfully.'; $action_success_lang = 'Your action was successful.'; $submit_lang = 'Submit'; $delete_lang = 'Delete'; // - navigation $back_lang = 'ZpÄt'; $next_lang = 'DalÅ¡Ã'; $prev_lang = 'PÅedchozÃ'; $day_view_lang = 'Zobraz den'; $week_view_lang = 'Zobraz týden'; $month_view_lang = 'Zobraz mÄsÃc'; $year_view_lang = 'Zobraz rok'; // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('rok','roky'); // for these, put singular $format_recur_lang['monthly'] = array('mÄsÃc','mÄsÃce'); // and plural forms $format_recur_lang['weekly'] = array('týden','týdny'); // these will be %freq% $format_recur_lang['daily'] = array('den','dny'); // in the replacement below $format_recur_lang['hourly'] = array('hodina','hodiny'); $format_recur_lang['minutely'] = array('minuta','minuty'); $format_recur_lang['secondly'] = array('vtÅina','vteÅiny'); $format_recur_lang['start'] = 'Každý %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'až do %date%'; // ie, 'until January 4' $format_recur_lang['count'] = '%int% krát'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'V mÄsÃcÃch: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'V datech: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'Ve dnech: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- $daysofweek_lang = array ('NedÄle','PondÄlÃ','Ãterý','StÅeda','Ätvrtek','Pátek','Sobota'); $daysofweekshort_lang = array ('Ne','Po','Ãt','St','Ät','Pá','So'); $daysofweekreallyshort_lang = array ('N','P','Ã','S','Ä','P','S'); $monthsofyear_lang = array ('Leden','Ãnor','BÅezen','Duben','KvÄten','Äerven','Äervenec','Srpen','ZáÅÃ','ÅÃjen','Listopad','Prosinec'); $monthsofyearshort_lang = array ('Led.','Ãno.','BÅe.','Dub.','KvÄ.','Äer.','Äec.','Srp.','ZáÅ.','ÅÃj.','List.','Pros.'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; // For date formatting, see note below $dateFormat_day = '%A, %e. %B'; $dateFormat_week = '%e. %B'; $dateFormat_week_list = '%a, %e. %b'; $dateFormat_week_jump = '%e. %B';// new since last translation $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A, %e. %B'; /* Notes about $dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Chyba!'; $error_window_lang = 'Chybové okno!'; $error_calendar_lang = 'PÅi vytváÅenà kalendáÅe â%sâ se vyskytla chyba.'; $error_path_lang = 'Nelze otevÅÃt: "%s"'; $error_back_lang = 'Použij tlaÄÃtko "ZpÄt" pro návrat.'; $error_remotecal_lang = 'Tento server blokuje vzdálené kalendáÅe, které nejsou odsouhlaseny.'; $error_restrictedcal_lang = 'ZkouÅ¡ÃÅ¡ pÅistupovat k zamknutému kalendáÅi.'; $error_invalidcal_lang = 'Chybný soubor. Vyber jiný kalendáÅ.'; ?> --- NEW FILE: danish.inc.php --- <?php // Danish language include // For version 0.9.4 PHP iCalendar // // Translation by Henrik H�jmark (st...@wo...) // and Jakob Peterh�nsel (ma...@cr...) // // Submit new translations to ch...@ch... $day_lang = 'Dag'; $week_lang = 'Uge'; $month_lang = 'Måned'; $year_lang = 'År'; $calendar_lang = 'kalender'; $next_day_lang = 'Næste dag'; $next_month_lang = 'Næste måned'; $next_week_lang = 'Næste uge'; $next_year_lang = 'Næste år'; $last_day_lang = 'Forrige dag'; $last_month_lang = 'Forrige måned'; $last_week_lang = 'Forrige uge'; $last_year_lang = 'Forrige år'; $subscribe_lang = 'Abonnér'; $download_lang = 'Hent'; $powered_by_lang = 'Drevet af'; $event_lang = 'Aftale'; $event_start_lang = 'Start tidspunkt'; $event_end_lang = 'Slut tidspunkt'; $this_months_lang = 'Denne måneds aftaler'; $date_lang = 'Dato'; $summary_lang = 'Opsummering'; $all_day_lang = 'Heldags aftale'; $notes_lang = 'Noter'; $this_years_lang = 'Dette ås aftaler'; $today_lang = 'I dag'; $this_week_lang = 'Denne uge'; $this_month_lang = 'Denne måned'; $jump_lang = 'Gå til'; $tomorrows_lang = 'Næste dags aftaler'; $goday_lang = 'Gå til i dag'; $goweek_lang = 'Gå til denne uge'; $gomonth_lang = 'Gå til denne måned'; $goyear_lang = 'Gå til dette år'; $search_lang = 'Søg'; // the verb $results_lang = 'S&oskash;ge resultater'; $query_lang = 'Søgekriterier: '; // will be followed by the search query $no_results_lang = 'Der er ikke fundet nogen aftaler'; $goprint_lang = 'Udskriftsvenligt'; $time_lang = 'Tid'; $summary_lang = 'Opsummering'; $description_lang = 'Beskrivelse'; $this_site_is_lang = 'Denne webadresse er'; $no_events_day_lang = 'Ingen aftaler i dag.'; $no_events_week_lang = 'Ingen aftaler i denne uge.'; $no_events_month_lang = 'Ingen aftaler i denne måned.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%b %e'; // Lists just the day $rss_month_date = '%b %e'; // Lists just the day $search_took_lang = 'Søgningen tog %s sekunder'; $recurring_event_lang = 'Gentagen aftale'; $exception_lang = 'Undtagelse'; $no_query_lang = 'Der er ingen forspørgsel'; $preferences_lang = 'Indstillinger'; $printer_lang = 'Printer'; $select_lang_lang = 'Vælg sprog:'; $select_cal_lang = 'Vælg kalender:'; $select_view_lang = 'Vælg visning:'; $select_time_lang = 'Vælg starttidspunkt :'; $select_day_lang = 'Vælg startdag:'; $select_style_lang = 'Vælg stil :'; $set_prefs_lang = 'Gem indstillinger'; $completed_date_lang = 'Afsluttet på'; $completed_lang = 'Afsluttet'; $created_lang = 'Lavet:'; $due_lang = 'Klar:'; $priority_lang = 'Prioritet:'; $priority_high_lang = 'Høj'; $priority_low_lang = 'Lav'; $priority_medium_lang = 'Medium'; $priority_none_lang = 'Ingen'; $status_lang = 'Status:'; $todo_lang = 'Ting der skal gøres'; $unfinished_lang = 'Uafsluttet'; $prefs_set_lang = 'Dine indstillinger er gemt.'; //Your preferences have been set. $prefs_unset_lang = 'Indstillinger fjernet. Ændringer er synlig ved næste sidevisning.'; //Preferences unset. Changes will take place next page load. $unset_prefs_lang = 'Unset preferences:'; $organizer_lang = 'Organizer'; $attendee_lang = 'Attendee'; $status_lang = 'Status'; $location_lang = 'Location'; $admin_header_lang = 'PHP iCalendar Administration'; $username_lang = 'Username'; $password_lang = 'Password'; $login_lang = 'Login'; $invalid_login_lang = 'Wrong username or password.'; $addupdate_cal_lang = 'Add or Update a Calendar'; $addupdate_desc_lang = 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.'; $delete_cal_lang = 'Delete a Calendar'; $logout_lang = 'Logout'; $cal_file_lang = 'Calendar File'; $php_error_lang = 'PHP Error'; $upload_error_gen_lang = 'There was a problem with your upload.'; $upload_error_lang[0] = 'There was a problem with your upload.'; $upload_error_lang[1] = 'The file you are trying to upload is too big.'; $upload_error_lang[2] = 'The file you are trying to upload is too big.'; $upload_error_lang[3] = 'The file you are trying upload was only partially uploaded.'; $upload_error_lang[4] = 'You must select a file for upload.'; $upload_error_type_lang = 'Only .ics files may be uploaded.'; $copy_error_lang = 'Failed to copy file'; $delete_error_lang = 'Failed to delete file'; $delete_success_lang = 'was deleted successfully.'; $action_success_lang = 'Your action was successful.'; $submit_lang = 'Submit'; $delete_lang = 'Delete'; // ----- New for 0.9.4 $all_cal_comb_lang = 'All calendars combined'; // - navigation $back_lang = 'Tilbage'; $next_lang = 'Næste'; $prev_lang = 'Forrige'; $day_view_lang = 'Vis Dag'; $week_view_lang = 'Vis Uge'; $month_view_lang = 'Vis Måned'; $year_view_lang = 'Vis År'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('år','år'); // for these, put singular $format_recur_lang['monthly'] = array('måned','måneder'); // and plural forms $format_recur_lang['weekly'] = array('uge','uger'); // these will be %freq% $format_recur_lang['daily'] = array('dag','dage'); // in the replacement below $format_recur_lang['hourly'] = array('time','timer'); $format_recur_lang['minutely'] = array('minut','minutter'); $format_recur_lang['secondly'] = array('sekund','sekunder'); $format_recur_lang['start'] = 'Hver %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'Indtil %date%'; // ie, 'until January 4' $format_recur_lang['count'] = '%int% gange'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'I månderne: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'På datoerne: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'På dagene: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- $daysofweek_lang = array ('Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'); $daysofweekshort_lang = array ('Søn','Man','Tir','Ons','Tor','Fre','Lør'); $daysofweekreallyshort_lang = array ('S','M','T','O','T','F','L'); $monthsofyear_lang = array ('Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December'); $monthsofyearshort_lang = array ('Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'H:i'; $timeFormat_small = 'H:i'; // For date formatting, see note below $dateFormat_day = '%A, %e %B'; $dateFormat_week = '%e %B'; $dateFormat_week_list = '%a, %e %b'; $dateFormat_week_jump = '%e %b'; $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A, %e %B'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Fejl!'; $error_window_lang = 'Der opstod en fejl!'; $error_calendar_lang = 'Kalenderen "%s" blev benyttet da fejlen opstod.'; $error_path_lang = 'Kan ikke åbne stien : "%s"'; $error_back_lang = 'Brug venligst "Tilbage" knappen for at gå tilbage.'; $error_remotecal_lang = 'Denne server blokerer for eksterne kalendere der ikke er blevet godkendt'; $error_restrictedcal_lang = 'Du har forsøgt at få adgang til en beskyttet kalender på denne server.'; $error_invalidcal_lang = 'Kalenderen kan ikke læses. Prøv en anden kalender.'; ?> --- NEW FILE: dutch.inc.php --- <?php // Dutch language include // For version 0.9.4 PHP iCalendar // // Translation by Lieven Gekiere (Li...@ge...) // // Submit new translations to ch...@ch... $day_lang = 'Dag'; $week_lang = 'Week'; $month_lang = 'Maand'; $year_lang = 'Jaar'; $calendar_lang = 'Kalender'; $next_day_lang = 'Volgende Dag'; $next_month_lang = 'Volgende Maand'; $next_week_lang = 'Volgende Week'; $next_year_lang = 'Volgend Jaar'; $last_day_lang = 'Vorige Dag'; $last_month_lang = 'Vorige Maand'; $last_week_lang = 'Vorige Week'; $last_year_lang = 'Vorig Jaar'; $subscribe_lang = 'Abonneer'; $download_lang = 'Download'; $powered_by_lang = 'Gemaakt met'; $event_lang = 'Activiteit'; $event_start_lang = 'Start Tijd'; $event_end_lang = 'Eind Tijd'; $this_months_lang = 'Activiteiten Deze Maand'; $date_lang = 'Datum'; $summary_lang = 'Overzicht'; $all_day_lang = 'Dag Activiteit'; $notes_lang = 'Opmerkingen'; $this_years_lang = 'Activiteiten Dit Jaar'; $today_lang = 'Vandaag'; $this_week_lang = 'Deze Week'; $this_month_lang = 'Deze Maand'; $jump_lang = 'Ga naar'; $tomorrows_lang = 'Activiteiten voor morgen'; $goday_lang = 'Ga Naar Vandaag'; $goweek_lang = 'Ga Naar Deze Week'; $gomonth_lang = 'Ga Naar Deze Maand'; $goyear_lang = 'Ga Naar Dit Jaar'; $search_lang = 'Zoeken'; // the verb $results_lang = 'Zoek Resultaten'; $query_lang = 'Zoekopdracht: '; // will be followed by the search query $no_results_lang = 'Geen activiteiten gevonden'; $goprint_lang = 'Makkelijk Printbaar'; $time_lang = 'Tijd'; $summary_lang = 'Overzicht'; $description_lang = 'Omschrijving'; $this_site_is_lang = 'Deze site is'; $no_events_day_lang = 'Geen activiteiten vandaag.'; $no_events_week_lang = 'Geen activiteiten deze week.'; $no_events_month_lang = 'Geen activiteiten deze maand.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%b %e'; // Lists just the day $rss_month_date = '%b %e'; // Lists just the day $rss_language = 'en-us'; $search_took_lang = 'Zoeken duurde %s seconden'; $recurring_event_lang = 'Terugkerend evenement'; $exception_lang = 'Uitzondering'; $no_query_lang = 'Geen opdracht gegeven'; $preferences_lang = 'Voorkeuren'; $printer_lang = 'Printer'; $select_lang_lang = 'Selecteer jouw standaard taal:'; $select_cal_lang = 'Selecteer jouw standaard kalender:'; $select_view_lang = 'Selecteer jouw standaard view:'; $select_time_lang = 'Selecteer jouw standaard start tijd:'; $select_day_lang = 'Selecteer jouw standaard start weekdag:'; $select_style_lang = 'Selecteer jouw standaard stijl:'; $set_prefs_lang = 'Zet voorkeuren'; $completed_date_lang = 'Volbracht op'; $completed_lang = 'Volbracht'; $created_lang = 'Gemaakt:'; $due_lang = 'Op:'; $priority_lang = 'Prioriteit:'; $priority_high_lang = 'Hoog'; $priority_low_lang = 'Laag'; $priority_medium_lang = 'Medium'; $priority_none_lang = 'Geen'; $status_lang = 'Status:'; $todo_lang = 'Nog af te werken items'; $unfinished_lang = 'Niet afgewerkt'; $prefs_set_lang = 'Uw voorkeuren zijn bewaard.'; $prefs_unset_lang = 'Voorkeuren niet bewaard. Aanpassingen zijn actief de volgende keer u de pagina laadt.'; $unset_prefs_lang = 'Niet bewaarde voorkeuren:'; $organizer_lang = 'Organisator'; $attendee_lang = 'Aanwezige'; $status_lang = 'Status'; $location_lang = 'Locatie'; $admin_header_lang = 'PHP iCalender Administratie'; $username_lang = 'Gebruikersnaam'; $password_lang = 'Paswoord'; $login_lang = 'Login'; $invalid_login_lang = 'Foute gebruikersnaam of paswoord.'; $addupdate_cal_lang = 'Voeg een kalender toe of pas hem aan'; $addupdate_desc_lang = 'Voeg een kalender toe door hem up te loaden. Update een kalender door hem te uploaden met dezelfde naam.'; $delete_cal_lang = 'Verwijder een Kalender'; $logout_lang = 'Log uit'; $cal_file_lang = 'Calender File'; $php_error_lang = 'PHP Fout'; $upload_error_gen_lang = 'Er was een probleem met uw upload'; $upload_error_lang[0] = 'Er was een probleem met uw upload.'; $upload_error_lang[1] = 'De file die je probeert up te loaden is te groot.'; $upload_error_lang[2] = 'De file die je probeert up te loaden is te groot.'; $upload_error_lang[3] = 'De file die je probeert up te loaden is maar gedeeltelijk geuploaded.'; $upload_error_lang[4] = 'Je moet een file aanduiden om te uploaden.'; $upload_error_type_lang = 'Enkel .ics files mogen geuploaded worden.'; $copy_error_lang = 'Kopieren van de file mislukt'; $delete_error_lang = 'Verwijderen van de file mislukt'; $delete_success_lang = 'is succesvol verwijderd.'; $action_success_lang = 'uw actie was succesvol.'; $submit_lang = 'Verzenden'; $delete_lang = 'Verwijder'; // ----- New for 0.9.4 $all_cal_comb_lang = 'All calendars combined'; // - navigation $back_lang = 'Terug'; $next_lang = 'Volgende'; $prev_lang = 'Vorige'; $day_view_lang = 'Dag overzicht'; $week_view_lang = 'Week overzicht'; $month_view_lang = 'Maand overzicht'; $year_view_lang = 'Jaar overzicht'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('jaar','jaren'); // for these, put singular $format_recur_lang['monthly'] = array('maand','maanden'); // and plural forms $format_recur_lang['weekly'] = array('week','weken'); // these will be %freq% $format_recur_lang['daily'] = array('dag','dagen'); // in the replacement below $format_recur_lang['hourly'] = array('uur','uren'); $format_recur_lang['minutely'] = array('minuut','minuten'); $format_recur_lang['secondly'] = array('second','seconden'); $format_recur_lang['start'] = 'Iedere %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'tot %date%'; // ie, 'until January 4' $format_recur_lang['count'] = '%int% maal'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'In de maanden: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'Op datums: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'Op dagen: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- $daysofweek_lang = array ('Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag'); $daysofweekshort_lang = array ('Zon','Maa','Din','Woe','Don','Vrij','Zat'); $daysofweekreallyshort_lang = array ('Z','M','D','W','D','V','Z'); $monthsofyear_lang = array ('Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December'); $monthsofyearshort_lang = array ('Jan','Feb','Maa','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; $timeFormat_small = 'G:i'; // For date formatting, see note below $dateFormat_day = '%A %e %B'; $dateFormat_week = '%e %B'; $dateFormat_week_list = '%a %e %b'; $dateFormat_week_jump = '%e %b';// new since last translation $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A %e %B'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Fout!'; $error_window_lang = 'Er is een fout opgetreden!'; $error_calendar_lang = 'De kalender "%s" was aan het processen toen de fout gebeurde.'; $error_path_lang = 'Onmogelijk om de directory te openen: "%s"'; $error_back_lang = 'Gebruik de knop "Vorige" om terug te keren.'; $error_remotecal_lang = 'Deze server blokt alle niet-geaccepteerde kalenders.'; $error_restrictedcal_lang = 'Je probeerde een beveiligde kalender te bekijken.'; $error_invalidcal_lang = 'Ongeldig kalender bestand. Probeer een andere kalender aub.'; ?> --- NEW FILE: english.inc.php --- <?php // English language include // For version 0.9.4 PHP iCalendar // // Translation by Chad Little (ch...@ch...) // // Submit new translations to ch...@ch... $day_lang = 'Day'; $week_lang = 'Week'; $month_lang = 'Month'; $year_lang = 'Year'; $calendar_lang = 'Calendar'; $next_day_lang = 'Next Day'; $next_month_lang = 'Next Month'; $next_week_lang = 'Next Week'; $next_year_lang = 'Next Year'; $last_day_lang = 'Previous Day'; $last_month_lang = 'Previous Month'; $last_week_lang = 'Previous Week'; $last_year_lang = 'Previous Year'; $subscribe_lang = 'Subscribe'; $download_lang = 'Download'; $powered_by_lang = 'Powered by'; $event_lang = 'Event'; $event_start_lang = 'Start Time'; $event_end_lang = 'End Time'; $this_months_lang = 'This Month\'s Events'; $date_lang = 'Date'; $summary_lang = 'Summary'; $all_day_lang = 'All day event'; $notes_lang = 'Notes'; $this_years_lang = 'This Year\'s Events'; $today_lang = 'Today'; $this_week_lang = 'This Week'; $this_month_lang = 'This Month'; $jump_lang = 'Jump to'; $tomorrows_lang = 'Tomorrow\'s Events'; $goday_lang = 'Go to Today'; $goweek_lang = 'Go to This Week'; $gomonth_lang = 'Go to This Month'; $goyear_lang = 'Go to This Year'; $search_lang = 'Search'; // the verb $results_lang = 'Search Results'; $query_lang = 'Query'; // will be followed by the search query $no_results_lang = 'No events found'; $goprint_lang = 'Printer Friendly'; $time_lang = 'Time'; $summary_lang = 'Summary'; $description_lang = 'Description'; $this_site_is_lang = 'This site is'; $no_events_day_lang = 'No events today.'; $no_events_week_lang = 'No events this week.'; $no_events_month_lang = 'No events this month.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%b %e'; // Lists just the day $rss_month_date = '%b %e'; // Lists just the day $rss_language = 'en-us'; $search_took_lang = 'Search took %s seconds'; $recurring_event_lang = 'Recurring event'; $exception_lang = 'Exception'; $no_query_lang = 'No query given'; $preferences_lang = 'Preferences'; $printer_lang = 'Printer'; $select_lang_lang = 'Select your default language:'; $select_cal_lang = 'Select your default calendar:'; $select_view_lang = 'Select your default view:'; $select_time_lang = 'Select your default start time:'; $select_day_lang = 'Select your default start day of week:'; $select_style_lang = 'Select your default style:'; $set_prefs_lang = 'Set preferences'; $completed_date_lang = 'Completed on'; $completed_lang = 'Completed'; $created_lang = 'Created:'; $due_lang = 'Due:'; $priority_lang = 'Priority:'; $priority_high_lang = 'High'; $priority_low_lang = 'Low'; $priority_medium_lang = 'Medium'; $priority_none_lang = 'None'; $status_lang = 'Status:'; $todo_lang = 'To do items'; $unfinished_lang = 'Unfinished'; $prefs_set_lang = 'Your preferences have been set.'; $prefs_unset_lang = 'Preferences unset. Changes will take place next page load.'; $unset_prefs_lang = 'Unset preferences:'; $organizer_lang = 'Organizer'; $attendee_lang = 'Attendee'; $status_lang = 'Status'; $location_lang = 'Location'; $admin_header_lang = 'PHP iCalendar Administration'; $username_lang = 'Username'; $password_lang = 'Password'; $login_lang = 'Login'; $invalid_login_lang = 'Wrong username or password.'; $addupdate_cal_lang = 'Add or Update a Calendar'; $addupdate_desc_lang = 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.'; $delete_cal_lang = 'Delete a Calendar'; $logout_lang = 'Logout'; $cal_file_lang = 'Calendar File'; $php_error_lang = 'PHP Error'; $upload_error_gen_lang = 'There was a problem with your upload.'; $upload_error_lang[0] = 'There was a problem with your upload.'; $upload_error_lang[1] = 'The file you are trying to upload is too big.'; $upload_error_lang[2] = 'The file you are trying to upload is too big.'; $upload_error_lang[3] = 'The file you are trying upload was only partially uploaded.'; $upload_error_lang[4] = 'You must select a file for upload.'; $upload_error_type_lang = 'Only .ics files may be uploaded.'; $copy_error_lang = 'Failed to copy file'; $delete_error_lang = 'Failed to delete file'; $delete_success_lang = 'was deleted successfully.'; $action_success_lang = 'Your action was successful.'; $submit_lang = 'Submit'; $delete_lang = 'Delete'; // ----- New for 0.9.4 $all_cal_comb_lang = 'All calendars combined'; // - navigation $back_lang = 'Back'; $next_lang = 'Next'; $prev_lang = 'Prev'; $day_view_lang = 'Day View'; $week_view_lang = 'Week View'; $month_view_lang = 'Month View'; $year_view_lang = 'Year View'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('year','years'); // for these, put singular $format_recur_lang['monthly'] = array('month','months'); // and plural forms $format_recur_lang['weekly'] = array('week','weeks'); // these will be %freq% $format_recur_lang['daily'] = array('day','days'); // in the replacement below $format_recur_lang['hourly'] = array('hour','hours'); $format_recur_lang['minutely'] = array('minute','minutes'); $format_recur_lang['secondly'] = array('second','seconds'); $format_recur_lang['start'] = 'Every %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'until %date%'; // ie, 'until January 4' $format_recur_lang['count'] = 'for a count of %int%'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'In months: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'On dates: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'On days: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' $daysofweek_lang = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); $daysofweekshort_lang = array ('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); $daysofweekreallyshort_lang = array ('S','M','T','W','T','F','S'); $monthsofyear_lang = array ('January','February','March','April','May','June','July','August','September','October','November','December'); $monthsofyearshort_lang = array ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'g:i A'; $timeFormat_small = 'g:i'; // For date formatting, see note below $dateFormat_day = '%A, %B %e'; $dateFormat_week = '%B %e'; $dateFormat_week_list = '%a, %b %e'; $dateFormat_week_jump = '%b %e'; $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A, %B %e'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Error!'; $error_window_lang = 'There was an error!'; $error_calendar_lang = 'The calendar "%s" was being processed when this error occurred.'; $error_path_lang = 'Unable to open the path: "%s"'; $error_back_lang = 'Please use the "Back" button to return.'; $error_remotecal_lang = 'This server blocks remote calendars which have not been approved.'; $error_restrictedcal_lang = 'You have tried to access a calendar that is restricted on this server.'; $error_invalidcal_lang = 'Invalid calendar file. Please try a different calendar.'; ?> --- NEW FILE: esperanto.inc.php --- <?php // Esperanto language include // For version 0.9.4 PHP iCalendar // // Translation by Sjoerd Bosga (sj...@es...) // // Submit new translations to ch...@ch... $day_lang = 'Tago'; $week_lang = 'Semajno'; $month_lang = 'Monato'; $year_lang = 'Jaro'; $calendar_lang = 'kalendaro'; $next_day_lang = 'Venonta tago'; $next_month_lang = 'Venonta monato'; $next_week_lang = 'Venonta semajno'; $next_year_lang = 'Venonta jaro'; $last_day_lang = 'Antaŭa tago'; $last_month_lang = 'Antaŭa monato'; $last_week_lang = 'Antaŭa semajno'; $last_year_lang = 'Antaŭa jaro'; $subscribe_lang = 'Abonu'; $download_lang = 'Elŝutu'; $powered_by_lang = 'Funkciigita per'; $event_lang = 'Evento'; $event_start_lang = 'Komenchoro'; $event_end_lang = 'Finhoro'; $this_months_lang = 'Eventoj de tiu ĉi monato'; $date_lang = 'Dato'; $summary_lang = 'Resumo'; $all_day_lang = 'Tuttaga evento'; $notes_lang = 'Notoj'; $this_years_lang = 'Eventoj de tiu ĉi jaro'; $today_lang = 'Hodiaŭ'; $this_week_lang = 'Ĉi-semajne'; $this_month_lang = 'Ĉi-monate'; $jump_lang = 'Saltu al'; $tomorrows_lang = 'Eventoj de morgaŭ'; $goday_lang = 'Iru al hodiaŭ'; $goweek_lang = 'Iru al nuna semajno'; $gomonth_lang = 'Iru al nuna monato'; $goyear_lang = 'Iru al nuna jaro'; $search_lang = 'serĉi'; // the verb $results_lang = 'Rezultoj de serĉado'; $query_lang = 'Vi serĉis'; // will be followed by the search query $no_results_lang = 'Neniuj eventoj troviĝis'; $goprint_lang = 'Por printado'; $time_lang = 'Horo'; $summary_lang = 'Resumo'; $description_lang = 'Priskribo'; $this_site_is_lang = 'Tiu ĉi-paĝaro estas'; $no_events_day_lang = 'Neniuj eventoj hodiaŭ.'; $no_events_week_lang = 'Neniuj eventoj ĉi-semajne.'; $no_events_month_lang = 'Neniuj eventoj ĉi-monato.'; $rss_day_date = 'g:i A'; // Lists just the time $rss_week_date = '%b %e'; // Lists just the day $rss_month_date = '%b %e'; // Lists just the day $rss_language = 'eo'; $search_took_lang = 'Serĉado daŭris %s sekundojn'; $recurring_event_lang = 'Ripetita evento'; $exception_lang = 'Escepto'; $no_query_lang = 'Vi ne indikis kion serĉi'; $preferences_lang = 'Preferoj'; $printer_lang = 'Printilo'; $select_lang_lang = 'Elektu vian preferatan lingvon:'; $select_cal_lang = 'Elektu vian preferatan kalendaron:'; $select_view_lang = 'Elektu vian preferatan montradon:'; $select_time_lang = 'Elektu vian preferatan komencan horon:'; $select_day_lang = 'Elektu vian preferatan unuan tagon en semajno:'; $select_style_lang = 'Elektu vian preferatan stilon:'; $set_prefs_lang = 'Konservu preferojn'; $completed_date_lang = 'Farita je'; $completed_lang = 'Farita'; $created_lang = 'Kreita:'; $due_lang = 'Devos preti je:'; $priority_lang = 'Prioritato:'; $priority_high_lang = 'Alta'; $priority_low_lang = 'Malalta'; $priority_medium_lang = 'Meza'; $priority_none_lang = 'Nenia'; $status_lang = 'Stato:'; $todo_lang = 'Farendaĵoj'; $unfinished_lang = 'Nekompletigita'; $prefs_set_lang = 'Viaj preferoj estas konservitaj.'; $prefs_unset_lang = 'Viaj preferoj malkonserviĝis. Ŝanĝoj videblos venontan fojon kiam vi malfermos paĝon.'; $unset_prefs_lang = 'Malkonservu miajn preferojn:'; $organizer_lang = 'Organizanto:'; $attendee_lang = 'Ĉeestanto:'; $status_lang = 'Stato:'; $location_lang = 'Ejo:'; $admin_header_lang = 'PHP iCalendar Administrado'; $username_lang = 'Uzanto'; $password_lang = 'Pasvorto'; $login_lang = 'Ensaluti'; $invalid_login_lang = 'Malĝusta uzantonomo aŭ pasvorto.'; $addupdate_cal_lang = 'Aldoni aŭ ĝisdatigi kalendaron'; $addupdate_desc_lang = 'Aldonu kalendaron enŝutante novan dosieron. Ĝisdatigu kalendaron enŝutante dosieron kun sama nomo.'; $delete_cal_lang = 'Forigi kalendaron'; $logout_lang = 'Elsaluti'; $cal_file_lang = 'Kalendar-dosiero'; $php_error_lang = 'PHP eraro'; $upload_error_gen_lang = 'Estis iu problemo pri via enŝutado.'; $upload_error_lang[0] = 'Estis iu problemo pri via enŝutado.'; $upload_error_lang[1] = 'La dosiero kiun vi provas enŝuti estas tro granda.'; $upload_error_lang[2] = 'La dosiero kiun vi provas enŝuti estas tro granda.'; $upload_error_lang[3] = 'La dosiero kiun vi provas enŝuti nur parte enŝutiĝis.'; $upload_error_lang[4] = 'Vi devas selekti dosieron por enŝuti.'; $upload_error_type_lang = 'Nur .ics dosieroj akceptiĝas.'; $copy_error_lang = 'Malsukcesis kopii la dosieron'; $delete_error_lang = 'Malsukcesis forigi la dosieron'; $delete_success_lang = 'estis sukcese forigita.'; $action_success_lang = 'Via peto plenumiĝis.'; $submit_lang = 'Enŝuti'; $delete_lang = 'Forigi'; // ----- New after 0.9.4 $all_cal_comb_lang = 'Ĉiuj kalendaroj kune'; // - navigation $back_lang = 'Reen'; $next_lang = 'Venonta'; $prev_lang = 'Antaŭa'; $day_view_lang = 'Taga montrado'; $week_view_lang = 'Semajna montrado'; $month_view_lang = 'Monata montrado'; $year_view_lang = 'Jara montrado'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('jaron','jarojn'); // for these, put singular $format_recur_lang['monthly'] = array('monaton','monatojn'); // and plural forms $format_recur_lang['weekly'] = array('semajno','semajnojn'); // these will be %freq% $format_recur_lang['daily'] = array('tagon','tagojn'); // in the replacement below $format_recur_lang['hourly'] = array('horon','horojn'); $format_recur_lang['minutely'] = array('minuton','minutojn'); $format_recur_lang['secondly'] = array('sekundon','sekundojn'); // Problem! In Esperanto also "Every" needs to have a different form for singular and plural! $format_recur_lang['start'] = 'Ĉiu(j)n %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' $format_recur_lang['until'] = 'ĝis %date%'; // ie, 'until January 4' $format_recur_lang['count'] = '%int% fojojn'; // ie, 'for 5 times' $format_recur_lang['bymonth'] = 'Dum la monatoj: %list%'; // ie, 'In months: January, February, March' $format_recur_lang['bymonthday'] = 'Dum la jenaj tagoj de la monato: %list%'; // ie, 'On dates: 1, 2, 3, 4' $format_recur_lang['byday'] = 'Dum la jenaj tagoj de la semajno: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' $daysofweek_lang = array ('Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'); $daysofweekshort_lang = array ('Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'); $daysofweekreallyshort_lang = array ('D','L','M','M','Ĵ','V','S'); $monthsofyear_lang = array ('Januaro','Februaro','Marto','Aprilo','Majo','Junio','Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'); $monthsofyearshort_lang = array ('Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aŭg','Sep','Okt','Nov','Dec'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; $timeFormat_small = 'G:i'; // For date formatting, see note below $dateFormat_day = '%A, %e %B'; $dateFormat_week = '%e %B'; $dateFormat_week_list = '%a, %e %b'; $dateFormat_week_jump = '%e %b'; $dateFormat_month = '%B %Y'; $dateFormat_month_list = '%A, %B %e'; /* Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: %A - the full week day name as specified in $daysofweek_lang %a - the shortened week day name as specified in $daysofweekshort_lang %B - the full month name as specified in $monthsofyear_lang %b - the shortened month name as specified in $monthsofyearshort_lang %e - the day of the month as a decimal number (1 to 31) %Y - the 4-digit year If this causes problems with representing your language accurately, let us know. We will be happy to modify this if needed. */ // Error messages - %s will be replaced with a variable $error_title_lang = 'Eraro!'; $error_window_lang = 'Okazis eraro!'; $error_calendar_lang = 'La eraro okazis dum traktado de la kalendaro "%s".'; $error_path_lang = 'Ne eblis malfermi la jenon: "%s"'; $error_back_lang = 'Bonvolu uzi la "Reen" butonon por reiri.'; $error_remotecal_lang = 'Tiu ĉi servilo blokas eksterajn kalendarojn kiuj ne estas aprobitaj.'; $error_restrictedcal_lang = 'Vi provis aliri kalendaron kiu estas limigita fare de tiu ĉ servilo.'; $error_invalidcal_lang = 'Nevalida kalendardosiero. Bonvolu provi alian kalendaron.'; ?> --- NEW FILE: finnish.inc.php --- <?php // Finnish language include // For version 0.9.4 PHP iCalendar // // Translation by Kari Somby (kar...@ra...) // // Submit new translations to ch...@ch... $day_lang = 'Päivä'; $week_lang = 'Viikko'; $month_lang = 'Kuukausi'; $year_lang = 'Vuosi'; $calendar_lang = 'Kalenteri'; $next_day_lang = 'Seuraava Päivä'; $next_month_lang = 'Seuraava Kuukausi'; $next_week_lang = 'Seuraava Viikko'; $next_year_lang = 'Seuraava Vuosi'; $last_day_lang = 'Edellinen Päivä'; $last_month_lang = 'Edellinen K... [truncated message content] |
Update of /cvsroot/openfirst/members/phpicalendar/includes In directory sc8-pr-cvs1:/tmp/cvs-serv25041 Added Files: calendar_nav.php event.php footer.inc.php header.inc.php sidebar.php todo.php Log Message: Add PHP iCalendar includes to the repository --- NEW FILE: calendar_nav.php --- <?php if ($cal == $ALL_CALENDARS_COMBINED) { $cal_displayname2 = $all_cal_comb_lang; } else { $cal_displayname2 = $calendar_name . " $calendar_lang"; } if (strlen($cal_displayname2) > 24) { $cal_displayname2 = substr("$cal_displayname2", 0, 21); $cal_displayname2 = $cal_displayname2 . "..."; } $next_day = date("Ymd", strtotime("+1 day", $unix_time)); $prev_day = date("Ymd", strtotime("-1 day", $unix_time)); // Get the real date to display as "go to today", not the date displayed in the calendar $really_unix_time = strtotime(date('Ymd')); $really_today_today = date ('Ymd', $really_unix_time); $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15'); ?> <br> <table border="0" width="737" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$prev_day\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"[$last_day_lang]\" border=\"0\" align=\"left\"></a>"; ?></td> <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_day, strtotime($getdate))); ?></b></font></td> <td align="right" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$next_day\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"[$next_day_lang]\" border=\"0\" align=\"right\"></a>"; ?></td> </tr> <tr> <td colspan="3"><img src="images/spacer.gif" width="1" height="5" alt=" "></td> </tr> <tr> <td width="1%" valign="top" align="right"> <table cellpadding="0" cellspacing="0" border="0" width="160"> <tr> <td valign="middle" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <?php $start_day = strtotime($week_start_day); echo '<tr>'; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; echo '<td align="center" class="G10BOLD">'.$day.'</td>'; $start_day = strtotime("+1 day", $start_day); } echo '</tr>'; $minical_time = strtotime("-1 month", $fake_getdate_time); $minical_month = date("m", $minical_time); $minical_year = date("Y", $minical_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); $i = 0; $whole_month = TRUE; $num_of_events = 0; do { $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>'; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo '<td width="22" align="center" class="G10B">'; echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } else { echo '<td width="22" align="center" class="G10B">'; echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } $start_day = strtotime("+1 day", $start_day); $i++; if ($i == 7) { echo '</tr>'; $i = 0; $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } } while ($whole_month == TRUE); ?> </table> <img src="images/spacer.gif" width="1" height="3" alt=" "><br> </td> </tr> </table> </td> </tr> </table> </td> <td width="98%" valign="top" align="center"> <table border="0" width="330" cellspacing="0" cellpadding="0"> <tr> <td width="160" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="160"> <tr> <td bgcolor="#FFFFFF" align="left" class="G10BOLD"> <?php echo '<b>'.$jump_lang.'</b><br>'; echo '<img src="images/spacer.gif" width="1" height="6" alt=" "><br>'; echo "<form style=\"margin-bottom:0;\" action=\"month.php\" method=\"GET\"><select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">"; include('./functions/list_icals.php'); include('./functions/list_years.php'); include('./functions/list_months.php'); include('./functions/list_weeks.php'); echo "</form>"; echo '<img src="images/spacer.gif" width="1" height="6" alt=" "><br>'; ?> </td> </tr> </table> </td> <td><img src="images/spacer.gif" width="20" height="1" alt=" "></td> <td width="160" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="160"> <tr> <td valign="middle" align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%"> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="2" alt=" "></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td> <td colspan="6"><font class="G10BOLD"><?php echo "$cal_displayname2"; ?></font></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td> <td colspan="6" class="G10B"> <?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$really_today_today\">$goday_lang</a><br>\n"; echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$really_today_today\">$goweek_lang</a><br>\n"; echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$really_today_today\">$gomonth_lang</a><br>\n"; echo "<a class=\"psf\" href=\"year.php?cal=$cal&getdate=$really_today_today\">$goyear_lang</a><br>\n"; echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n"; if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n"; if ($cal != $ALL_CALENDARS_COMBINED) echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n"; ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width="1%" valign="top" align="left"> <table cellpadding="0" cellspacing="0" border="0" width="160"> <tr> <td valign="middle" align="center"> <table width="160" border="0" cellpadding="3" cellspacing="0"> <tr> <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", $fake_getdate_time))); ?></font></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <?php $start_day = strtotime($week_start_day); echo '<tr>'; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; echo '<td align="center" class="G10BOLD">'.$day.'</td>'; $start_day = strtotime("+1 day", $start_day); } echo '</tr>'; $minical_time = strtotime("+1 month", $fake_getdate_time); $minical_month = date("m", $minical_time); $minical_year = date("Y", $minical_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); $i = 0; $whole_month = TRUE; $num_of_events = 0; do { $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>'; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo '<td width="22" align="center" class="G10B">'; echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } else { echo '<td width="22" align="center" class="G10B">'; echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } $start_day = strtotime("+1 day", $start_day); $i++; if ($i == 7) { echo '</tr>'; $i = 0; $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } } while ($whole_month == TRUE); ?> </table> <img src="images/spacer.gif" width="1" height="3" alt=" "><br> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> --- NEW FILE: event.php --- <?php define('BASE', '../'); include (BASE.'functions/init.inc.php'); if (isset($HTTP_GET_VARS['event']) && ($HTTP_GET_VARS['event'] !== '') ) { $event = $HTTP_GET_VARS['event']; } else { $event = ''; } if (isset($HTTP_GET_VARS['description']) && ($HTTP_GET_VARS['description'] !== '') ) { $description = $HTTP_GET_VARS['description']; } else { $description = ''; } if (isset($HTTP_GET_VARS['cal']) && ($HTTP_GET_VARS['cal'] !== '') ) { $calendar_name = $HTTP_GET_VARS['cal']; } else { $calendar_name = ''; } if (isset($HTTP_GET_VARS['start']) && ($HTTP_GET_VARS['start'] !== '') ) { $start = $HTTP_GET_VARS['start']; } else { $start = ''; } if (isset($HTTP_GET_VARS['end']) && ($HTTP_GET_VARS['end'] !== '') ) { $end = $HTTP_GET_VARS['end']; } else { $end = ''; } if (isset($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] !== '') ) { $status = $HTTP_GET_VARS['status']; } else { $status = ''; } if (isset($HTTP_GET_VARS['location']) && ($HTTP_GET_VARS['location'] !== '') ) { $location = $HTTP_GET_VARS['location']; } else { $location = ''; } if (isset($HTTP_GET_VARS['organizer']) && ($HTTP_GET_VARS['organizer'] !== '') ) { $organizer = $HTTP_GET_VARS['organizer']; } else { $organizer = ''; } if (isset($HTTP_GET_VARS['attendee']) && ($HTTP_GET_VARS['attendee'] !== '') ) { $attendee = $HTTP_GET_VARS['attendee']; } else { $attendee = ''; } $event = rawurldecode($event); $event = stripslashes($event); $event = str_replace('\\', '', $event); $description = rawurldecode($description); $description = stripslashes($description); $description = str_replace('\\', '', $description); $organizer = rawurldecode($organizer); $organizer = stripslashes($organizer); $organizer = str_replace('\\', '', $organizer); $organizer = unserialize ($organizer); $attendee = rawurldecode($attendee); $attendee = stripslashes($attendee); $attendee = str_replace('\\', '', $attendee); $attendee = unserialize ($attendee); $location = rawurldecode($location); $location = stripslashes($location); $location = str_replace('\\', '', $location); $calendar_name2 = rawurldecode($calendar_name); $calendar_name2 = stripslashes($calendar_name2); $calendar_name2 = str_replace('\\', '', $calendar_name2); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <title><?php if ($calendar_name == $ALL_CALENDARS_COMBINED) { echo "$all_cal_comb_lang"; } else { echo "$calendar_name2"; }?></title> <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>"> </head> <body bgcolor="#eeeeee"><center> <table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="../images/spacer.gif" width="1" height="20" alt=" "></td> <td align="center" width="98%" class="sideback"><font class="G10BOLD"> <?php if ($calendar_name == $ALL_CALENDARS_COMBINED) { echo "$all_cal_comb_lang"; } else { echo "$calendar_name2 $calendar_lang"; } ?> </font></td> <td align="right" valign="top" width="1%" class="sideback"></td> </tr> <tr> <td colspan="3"><img src="../images/spacer.gif" width="1" height="6" alt=" "></td> </tr> <tr> <td colspan="3"> <table width="430" border="0" cellspacing="0" cellpadding="0"> <?php if (($start) && ($end)) $event_times = ' - <font class="V9">(<i>'.$start.' - '.$end.'</i>)</font>'; if ($start == '' && $end == '' && (isset($start) && isset($end))) $event_times = ' - <font class="V9">(<i>'.$all_day_lang.'</i>)</font>'; ?> <tr> <td width="1%"><img src="../images/spacer.gif" width="6" height="1" alt=" "></td> <td align="left" colspan="2" class="V12"><?php echo $event.' '.$event_times.'<br><br>'; ?></td> </tr> <?php if ($description) { ?> <tr> <td width="1%"><img src="../images/spacer.gif" width="6" height="1" alt=" "></td> <td align="left" colspan="2" class="V12"> <?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", '<a target="_new" href="\0">\0</a>', $description); ?></td> </tr> <?php } ?> <?php if ($organizer) { $i = 0; echo '<tr>'; echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>'; echo '<td align="left" colspan="2" class="V12">'; echo $organizer_lang.' - '; foreach ($organizer as $val) { $organizers .= $organizer[$i]["name"].', '; $i++; } $organizers = substr ($organizers, 0, -2); echo $organizers.'</td></tr>'; } if ($attendee) { $i = 0; echo '<tr>'; echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>'; echo '<td align="left" colspan="2" class="V12">'; echo $attendee_lang.' - '; foreach ($attendee as $val) { $attendees .= $attendee[$i]["name"].', '; $i++; } $attendees = substr ($attendees, 0, -2); echo $attendees.'</td></tr>'; } if ($status) { echo '<tr>'; echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>'; echo '<td align="left" colspan="2" class="V12">'; echo $status_lang.' - '.$status.'</td>'; echo '</tr>'; } if ($location) { echo '<tr>'; echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>'; echo '<td align="left" colspan="2" class="V12">'; echo $location_lang.' - '.$location.'</td>'; echo '</tr>'; } ?> </table> </td> </tr> </table> </center> </body> </html> --- NEW FILE: footer.inc.php --- <?php echo "<br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 0.9.4</a>"; if ($enable_rss == 'yes') { echo "<br>\n"; if ((isset($current_view)) && ($current_view == 'rssindex')) { echo '<a style="color:gray" href="http://feeds.archive.org/validator/check?url='.$footer_check.'"><img src="'.BASE.'images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" />'; } else { echo $this_site_is_lang.' <a class="psf" href="'.BASE.'rss/index.php?cal='.$cal.'&getdate='.$getdate.'">RSS-Enabled</a>'; } } echo '</center>'; include($footer); ?> --- NEW FILE: header.inc.php --- <?php include($header); if(! isset($user->user) || $user->user == "") { die(show_login() . include($footer)); } ?> --- NEW FILE: sidebar.php --- <?php // Get the real date to display in the sidebar, not the date displayed in the calendar $really_unix_time = strtotime(date('Ymd')); $really_today_today = date ('Ymd', $really_unix_time); if ($cal == $ALL_CALENDARS_COMBINED) { $cal_displayname2 = $all_cal_comb_lang; } else { $cal_displayname2 = $calendar_name . " $calendar_lang"; } if (strlen($cal_displayname2) > 24) { $cal_displayname2 = substr("$cal_displayname2", 0, 21); $cal_displayname2 = $cal_displayname2 . "..."; } $search_box = '<form style="margin-bottom:0;" action="search.php" method="GET"><input type="hidden" name="cal" value="'.$cal.'"><input type="hidden" name="getdate" value="'.$getdate.'"><input type="text" style="font-size:10px" size="15" class="search_style" name="query" value="'.$search_lang.'" onfocus="javascript:if(this.value==\''.$search_lang.'\') {this.value=\'\';}" onblur="javascript:if(this.value==\'\') {this.value=\''.$search_lang.'\'}"><INPUT type="image" src="styles/'.$style_sheet.'/search.gif" name="submit" value="Search"></form>'; ?> <table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"[$prev_lang]\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td> <td align="center" width="112" class="sideback"><font class="G10BOLD"><?php echo "$thisday2"; ?></font></td> <td align="right" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"[$next_lang]\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="left"> <?php echo '<div style="padding: 5px;">'; echo '<font class="G10BOLD">'.$cal_displayname2.'</font><br>'; echo '<span class="G10">'; echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$really_today_today\">$goday_lang</a><br>\n"; echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$really_today_today\">$goweek_lang</a><br>\n"; echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$really_today_today\">$gomonth_lang</a><br>\n"; echo "<a class=\"psf\" href=\"year.php?cal=$cal&getdate=$really_today_today\">$goyear_lang</a><br>\n"; echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n"; if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n"; if ($cal != $ALL_CALENDARS_COMBINED) echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n"; echo '</span></div>'; ?> </td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$jump_lang"; ?></div></td> </tr> <tr> <td bgcolor="#FFFFFF" align="left"> <?php echo '<div style="padding: 5px;">'; echo '<form style="margin-bottom:0;" action="day.php" method="GET">'; echo "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">"; include('./functions/list_icals.php'); include('./functions/list_years.php'); include('./functions/list_months.php'); include('./functions/list_weeks.php'); echo '</form>'; if ($show_search == 'yes') { echo $search_box; } if ($display_custom_goto == "yes") { echo '<form style="margin-bottom:0;" action="day.php" method="GET">'; echo '<input type="hidden" name="cal" value="'.urlencode($cal).'">'; echo '<input type="text" style="width:160px; font-size:10px" name="jumpto_day">'; echo '<input type="submit" value="Go">'; echo '</form>'; } echo '</div>'; ?> </td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <?php if (isset($master_array[($tomorrows_date)]) && sizeof($master_array[($tomorrows_date)]) > 0) { ?> <table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$tomorrows_lang"; ?></div></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%"> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="6" alt=" "></td> </tr> <?php echo "<tr>\n"; echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\" alt=\" \"></td>"; echo "<td colspan=\"6\" class=\"G10B\" align=\"left\">\n"; foreach ($master_array[("$tomorrows_date")] as $event_times) { foreach ($event_times as $val) { $event_text = stripslashes(urldecode($val["event_text"])); $event_text = strip_tags($event_text, '<b><i><u>'); if ($event_text != "") { $event_text2 = rawurlencode(addslashes($val["event_text"])); $description = addslashes(urlencode($val["description"])); $event_start = @$val["event_start"]; $event_end = @$val["event_end"]; $event_start = date ($timeFormat, @strtotime ("$event_start")); $event_end = date ($timeFormat, @strtotime ("$event_end")); $calendar_name2 = addslashes($calendar_name); $calendar_name2 = urlencode($calendar_name2); $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); if (!isset($val["event_start"])) { $event_start = $all_day_lang; $event_end = ''; openevent($calendar_name2, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<i>', '</i>', 'psf'); echo "<br>\n"; } else { openevent($calendar_name2, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<font class="G10B">• ', '</font>', 'psf'); echo "<br>\n"; } } } } echo "</td>\n"; echo "</tr>\n"; ?> </table> </td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=" "></td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <?php } if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?> <table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" width="98%" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$todo_lang"; ?></div></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%"> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="6" alt=" "></td> </tr> <?php echo "<tr>\n"; echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\" alt=\" \"></td>"; echo "<td colspan=\"6\" class=\"G10B\" align=\"left\">\n"; echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"; foreach ($master_array['-2'] as $vtodo_times) { foreach ($vtodo_times as $val) { $vtodo_text = stripslashes(urldecode($val["vtodo_text"])); if ($vtodo_text != "") { if (isset($val["description"])) { $description = urldecode($val["description"]); } else { $description = ""; } $completed_date = $val['completed_date']; $status = $val["status"]; $priority = $val['priority']; $start_date = $val["start_date"]; $due_date = $val['due_date']; $vtodo_array = array( 'cal' => $calendar_name, 'completed_date'=> $completed_date, 'description' => $description, 'due_date' => $due_date, 'priority' => $priority, 'start_date' => $start_date, 'status' => $status, 'vtodo_text' => $vtodo_text); $vtodo_array = base64_encode(serialize($vtodo_array)); $vtodo_text = word_wrap(strip_tags(str_replace('<br>',' ',$vtodo_text), '<b><i><u>'), 21, $tomorrows_events_lines); $vtodo_link = "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\">"; if ($status == 'COMPLETED' || (isset($val['completed_date']) && isset($val['completed_time']))) { if ($show_completed == 'yes') { $vtodo_text = "<S>$vtodo_text</S>"; echo "<tr><td>$vtodo_link<img src=\"images/completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n"; echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n"; } } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) { echo "<tr><td>$vtodo_link<img src=\"images/important.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n"; echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n"; } else { echo "<tr><td>$vtodo_link<img src=\"images/not_completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n"; echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n"; } } } } echo "</table>\n"; echo "</td>\n"; echo "</tr>\n"; ?> </table> </td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=" "></td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <?php } $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15'); ?> <table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <?php $start_day = strtotime($week_start_day); echo '<tr>'; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; echo '<td align="center" class="G10BOLD">'.$day.'</td>'; $start_day = strtotime("+1 day", $start_day); } echo '</tr>'; $minical_time = strtotime("-1 month", $fake_getdate_time); $minical_month = date("m", $minical_time); $minical_year = date("Y", $minical_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); $i = 0; $whole_month = TRUE; $num_of_events = 0; do { $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>'; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo '<td width="22" align="center" class="G10B">'; echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } else { echo '<td width="22" align="center" class="G10B">'; echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } $start_day = strtotime("+1 day", $start_day); $i++; if ($i == 7) { echo '</tr>'; $i = 0; $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } } while ($whole_month == TRUE); ?> </table> <img src="images/spacer.gif" width="1" height="3" alt=" "><br> </td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime($getdate))); ?></font></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <?php $start_day = strtotime($week_start_day); echo '<tr>'; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; echo '<td align="center" class="G10BOLD">'.$day.'</td>'; $start_day = strtotime("+1 day", $start_day); } echo '</tr>'; $minical_time = $fake_getdate_time; $minical_month = date("m", $minical_time); $minical_year = date("Y", $minical_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); $i = 0; $whole_month = TRUE; $num_of_events = 0; do { $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>'; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo '<td width="22" align="center" class="G10B">'; echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } else { echo '<td width="22" align="center" class="G10B">'; echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } $start_day = strtotime("+1 day", $start_day); $i++; if ($i == 7) { echo '</tr>'; $i = 0; $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } } while ($whole_month == TRUE); ?> </table> <img src="images/spacer.gif" width="1" height="3" alt=" "><br> </td> </tr> </table> <img src="images/spacer.gif" width="1" height="10" alt=" "><br> <table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder"> <tr height="20"> <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></font></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <?php $start_day = strtotime($week_start_day); echo '<tr>'; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; echo '<td align="center" class="G10BOLD">'.$day.'</td>'; $start_day = strtotime("+1 day", $start_day); } echo '</tr>'; $minical_time = strtotime("+1 month", $fake_getdate_time); $minical_month = date("m", $minical_time); $minical_year = date("Y", $minical_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); $i = 0; $whole_month = TRUE; $num_of_events = 0; do { $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>'; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo '<td width="22" align="center" class="G10B">'; echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } else { echo '<td width="22" align="center" class="G10B">'; echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&getdate='.$daylink.'">'.$day.'</a>'; echo '</td>'; } $start_day = strtotime("+1 day", $start_day); $i++; if ($i == 7) { echo '</tr>'; $i = 0; $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } } while ($whole_month == TRUE); ?> </table> <img src="images/spacer.gif" width="1" height="3" alt=" "><br> </td> </tr> </table> --- NEW FILE: todo.php --- <?php define('BASE', '../'); include (BASE.'functions/init.inc.php'); include (BASE.'functions/date_functions.php'); // Unserialize the array so that we can use it. $vtodo_array = unserialize(base64_decode($HTTP_GET_VARS['vtodo_array'])); // Set the variables from the array if (isset($vtodo_array['vtodo_text']) && ($vtodo_array['vtodo_text'] !== '') ) { $vtodo_text = $vtodo_array['vtodo_text']; } else { $vtodo_text = ''; } if (isset($vtodo_array['description']) && ($vtodo_array['description'] !== '') ) { $description = $vtodo_array['description']; } else { $description = ''; } if (isset($vtodo_array['completed_date']) && ($vtodo_array['completed_date'] !== '') ) { $completed_date = localizeDate ($dateFormat_day, strtotime($vtodo_array['completed_date'])); } if (isset($vtodo_array['status']) && ($vtodo_array['status'] !== '') ) { $status = $vtodo_array['status']; } if ((!isset($status) || $status == "COMPLETED") && isset($completed_date)) { $status = "$completed_date_lang $completed_date"; } else if ($status == "COMPLETED") { $status = $completed_lang; } else { $status = $unfinished_lang; } if (isset($vtodo_array['cal']) && ($vtodo_array['cal'] !== '') ) { $calendar_name = $vtodo_array['cal']; } else { $calendar_name = ''; } if (isset($vtodo_array['start_date']) && ($vtodo_array['start_date'] !== '') ) { $start_date = localizeDate ($dateFormat_day, strtotime($vtodo_array['start_date'])); } if (isset($vtodo_array['due_date']) && ($vtodo_array['due_date'] !== '') && strtotime($vtodo_array['due_date']) != strtotime("+1 year", strtotime($start_date))) { $due_date = localizeDate ($dateFormat_day, strtotime($vtodo_array['due_date'])); } else { $due_date = ''; } if (isset($vtodo_array['priority']) && ($vtodo_array['priority'] !== '')) { $priority = $vtodo_array['priority']; if ($priority >= 1 && $priority <= 4) { $priority = $priority_high_lang; } else if ($priority == 5) { $priority = $priority_medium_lang; } else if ($priority >= 6 && $priority <= 9) { $priority = $priority_low_lang; } else { $priority = $priority_none_lang; } } else { $priority = $priority_none_lang; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <title><?php echo $calendar_name; ?></title> <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>"> </head> <body bgcolor="#eeeeee"><center> <table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="../images/spacer.gif" width="1" height="20" alt=" "></td> <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$calendar_name $calendar_lang"; ?></font></td> <td align="right" valign="top" width="1%" class="sideback"></td> </tr> <tr> <td colspan="3"><img src="../images/spacer.gif" width="1" height="6" alt=" "></td> </tr> <tr> <td colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1%"><img src="../images/spacer.gif" width="6" height="1" alt=" "></td> <td align="left" colspan="2" class="V12"><?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$vtodo_text).'<br /><br />'; ?></td> </tr> <?php if ($description) { ?> <tr> <td width="1%"><img src="../images/spacer.gif" width="6" height="1" alt=" "></td> <td align="left" colspan="2" class="V12"> <?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", '<a target="_new" href="\0">\0</a>', $description); ?></td> </tr> <?php } ?> <?php if ($status) { ?> <tr> <td></td> <td align="left" colspan="2" class="V12"><?php echo "$status_lang $status"; ?></td> </tr> <?php } ?> <tr> <td></td> <td align="left" colspan="2" class="V12"><?php echo "$priority_lang $priority"; ?></td> </tr> <tr> <td></td> <td align="left" colspan="2" class="V12"><?php echo "$created_lang $start_date"; ?></td> </tr> <?php if ($due_date) { ?> <tr> <td></td> <td align="left" colspan="2" class="V12"><?php echo "$due_lang $due_date"; ?></td> </tr> <?php } ?> </table> </td> </tr> </table> </center> </body> </html> |
From: <xt...@us...> - 2003-10-05 15:28:28
|
Update of /cvsroot/openfirst/members/phpicalendar/images In directory sc8-pr-cvs1:/tmp/cvs-serv24784 Added Files: cancelled.gif completed.gif confirmed.gif important.gif not_completed.gif phpical-logo.gif spacer.gif tentative.gif valid-rss.png Log Message: Add PHP iCalendar images to repository. --- NEW FILE: cancelled.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: completed.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: confirmed.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: important.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: not_completed.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: phpical-logo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tentative.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: valid-rss.png --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/members/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv24602 Added Files: admin_functions.php date_functions.php draw_functions.php error.php ical_parser.php init.inc.php list_icals.php list_languages.php list_months.php list_weeks.php list_years.php overlapping_events.php timezones.php todo.js upload_functions.php Log Message: Add functions from PHP iCalendar to the repository. --- NEW FILE: admin_functions.php --- <?php // Is the user logged in // // returns boolean is the user logged in function is_loggedin () { global $HTTP_SESSION_VARS; if (!isset($HTTP_SESSION_VARS['phpical_loggedin']) || $HTTP_SESSION_VARS['phpical_loggedin'] == FALSE) { return FALSE; } else return TRUE; } // Attempt to login. If login is valid, set the session variable 'phpical_loggedin' to TRUE and store the username and password in the session // // arg0: string username // arg1: string password // returns boolean was the login successful function login ($username, $password) { global $HTTP_SESSION_VARS; global $auth_method; switch ($auth_method) { case 'ftp': $loggedin = login_ftp($username, $password); break; case 'internal': $loggedin = login_internal($username, $password); break; default: $loggedin = FALSE; } $HTTP_SESSION_VARS['phpical_loggedin'] = $loggedin; if ($loggedin) { $HTTP_SESSION_VARS['phpical_username'] = $username; $HTTP_SESSION_VARS['phpical_password'] = $password; } return $loggedin; } // Attempt to login to the ftp server // // arg0: string username // arg1: string password // returns boolean was login successful function login_ftp ($username, $password) { global $ftp_server; // set up basic connection $conn_id = @ftp_connect($ftp_server); // login with username and password $login_result = @ftp_login($conn_id, $username, $password); // check connection if ((!$conn_id) || (!$login_result)) { return FALSE; } // close the FTP stream @ftp_close($conn_id); return TRUE; } // Attempt to login using username and password defined in config.inc.php // // arg0: string username // arg1: string password // returns boolean was login successful function login_internal ($username, $password) { global $auth_internal_username; global $auth_internal_password; if ($auth_internal_username == $username && $auth_internal_password == $password) return TRUE; else return FALSE; } // Delete a calendar. If using ftp for authentication, use ftp to delete. Otherwise, use file system functions. // // arg0: string calendar file - not the full path // returns boolean was delete successful function delete_cal ($filename) { global $HTTP_SESSION_VARS; global $auth_method; global $ftp_server; global $calendar_path; global $ftp_calendar_path; if ($auth_method == 'ftp') { $filename = get_ftp_calendar_path() . "/" . $filename; // set up basic connection $conn_id = @ftp_connect($ftp_server); // login with username and password $login_result = @ftp_login($conn_id, $HTTP_SESSION_VARS['phpical_username'], $HTTP_SESSION_VARS['phpical_password']); // check connection if ((!$conn_id) || (!$login_result)) return FALSE; // delete the file $delete = @ftp_delete($conn_id, $filename); // check delete status if (!$delete) return FALSE; // close the FTP stream @ftp_close($conn_id); return TRUE; } else { $filename = $calendar_path . "/" . $filename; $delete = @unlink($filename); clearstatcache(); if (@file_exists($filename)) { $filesys = eregi_replace("/","\\", $filename); $delete = @system("del $filesys"); clearstatcache(); if (@file_exists($filename)) { $delete = @chmod ($filename, 0775); $delete = @unlink($filename); $delete = @system("del $filesys"); } } clearstatcache(); if (@file_exists($filename)) { return FALSE; } else { return TRUE; } return TRUE; } } // Copy the uploaded calendar. If using ftp for authentication, use ftp to copy. Otherwise, use file system functions. // // arg0: string full path to calendar file // arg1: string destination filename // returns boolean was copy successful function copy_cal ($source, $destination) { global $HTTP_SESSION_VARS; global $auth_method; global $ftp_server; global $calendar_path; if ($auth_method == 'ftp') { $destination = get_ftp_calendar_path() . "/" . basename($destination); $destination = str_replace ("\\", "/", realpath($destination)); // set up basic connection $conn_id = ftp_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $HTTP_SESSION_VARS['phpical_username'], $HTTP_SESSION_VARS['phpical_password']); // check connection if ((!$conn_id) || (!$login_result)) return FALSE; // upload the file $upload = ftp_put($conn_id, $destination, $source, FTP_ASCII); // check upload status if (!$upload) return FALSE; // close the FTP stream ftp_close($conn_id); return TRUE; } else { $destination = $calendar_path . "/" . basename($destination); if (check_php_version('4.0.3')) { return move_uploaded_file($source, $destination); } else { return copy($source, $destination); } } } // Find the full path to the caledar directory for use with ftp // if $ftp_calendar_path == '', sends back the full path to the $calendar_path - this may not work depending // on ftp server config, but would be a best guess // // return string path to calendar directory for ftp operations function get_ftp_calendar_path() { global $ftp_calendar_path; global $calendar_path; if ($ftp_calendar_path != '') return $ftp_calendar_path; else { return str_replace ("\\", "/", realpath($calendar_path)); } } // Check to see if the current version of php is >= to the arguement // // arg0: string version of php to check against // return boolean true if $version is >= current php version function check_php_version($version) { // intval used for version like "4.0.4pl1" $testVer=intval(str_replace(".", "",$version)); $curVer=intval(str_replace(".", "",phpversion())); if( $curVer < $testVer ) return FALSE; return TRUE; } // Is the file uploaded truly a file via HTTP POST - used to thwart a user from trying to trick the script from working on other files // // arg0: string filename // returns boolean is the uploaded a file function is_uploaded_file_v4 ($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } $tmp_file .= '/' . basename($filename); // For Windows compat $filename = str_replace ("\\", "/", $filename); $tmp_file = str_replace ("\\", "/", $tmp_file); // User might have trailing slash in php.ini... return (ereg_replace('/+', '/', $tmp_file) == $filename); } // return the appropriate error message if the file upload had an error // // arg0: array error number from $HTTP_POST_FILES[file]['error'] // returns string error message function get_upload_error ($upload_error) { global $php_error_lang; global $upload_error_lang; global $upload_error_gen_lang; if (isset($upload_error)) { // This is only available in PHP >= 4.2.0 $error = $php_error_lang . " "; switch($upload_error) { case 0: //no error; possible file attack! case 1: //uploaded file exceeds the upload_max_filesize directive in php.ini case 2: //uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form case 3: //uploaded file was only partially uploaded case 4: //no file was uploaded $error = $error . $upload_error . ": " . $upload_error_lang[$upload_error]; break; default: //a default error, just in case! :) $error = $error . $upload_error . ": " . $upload_error_gen_lang; break; } } else { $error = $upload_error_gen_lang; } return $error; } // Check to see that the file has an .ics extension // // arg0: string filename // returns booloean does the filename end in .ics function is_uploaded_ics ($filename) { // Check the file extension for .ics. Can also check the the mime type, but it's not reliable so why bother... if(preg_match("/.ics$/i", $filename)) { return TRUE; } else { return FALSE; } } // Get all calendar filenames (not including path) // // argo: string path to calendar files // returns array filenames (not including path) function get_calendar_files($calendar_path) { global $error_path_lang; $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path))); $filelist = array(); while ($file = readdir($dir_handle)) { if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($filelist, $file); } } closedir($dir_handle); natcasesort($filelist); return $filelist; } ?> --- NEW FILE: date_functions.php --- <?php // date_functions.php // functions for returning or comparing dates // not a date function, but I didn't know where to put it // for backwards compatibility if (phpversion() < '4.1') { function array_key_exists($key, $arr) { if (!is_array($arr)) return false; foreach (array_keys($arr) as $k) { if ("$k" == "$key") return true; } return false; } } // takes iCalendar 2 day format and makes it into 3 characters // if $txt is true, it returns the 3 letters, otherwise it returns the // integer of that day; 0=Sun, 1=Mon, etc. function two2threeCharDays($day, $txt=true) { switch($day) { case 'SU': return ($txt ? 'sun' : '0'); case 'MO': return ($txt ? 'mon' : '1'); case 'TU': return ($txt ? 'tue' : '2'); case 'WE': return ($txt ? 'wed' : '3'); case 'TH': return ($txt ? 'thu' : '4'); case 'FR': return ($txt ? 'fri' : '5'); case 'SA': return ($txt ? 'sat' : '6'); } } // dateOfWeek() takes a date in Ymd and a day of week in 3 letters or more // and returns the date of that day. (ie: "sun" or "sunday" would be acceptable values of $day but not "su") function dateOfWeek($Ymd, $day) { global $week_start_day; if (!isset($week_start_day)) $week_start_day = 'Sunday'; $timestamp = strtotime($Ymd); $num = date('w', strtotime($week_start_day)); $start_day_time = strtotime((date('w',$timestamp)==$num ? "$week_start_day" : "last $week_start_day"), $timestamp); $ret_unixtime = strtotime($day,$start_day_time); $ret_unixtime = strtotime('+12 hours', $ret_unixtime); $ret = date('Ymd',$ret_unixtime); return $ret; } // function to compare to dates in Ymd and return the number of weeks // that differ between them. requires dateOfWeek() function weekCompare($now, $then) { global $week_start_day; $sun_now = dateOfWeek($now, $week_start_day); $sun_then = dateOfWeek($then, $week_start_day); $seconds_now = strtotime($sun_now); $seconds_then = strtotime($sun_then); $diff_seconds = $seconds_now - $seconds_then; $diff_minutes = $diff_seconds/60; $diff_hours = $diff_minutes/60; $diff_days = round($diff_hours/24); $diff_weeks = $diff_days/7; return $diff_weeks; } // function to compare to dates in Ymd and return the number of days // that differ between them. function dayCompare($now, $then) { $seconds_now = strtotime($now); $seconds_then = strtotime($then); $diff_seconds = $seconds_now - $seconds_then; $diff_minutes = $diff_seconds/60; $diff_hours = $diff_minutes/60; $diff_days = round($diff_hours/24); return $diff_days; } // function to compare to dates in Ymd and return the number of months // that differ between them. function monthCompare($now, $then) { ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $now, $date_now); ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $then, $date_then); $diff_years = $date_now[1] - $date_then[1]; $diff_months = $date_now[2] - $date_then[2]; if ($date_now[2] < $date_then[2]) { $diff_years -= 1; $diff_months = ($diff_months + 12) % 12; } $diff_months = ($diff_years * 12) + $diff_months; return $diff_months; } function yearCompare($now, $then) { ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $now, $date_now); ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $then, $date_then); $diff_years = $date_now[1] - $date_then[1]; return $diff_years; } // localizeDate() - similar to strftime but uses our preset arrays of localized // months and week days and only supports %A, %a, %B, %b, %e, and %Y // more can be added as needed but trying to keep it small while we can function localizeDate($format, $timestamp) { global $daysofweek_lang, $daysofweekshort_lang, $daysofweekreallyshort_lang, $monthsofyear_lang, $monthsofyear_lang, $monthsofyearshort_lang; $year = date("Y", $timestamp); $month = date("n", $timestamp)-1; $day = date("j", $timestamp); $dayofweek = date("w", $timestamp); $date = str_replace('%Y', $year, $format); $date = str_replace('%e', $day, $date); $date = str_replace('%B', $monthsofyear_lang[$month], $date); $date = str_replace('%b', $monthsofyearshort_lang[$month], $date); $date = str_replace('%A', $daysofweek_lang[$dayofweek], $date); $date = str_replace('%a', $daysofweekshort_lang[$dayofweek], $date); return $date; } // calcOffset takes an offset (ie, -0500) and returns it in the number of seconds function calcOffset($offset_str) { $sign = substr($offset_str, 0, 1); $hours = substr($offset_str, 1, 2); $mins = substr($offset_str, 3, 2); $secs = ((int)$hours * 3600) + ((int)$mins * 60); if ($sign == '-') $secs = 0 - $secs; return $secs; } // calcTime calculates the unixtime of a new offset by comparing it to the current offset // $have is the current offset (ie, '-0500') // $want is the wanted offset (ie, '-0700') // $time is the unixtime relative to $have function calcTime($have, $want, $time) { if ($have == 'none' || $want == 'none') return $time; $have_secs = calcOffset($have); $want_secs = calcOffset($want); $diff = $want_secs - $have_secs; $time += $diff; return $time; } function chooseOffset($time) { global $timezone, $tz_array; if (!isset($timezone)) $timezone = ''; switch ($timezone) { case '': $offset = 'none'; break; case 'Same as Server': $offset = date('O', $time); break; default: if (is_array($tz_array) && array_key_exists($timezone, $tz_array)) { $dlst = date('I', $time); $offset = $tz_array[$timezone][$dlst]; } else { $offset = '+0000'; } } return $offset; } function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic, $class) { $event_text = stripslashes(urldecode($arr["event_text"])); # for iCal pseudo tag <http> comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$reg)) { $ev = $reg[1] . $reg[2]; $event_text = $reg[2]; } else { $ev = $arr["event_text"]; $event_text = strip_tags($event_text, '<b><i><u>'); } if (isset($arr["organizer"])) { $organizer = urlencode(addslashes($arr["organizer"])); } else { $organizer = ''; } if (isset($arr["attendee"])) { $attendee = urlencode(addslashes($arr["attendee"])); } else { $attendee = ''; } if (isset($arr["location"])) { $location = $arr["location"]; } else { $location = ''; } if (isset($arr["status"])) { $status = $arr["status"]; } else { $status = ''; } if ($event_text != "") { if ($lines) $event_text = word_wrap($event_text, $wrap, $lines); $dsc = urlencode(addslashes($arr["description"])); echo '<a class="'.$class.'" href="'; if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $ev, $res))) || ($dsc)) { echo "javascript:w=window.open('"; echo "includes/event.php?event="; echo urlencode(addslashes($ev)); echo "&cal="; echo urlencode(addslashes($cal)); echo "&start=$st&end=$end&description=$dsc&status=$status&location=$location&organizer=$organizer&attendee=$attendee"; echo "','Popup','"; echo "scrollbars=yes,width=460,height=275"; echo "');w.focus()"; } else { echo $res[1]; } echo '">'.$clic.$event_text.$fclic.'</a>'; } } ?> --- NEW FILE: draw_functions.php --- <?php // function returns starttime and endtime and event length for drawing into a grid function drawEventTimes ($start, $end) { global $gridLength; ereg ("([0-9]{2})([0-9]{2})", $start, $time); $sta_h = $time[1]; $sta_min = $time[2]; $sta_min = sprintf("%02d", floor($sta_min / $gridLength) * $gridLength); if ($sta_min == 60) { $sta_h = sprintf("%02d", ($sta_h + 1)); $sta_min = "00"; } ereg ("([0-9]{2})([0-9]{2})", $end, $time); $end_h = $time[1]; $end_min = $time[2]; $end_min = sprintf("%02d", floor($end_min / $gridLength) * $gridLength); if ($end_min == 60) { $end_h = sprintf("%02d", ($end_h + 1)); $end_min = "00"; } if (($sta_h . $sta_min) == ($end_h . $end_min)) { $end_min += $gridLength; if ($end_min == 60) { $end_h = sprintf("%02d", ($end_h + 1)); $end_min = "00"; } } $draw_len = ($end_h * 60 + $end_min) - ($sta_h * 60 + $sta_min); return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } // word wrap function that returns specified number of lines // when lines is 0, it returns the entire string as wordwrap() does it function word_wrap($str, $length, $lines=0) { if ($lines > 0) { $len = $length * $lines; if ($len < strlen($str)) { $str = substr($str,0,$len).'...'; } } return $str; } ?> --- NEW FILE: error.php --- <?php if (!defined('BASE')) define('BASE','../'); function error($error_msg='There was an error processing the request.', $file='NONE') { global $style_sheet, $powered_by_lang, $version_lang, $error_title_lang, $error_window_lang, $error_calendar_lang, $error_back_lang, $enable_rss, $this_site_is_lang; if (!isset($style_sheet)) $style_sheet = 'silver'; if (!isset($powered_by_lang)) $powered_by_lang = 'Powered by'; if (!isset($error_title_lang)) $error_title_lang = 'Error!'; if (!isset($error_window_lang)) $error_window_lang = 'There was an error!'; if (!isset($error_calendar_lang)) $error_calendar_lang = 'The calendar "%s" was being processed when this error occurred.'; if (!isset($error_back_lang)) $error_back_lang = 'Please use the "Back" button to return.'; if (!isset($enable_rss)) $enable_rss = 'no'; if (!isset($this_site_is_lang)) $this_site_is_lang = 'This site is'; $error_calendar = sprintf($error_calendar_lang, $file); $current_view = 'error'; $display_date = $error_title_lang; $calendar_name = $error_title_lang; include (BASE.'includes/header.inc.php'); ?> <center> <table border="0" width="700" cellspacing="0" cellpadding="0"> <tr> <td width="520" valign="top" align="center"> <table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td> <td align="center" valign="middle" width="98%" class="sideback"><b><?php echo $error_window_lang; ?></b></td> <td class="sideback" width="1%"></td> </tr> </table> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> <tr> <td align="center" valign="top"> <br> <?php echo $error_msg; ?> <br> <br> <?php echo $error_calendar; ?> <br> <br> <?php echo $error_back_lang; ?> <br> <br> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center> <?php include (BASE.'includes/footer.inc.php'); } ?> --- NEW FILE: ical_parser.php --- <?php if (!defined('BASE')) define('BASE', './'); include(BASE.'functions/init.inc.php'); include(BASE.'functions/date_functions.php'); include(BASE.'functions/draw_functions.php'); include(BASE.'functions/overlapping_events.php'); include(BASE.'functions/timezones.php'); $fillTime = $day_start; $day_array = array (); while ($fillTime < $day_end) { array_push ($day_array, $fillTime); ereg ('([0-9]{2})([0-9]{2})', $fillTime, $dTime); $fill_h = $dTime[1]; $fill_min = $dTime[2]; $fill_min = sprintf('%02d', $fill_min + $gridLength); if ($fill_min == 60) { $fill_h = sprintf('%02d', ($fill_h + 1)); [...996 lines suppressed...] } //If you want to see the values in the arrays, uncomment below. //print '<pre>'; //print_r($master_array); //print_r($overlap_array); //print_r($day_array); //print_r($rrule_array); //print_r($recurrence_delete); //print '</pre>'; // Set a calender name for all calenders combined if ($cal == $ALL_CALENDARS_COMBINED) { $calendar_name = $all_cal_comb_lang; } ?> --- NEW FILE: init.inc.php --- <?php // jared-2002.10.30, I want to make sure my published calendars are world-read/writeable // so I have this making sure they all are. This should be commented out/deleted // for shipping versions. This is a convenience so when I commit, changes are made and // I don't get errors. //chmod(BASE.'calendars/School.ics',0666); // uncomment when developing, comment for shipping version //error_reporting (E_ALL); $ALL_CALENDARS_COMBINED = 'all_calendars_combined971'; if (!defined('BASE')) define('BASE', './'); include(BASE.'config.inc.php'); include(BASE.'functions/error.php'); if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); if (isset($phpicalendar['cookie_language'])) $language = $phpicalendar['cookie_language']; if (isset($phpicalendar['cookie_calendar'])) $default_cal_check = $phpicalendar['cookie_calendar']; if (isset($phpicalendar['cookie_view'])) $default_view = $phpicalendar['cookie_view']; if (isset($phpicalendar['cookie_style'])) $style_sheet = $phpicalendar['cookie_style']; if (isset($phpicalendar['cookie_startday'])) $week_start_day = $phpicalendar['cookie_startday']; if (isset($phpicalendar['cookie_time'])) $day_start = $phpicalendar['cookie_time']; } // language support $language = strtolower($language); $lang_file = BASE.'/languages/'.$language.'.inc.php'; if (file_exists($lang_file)) { include($lang_file); } else { exit(error('The requested language "'.$language.'" is not a supported language. Please use the configuration file to choose a supported language.')); } if (!isset($getdate)) { if (isset($HTTP_GET_VARS['getdate']) && ($HTTP_GET_VARS['getdate'] !== '')) { $getdate = $HTTP_GET_VARS['getdate']; } else { $getdate = date('Ymd', strtotime("now + $second_offset seconds")); } } if (ini_get('max_execution_time') < 60) { ini_set('max_execution_time', '60'); } if ($calendar_path == '') { $calendar_path = 'calendars'; $calendar_path_orig = $calendar_path; $calendar_path = BASE.$calendar_path; } $is_webcal = FALSE; if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { $cal_filename = urldecode($HTTP_GET_VARS['cal']); } else { if (isset($default_cal_check)) { if ($default_cal_check != $ALL_CALENDARS_COMBINED) { $calcheck = $calendar_path.'/'.$default_cal_check.'.ics'; $calcheckopen = @fopen($calcheck, "r"); if ($calcheckopen == FALSE) { $cal_filename = $default_cal; } else { $cal_filename = $default_cal_check; } } else { $cal_filename = $ALL_CALENDARS_COMBINED; } } else { $cal_filename = $default_cal; } } if (substr($cal_filename, 0, 7) == 'http://' || substr($cal_filename, 0, 9) == 'webcal://') { $is_webcal = TRUE; $cal_webcalPrefix = str_replace('http://','webcal://',$cal_filename); $cal_httpPrefix = str_replace('webcal://','http://',$cal_filename); $cal_filename = $cal_httpPrefix; } if ($is_webcal) { if ($allow_webcals == 'yes' || in_array($cal_webcalPrefix, $list_webcals) || in_array($cal_httpPrefix, $list_webcals)) { $cal_displayname = substr(str_replace('32', ' ', basename($cal_filename)), 0, -4); $cal = urlencode($cal_filename); $filename = $cal_filename; $subscribe_path = $cal_webcalPrefix; // empty the filelist array $cal_filelist = array(); array_push($cal_filelist,$filename); } else { exit(error($error_remotecal_lang, $HTTP_GET_VARS['cal'])); } } else { $cal_displayname = str_replace('32', ' ', $cal_filename); $cal = urlencode($cal_filename); if (in_array($cal_filename, $blacklisted_cals)) { exit(error($error_restrictedcal_lang, $cal_filename)); } else { if (!isset($filename)) { // empty the filelist array $cal_filelist = array(); if ($cal == $ALL_CALENDARS_COMBINED) { // Create an array with the paths to all files to be combined // Note: code here is similar to code in list_icals.php // open directory $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); // build the array while (false != ($file = readdir($dir_handle))) { if (preg_match("/^[^.].+\.ics$/", $file) && !in_array(substr($file, 0, -4), $blacklisted_cals)) { $file = $calendar_path.'/'.$file; array_push($cal_filelist, $file); } } // add webcals foreach ($list_webcals as $file) { if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($cal_filelist, $file); } } natcasesort($cal_filelist); } else { // Handle a single file $filename = $calendar_path.'/'.$cal_filename.'.ics'; if (true == false) { $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); while ($file = readdir($dir_handle)) { if (substr($file, -4) == '.ics') { $cal = urlencode(substr($file, 0, -4)); $filename = $calendar_path.'/'.$file; break; } } } array_push($cal_filelist, $filename); } } // Sets the download and subscribe paths from the config if present. if ($download_uri == '') { $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename; $download_filename = $filename; } else { $newurl = eregi_replace("^(http://)", "", $download_uri); $subscribe_path = 'webcal://'.$newurl.'/'.$cal_filename.'.ics'; $download_filename = $download_uri.'/'.$cal_filename.'.ics'; } } } ?> --- NEW FILE: list_icals.php --- <?php if ($display_ical_list == "yes") { // start of <select> tag if (isset($getdate)) { $query="&getdate=$getdate"; } else { $query=""; } // open file $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); // empty the filelist array $filelist = array(); // build the <option> tags while (false != ($file = readdir($dir_handle))) { if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($filelist, $file); } } natcasesort($filelist); foreach ($filelist as $file) { // $cal_filename is the filename of the calendar without .ics // $cal is a urlencoded version of $cal_filename // $cal_displayname is $cal_filename with occurrences of "32" replaced with " " $cal_filename_tmp = substr($file,0,-4); $cal_tmp = urlencode($cal_filename_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); if (!in_array($cal_filename_tmp, $blacklisted_cals)) { if ($cal_tmp == $cal) { print "<option value=\"$current_view.php?cal=$cal_tmp&getdate=$getdate\" selected>$cal_displayname_tmp $calendar_lang</option>"; } else { print "<option value=\"$current_view.php?cal=$cal_tmp&getdate=$getdate\">$cal_displayname_tmp $calendar_lang</option>"; } } } // option to open all (non-web) calenders together if ($cal == $ALL_CALENDARS_COMBINED) { print "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\" selected>$all_cal_comb_lang</option>"; } else { print "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\">$all_cal_comb_lang</option>"; } foreach($list_webcals as $cal_tmp) { if ($cal_tmp != '') { $cal_displayname_tmp = basename($cal_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_displayname_tmp); $cal_displayname_tmp = substr($cal_displayname_tmp,0,-4); $cal_encoded_tmp = urlencode($cal_tmp); if ($cal_tmp == $cal_httpPrefix || $cal_tmp == $cal_webcalPrefix) { print "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\" selected>$cal_displayname_tmp Webcal</option>"; } else { print "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\">$cal_displayname_tmp Webcal</option>"; } } } // close file closedir($dir_handle); // finish <select> print "</select>"; } ?> --- NEW FILE: list_languages.php --- <?php print "<form>\n<select name=\"action\" class=\"query_style\">\n"; $dir_handle = @opendir(BASE.'languages/'); $tmp_pref_language = urlencode(ucfirst($language)); while ($file = readdir($dir_handle)) { if (substr($file, -8) == ".inc.php") { $language_tmp = urlencode(ucfirst(substr($file, 0, -8))); if ($language_tmp == $tmp_pref_language) { print "<option value=\"$current_view.php?chlang=$language_tmp\" selected>in $language_tmp</option>\n"; } else { print "<option value=\"$current_view.php?chlang=$language_tmp\">in $language_tmp</option>\n"; } } } closedir($dir_handle); print "</select>\n</form>\n"; ?> --- NEW FILE: list_months.php --- <?php print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n"; $month_time = strtotime("$this_year-01-01"); $getdate_month = date("m", strtotime($getdate)); // echo "$this_day, $this_year"; // build the <option> tags for ($i=0; $i<12; $i++) { $monthdate = date ("Ymd", $month_time); $month_month = date("m", $month_time); $select_month = localizeDate($dateFormat_month, $month_time); if ($month_month == $getdate_month) { print "<option value=\"month.php?cal=$cal&getdate=$monthdate\" selected>$select_month</option>\n"; } else { print "<option value=\"month.php?cal=$cal&getdate=$monthdate\">$select_month</option>\n"; } $month_time = strtotime ("+1 month", $month_time); } // finish <select> print "</select>"; ?> --- NEW FILE: list_weeks.php --- <?php ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); $this_day = $day_array2[3]; $this_month = $day_array2[2]; $this_year = $day_array2[1]; $check_week = strtotime($getdate); $start_week_time = strtotime(dateOfWeek(date("Ymd", strtotime("$this_year-01-01")), $week_start_day)); $end_week_time = $start_week_time + (6 * 25 * 60 * 60); print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n"; // build the <option> tags do { $weekdate = date ("Ymd", $start_week_time); $select_week1 = localizeDate($dateFormat_week_jump, $start_week_time); $select_week2 = localizeDate($dateFormat_week_jump, $end_week_time); if (($check_week >= $start_week_time) && ($check_week <= $end_week_time)) { print "<option value=\"week.php?cal=$cal&getdate=$weekdate\" selected>$select_week1 - $select_week2</option>\n"; } else { print "<option value=\"week.php?cal=$cal&getdate=$weekdate\">$select_week1 - $select_week2</option>\n"; } $start_week_time = strtotime ("+1 week", $start_week_time); $end_week_time = $start_week_time + (6 * 25 * 60 * 60); } while (date("Y", $start_week_time) <= $this_year); // finish <select> print "</select>"; ?> --- NEW FILE: list_years.php --- <?php $year_time = strtotime($getdate); print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n"; // Print the previous year options. for ($i=0; $i < $num_years; $i++) { $offset = $num_years - $i; $prev_time = strtotime("-$offset year", $year_time); $prev_date = date("Ymd", $prev_time); $prev_year = date("Y", $prev_time); print "<option value=\"year.php?cal=$cal&getdate=$prev_date\">$prev_year</option>\n"; } // Print the current year option. $getdate_date = date("Ymd", $year_time); $getdate_year = date("Y", $year_time); print "<option value=\"year.php?cal=$cal&getdate=$getdate_date\" selected>$getdate_year</option>\n"; // Print the next year options. for ($i=0; $i < $num_years; $i++) { $offset = $i + 1; $next_time = strtotime("+$offset year", $year_time); $next_date = date("Ymd", $next_time); $next_year = date("Y", $next_time); print "<option value=\"year.php?cal=$cal&getdate=$next_date\">$next_year</option>\n"; } // finish <select> print "</select>"; ?> --- NEW FILE: overlapping_events.php --- <?php // function to determine maximum necessary columns per day // actually an algorithm to get the smallest multiple for two numbers function kgv($a, $b) { $x = $a; $y = $b; while ($x != $y) { if ($x < $y) $x += $a; else $y += $b; } return $x; } // drei 20020921: function for checking and counting overlapping events // drei 20020212: added parameter uid to function call function checkOverlap($ol_start_date, $ol_start_time, $ol_end_time, $ol_uid) { global $master_array, $overlap_array; $drawTimes = drawEventTimes($ol_start_time, $ol_end_time); $newMasterTime = $drawTimes["draw_start"]; // if (isset($master_array[($ol_start_date)][($newMasterTime)])) $newMasterEventKey = sizeof($master_array[($ol_start_date)][($newMasterTime)]); // else $newMasterEventKey = 0; $maxOverlaps = 0; $newEventAdded = FALSE; if (isset($overlap_array[($ol_start_date)])) { foreach ($overlap_array[($ol_start_date)] as $loopBlockKey => $loopBlock) { // check for overlap with existing overlap block if (($loopBlock["blockStart"] < $drawTimes["draw_end"]) and ($loopBlock["blockEnd"] > $drawTimes["draw_start"])) { $newOverlapBlock = FALSE; // if necessary adjust start and end times of overlap block if ($loopBlock["blockStart"] > $drawTimes["draw_start"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["blockStart"] = $drawTimes["draw_start"]; if ($loopBlock["blockEnd"] < $drawTimes["draw_end"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["blockEnd"] = $drawTimes["draw_end"]; // add the new event to the array of events // $overlap_array[($ol_start_date)][($loopBlockKey)]["events"][] = array ("time" => $newMasterTime, "key" => $newMasterEventKey); $overlap_array[($ol_start_date)][($loopBlockKey)]["events"][] = array ("time" => $newMasterTime, "key" => $ol_uid); // check if the adjusted overlap block must be merged with an existing overlap block reset($overlap_array[($ol_start_date)]); do { $compBlockKey = key(current($overlap_array[($ol_start_date)])); // only compare with other blocks if ($compBlockKey != $loopBlockKey) { // check if blocks overlap if (($overlap_array[($ol_start_date)][($compBlockKey)]["blockStart"] < $overlap_array[($ol_start_date)][($loopBlockKey)]["blockEnd"]) and ($overlap_array[($ol_start_date)][($compBlockKey)]["blockEnd"] > $overlap_array[($ol_start_date)][($loopBlockKey)]["blockStart"])) { // define start and end of merged overlap block if ($loopBlock["blockStart"] > $overlap_array[($ol_start_date)][($compBlockKey)]["blockStart"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["blockStart"] = $overlap_array[($ol_start_date)][($compBlockKey)]["blockStart"]; if ($loopBlock["blockEnd"] < $overlap_array[($ol_start_date)][($compBlockKey)]["blockEnd"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["blockEnd"] = $overlap_array[($ol_start_date)][($compBlockKey)]["blockEnd"]; $overlap_array[($ol_start_date)][($loopBlockKey)]["events"] = array_merge($overlap_array[($ol_start_date)][($loopBlockKey)]["events"],$overlap_array[($ol_start_date)][($compBlockKey)]["events"]); $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"] = array_merge($overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"],$overlap_array[($ol_start_date)][($compBlockKey)]["overlapRanges"]); unset($overlap_array[($ol_start_date)][($compBlockKey)]); reset($overlap_array[($ol_start_date)]); } } } while (next($overlap_array[($ol_start_date)])); // insert new event to appropriate overlap range $newOverlapRange = TRUE; foreach ($overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"] as $keyOverlap => $overlapRange) { if (($overlapRange["start"] < $drawTimes["draw_end"]) and ($overlapRange["end"] > $drawTimes["draw_start"])) { $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["count"]++; if ($overlapRange["start"] < $drawTimes["draw_start"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["start"] = $drawTimes["draw_start"]; if ($overlapRange["end"] > $drawTimes["draw_end"]) $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["end"] = $drawTimes["draw_end"]; $newOverlapRange = FALSE; // break; } } if ($newOverlapRange) { foreach ($loopBlock["events"] as $blockEvents) { $eventDrawTimes = drawEventTimes($master_array[($ol_start_date)][($blockEvents["time"])][($blockEvents["key"])]["event_start"], $master_array[($ol_start_date)][($blockEvents["time"])][($blockEvents["key"])]["event_end"]); if ((isset($eventDrawTimes["draw_start"]) && isset($eventDrawTimes["draw_end"]) && isset($drawTimes["draw_end"]) && isset($drawTimes["draw_start"])) && ($eventDrawTimes["draw_start"] < $drawTimes["draw_end"]) and ($eventDrawTimes["draw_end"] > $drawTimes["draw_start"])) { // define start time of overlap range and overlap block if ($eventDrawTimes["draw_start"] < $drawTimes["draw_start"]) $overlap_start = $drawTimes["draw_start"]; else $overlap_start = $eventDrawTimes["draw_start"]; // define end time of overlap range and overlap block if ($eventDrawTimes["draw_end"] > $drawTimes["draw_end"]) $overlap_end = $drawTimes["draw_end"]; else $overlap_end = $eventDrawTimes["draw_end"]; $newOverlapRange2 = TRUE; foreach ($overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"] as $keyOverlap => $overlapRange) { if (($overlapRange["start"] < $overlap_end) and ($overlapRange["end"] > $overlap_start)) { $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["count"]++; if ($overlapRange["start"] < $overlap_start) $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["start"] = $overlap_start; if ($overlapRange["end"] > $overlap_end) $overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"][($keyOverlap)]["end"] = $overlap_end; $newOverlapRange2 = FALSE; // break; } } if ($newOverlapRange2) { array_push($overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"], array ("count" => 1,"start" => $overlap_start, "end" => $overlap_end)); } } } } // determine the maximum overlaps for the current overlap block foreach ($overlap_array[($ol_start_date)][($loopBlockKey)]["overlapRanges"] as $overlapRange) { if ($overlapRange["count"] > $maxOverlaps) $maxOverlaps = $overlapRange["count"]; } $overlap_array[($ol_start_date)][($loopBlockKey)]["maxOverlaps"] = $maxOverlaps; foreach ($overlap_array[($ol_start_date)][($loopBlockKey)]["events"] as $updMasterEvent) { //if (($updMasterEvent["time"] != $newMasterTime) or ($updMasterEvent["key"] != $newMasterEventKey)) { if (($updMasterEvent["time"] != $newMasterTime) or ($updMasterEvent["key"] != $ol_uid)) { $master_array[($ol_start_date)][($updMasterEvent["time"])][($updMasterEvent["key"])]["event_overlap"] = $maxOverlaps; } } $newEventAdded = TRUE; break; } } } if (!$newEventAdded) { if (isset($master_array[($ol_start_date)])) { foreach ($master_array[($ol_start_date)] as $keyTime => $eventTime) { foreach ($eventTime as $keyEvent => $event) { if ($keyTime != '-1') $entryDrawTimes = drawEventTimes($event["event_start"], $event["event_end"]); if ((isset($entryDrawTimes["draw_start"]) && isset($entryDrawTimes["draw_end"]) && isset($drawTimes["draw_end"]) && isset($drawTimes["draw_start"])) && ($entryDrawTimes["draw_start"] < $drawTimes["draw_end"]) and ($entryDrawTimes["draw_end"] > $drawTimes["draw_start"])) { // define start time of overlap range and overlap block if ($entryDrawTimes["draw_start"] < $drawTimes["draw_start"]) { $overlap_start = $drawTimes["draw_start"]; $overlapBlock_start = $entryDrawTimes["draw_start"]; } else { $overlap_start = $entryDrawTimes["draw_start"]; $overlapBlock_start = $drawTimes["draw_start"]; } // define end time of overlap range and overlap block if ($entryDrawTimes["draw_end"] > $drawTimes["draw_end"]) { $overlap_end = $drawTimes["draw_end"]; $overlapBlock_end = $entryDrawTimes["draw_end"]; } else { $overlap_end = $entryDrawTimes["draw_end"]; $overlapBlock_end = $drawTimes["draw_end"]; } if (!isset($newBlockKey)) { // $overlap_array[($ol_start_date)][] = array ("blockStart" => $overlapBlock_start, "blockEnd" => $overlapBlock_end, "maxOverlaps" => 1, "events" => array (array ("time" => $keyTime, "key" => $keyEvent), array ("time" => $newMasterTime, "key" => $newMasterEventKey)), "overlapRanges" => array (array ("count" => 1, "start" => $overlap_start, "end" => $overlap_end))); $overlap_array[($ol_start_date)][] = array ("blockStart" => $overlapBlock_start, "blockEnd" => $overlapBlock_end, "maxOverlaps" => 1, "events" => array (array ("time" => $keyTime, "key" => $keyEvent), array ("time" => $newMasterTime, "key" => $ol_uid)), "overlapRanges" => array (array ("count" => 1, "start" => $overlap_start, "end" => $overlap_end))); $maxOverlaps = 1; end($overlap_array[($ol_start_date)]); $newBlockKey = key($overlap_array[($ol_start_date)]); } else { if ($overlap_array[($ol_start_date)][($newBlockKey)]["blockStart"] > $overlapBlock_start) $overlap_array[($ol_start_date)][($newBlockKey)]["blockStart"] = $overlapBlock_start; if ($overlap_array[($ol_start_date)][($newBlockKey)]["blockEnd"] < $overlapBlock_end) $overlap_array[($ol_start_date)][($newBlockKey)]["blockEnd"] = $overlapBlock_end; $overlap_array[($ol_start_date)][($newBlockKey)]["events"][] = array ("time" => $keyTime, "key" => $keyEvent); $overlap_array[($ol_start_date)][($newBlockKey)]["overlapRanges"][] = array ("count" => 1, "start" => $overlap_start, "end" => $overlap_end); } // update master_array $master_array[($ol_start_date)][($keyTime)][($keyEvent)]["event_overlap"] = $maxOverlaps; } } } } } // for debugging the checkOverlap function //print 'Date: ' . $ol_start_date . ' / New Time: ' . $newMasterTime . ' / New Key: ' . $newMasterEventKey . '<br />'; //print '<pre>'; //print_r($overlap_array); //print '</pre>'; return $maxOverlaps; } // drei 20021126: function for checking and removing overlapping events //function removeOverlap($ol_start_date, $ol_start_time, $ol_key = 0) { function removeOverlap($ol_start_date, $ol_start_time, $ol_key) { global $master_array, $overlap_array; if (isset($overlap_array[$ol_start_date])) { if (sizeof($overlap_array[$ol_start_date]) > 0) { $ol_end_time = $master_array[$ol_start_date][$ol_start_time][$ol_key]["event_end"]; foreach ($overlap_array[$ol_start_date] as $keyBlock => $blockId) { // if (($blockId["blockStart"] <= $ol_start_time) or ($blockId["blockEnd"] >= $ol_start_time)) { if (($blockId["blockStart"] <= $ol_start_time) and ($blockId["blockEnd"] > $ol_start_time)) { foreach ($blockId["events"] as $keyEvent => $ol_event) { $master_array[$ol_start_date][$ol_event["time"]][$ol_event["key"]]["event_overlap"] -= 1; if (($ol_event["time"] == $ol_start_time) and ($ol_event["key"] == $ol_key)) { unset ($overlap_array[$ol_start_date][$keyBlock]["events"][$keyEvent]); } } if ($blockId["maxOverlaps"] == 1) { unset ($overlap_array[$ol_start_date][$keyBlock]); } else { $overlap_array[$ol_start_date][$keyBlock]["maxOverlaps"] -= 1; //$blockId["maxOverlaps"] -= 1; // SJBO: Shouldn't something be done with [overlapRanges] as well? } } } } } } ?> --- NEW FILE: timezones.php --- <?php $tz_array['Africa/Addis_Ababa'] = array('+0300', '+0300'); $tz_array['Africa/Algiers'] = array('+0100', '+0100'); $tz_array['Africa/Asmera'] = array('+0300', '+0300'); $tz_array['Africa/Bangui'] = array('+0100', '+0100'); $tz_array['Africa/Blantyre'] = array('+0200', '+0200'); $tz_array['Africa/Brazzaville'] = array('+0100', '+0100'); $tz_array['Africa/Bujumbura'] = array('+0200', '+0200'); $tz_array['Africa/Cairo'] = array('+0200', '+0300'); $tz_array['Africa/Ceuta'] = array('+0100', '+0200'); $tz_array['Africa/Dar_es_Salaam'] = array('+0300', '+0300'); $tz_array['Africa/Djibouti'] = array('+0300', '+0300'); $tz_array['Africa/Douala'] = array('+0100', '+0100'); $tz_array['Africa/Gaborone'] = array('+0200', '+0200'); $tz_array['Africa/Harare'] = array('+0200', '+0200'); $tz_array['Africa/Johannesburg'] = array('+0200', '+0200'); $tz_array['Africa/Kampala'] = array('+0300', '+0300'); $tz_array['Africa/Khartoum'] = array('+0300', '+0300'); $tz_array['Africa/Kigali'] = array('+0200', '+0200'); $tz_array['Africa/Kinshasa'] = array('+0100', '+0100'); $tz_array['Africa/Lagos'] = array('+0100', '+0100'); $tz_array['Africa/Libreville'] = array('+0100', '+0100'); $tz_array['Africa/Luanda'] = array('+0100', '+0100'); $tz_array['Africa/Lubumbashi'] = array('+0200', '+0200'); $tz_array['Africa/Lusaka'] = array('+0200', '+0200'); $tz_array['Africa/Malabo'] = array('+0100', '+0100'); $tz_array['Africa/Maputo'] = array('+0200', '+0200'); $tz_array['Africa/Maseru'] = array('+0200', '+0200'); $tz_array['Africa/Mbabane'] = array('+0200', '+0200'); $tz_array['Africa/Mogadishu'] = array('+0300', '+0300'); $tz_array['Africa/Nairobi'] = array('+0300', '+0300'); $tz_array['Africa/Ndjamena'] = array('+0100', '+0100'); $tz_array['Africa/Niamey'] = array('+0100', '+0100'); $tz_array['Africa/Porto-Novo'] = array('+0100', '+0100'); $tz_array['Africa/Tripoli'] = array('+0200', '+0200'); $tz_array['Africa/Tunis'] = array('+0100', '+0100'); $tz_array['Africa/Windhoek'] = array('+0200', '+0100'); $tz_array['America/Adak'] = array('-1000', '-0900'); $tz_array['America/Anchorage'] = array('-0900', '-0800'); $tz_array['America/Anguilla'] = array('-0400', '-0400'); $tz_array['America/Antigua'] = array('-0400', '-0400'); $tz_array['America/Araguaina'] = array('-0200', '-0300'); $tz_array['America/Aruba'] = array('-0400', '-0400'); $tz_array['America/Asuncion'] = array('-0300', '-0400'); $tz_array['America/Atka'] = array('-1000', '-0900'); $tz_array['America/Barbados'] = array('-0400', '-0400'); $tz_array['America/Belem'] = array('-0300', '-0300'); $tz_array['America/Belize'] = array('-0600', '-0600'); $tz_array['America/Boa_Vista'] = array('-0400', '-0400'); $tz_array['America/Bogota'] = array('-0500', '-0500'); $tz_array['America/Boise'] = array('-0700', '-0600'); $tz_array['America/Buenos_Aires'] = array('-0300', '-0300'); $tz_array['America/Cambridge_Bay'] = array('-0700', '-0600'); $tz_array['America/Cancun'] = array('-0600', '-0500'); $tz_array['America/Caracas'] = array('-0400', '-0400'); $tz_array['America/Catamarca'] = array('-0300', '-0300'); $tz_array['America/Cayenne'] = array('-0300', '-0300'); $tz_array['America/Cayman'] = array('-0500', '-0500'); $tz_array['America/Chicago'] = array('-0600', '-0500'); $tz_array['America/Chihuahua'] = array('-0700', '-0600'); $tz_array['America/Cordoba'] = array('-0300', '-0300'); $tz_array['America/Costa_Rica'] = array('-0600', '-0600'); $tz_array['America/Cuiaba'] = array('-0300', '-0400'); $tz_array['America/Curacao'] = array('-0400', '-0400'); $tz_array['America/Dawson'] = array('-0800', '-0700'); $tz_array['America/Dawson_Creek'] = array('-0700', '-0700'); $tz_array['America/Denver'] = array('-0700', '-0600'); $tz_array['America/Detroit'] = array('-0500', '-0400'); $tz_array['America/Dominica'] = array('-0400', '-0400'); $tz_array['America/Edmonton'] = array('-0700', '-0600'); $tz_array['America/Eirunepe'] = array('-0500', '-0500'); $tz_array['America/El_Salvador'] = array('-0600', '-0600'); $tz_array['America/Ensenada'] = array('-0800', '-0700'); $tz_array['America/Fort_Wayne'] = array('-0500', '-0500'); $tz_array['America/Fortaleza'] = array('-0300', '-0300'); $tz_array['America/Glace_Bay'] = array('-0400', '-0300'); $tz_array['America/Godthab'] = array('-0300', '-0200'); $tz_array['America/Goose_Bay'] = array('-0400', '-0300'); $tz_array['America/Grand_Turk'] = array('-0500', '-0400'); $tz_array['America/Grenada'] = array('-0400', '-0400'); $tz_array['America/Guadeloupe'] = array('-0400', '-0400'); $tz_array['America/Guatemala'] = array('-0600', '-0600'); $tz_array['America/Guayaquil'] = array('-0500', '-0500'); $tz_array['America/Guyana'] = array('-0400', '-0400'); $tz_array['America/Halifax'] = array('-0400', '-0300'); $tz_array['America/Havana'] = array('-0500', '-0400'); $tz_array['America/Hermosillo'] = array('-0700', '-0700'); $tz_array['America/Indiana/Indianapolis'] = array('-0500', '-0500'); $tz_array['America/Indiana/Knox'] = array('-0500', '-0500'); $tz_array['America/Indiana/Marengo'] = array('-0500', '-0500'); $tz_array['America/Indiana/Vevay'] = array('-0500', '-0500'); $tz_array['America/Indianapolis'] = array('-0500', '-0500'); $tz_array['America/Inuvik'] = array('-0700', '-0600'); $tz_array['America/Iqaluit'] = array('-0500', '-0400'); $tz_array['America/Jamaica'] = array('-0500', '-0500'); $tz_array['America/Jujuy'] = array('-0300', '-0300'); $tz_array['America/Juneau'] = array('-0900', '-0800'); $tz_array['America/Kentucky/Louisville'] = array('-0500', '-0400'); $tz_array['America/Kentucky/Monticello'] = array('-0500', '-0400'); $tz_array['America/Knox_IN'] = array('-0500', '-0500'); $tz_array['America/La_Paz'] = array('-0400', '-0400'); $tz_array['America/Lima'] = array('-0500', '-0500'); $tz_array['America/Los_Angeles'] = array('-0800', '-0700'); $tz_array['America/Louisville'] = array('-0500', '-0400'); $tz_array['America/Maceio'] = array('-0300', '-0300'); $tz_array['America/Managua'] = array('-0600', '-0600'); $tz_array['America/Manaus'] = array('-0400', '-0400'); $tz_array['America/Martinique'] = array('-0400', '-0400'); $tz_array['America/Mazatlan'] = array('-0700', '-0600'); $tz_array['America/Mendoza'] = array('-0300', '-0300'); $tz_array['America/Menominee'] = array('-0600', '-0500'); $tz_array['America/Merida'] = array('-0600', '-0500'); $tz_array['America/Mexico_City'] = array('-0600', '-0500'); $tz_array['America/Miquelon'] = array('-0300', '-0200'); $tz_array['America/Monterrey'] = array('-0600', '-0500'); $tz_array['America/Montevideo'] = array('-0300', '-0300'); $tz_array['America/Montreal'] = array('-0500', '-0400'); $tz_array['America/Montserrat'] = array('-0400', '-0400'); $tz_array['America/Nassau'] = array('-0500', '-0400'); $tz_array['America/New_York'] = array('-0500', '-0400'); $tz_array['America/Nipigon'] = array('-0500', '-0400'); $tz_array['America/Nome'] = array('-0900', '-0800'); $tz_array['America/Noronha'] = array('-0200', '-0200'); $tz_array['America/Panama'] = array('-0500', '-0500'); $tz_array['America/Pangnirtung'] = array('-0500', '-0400'); $tz_array['America/Paramaribo'] = array('-0300', '-0300'); $tz_array['America/Phoenix'] = array('-0700', '-0700'); $tz_array['America/Port-au-Prince'] = array('-0500', '-0500'); $tz_array['America/Port_of_Spain'] = array('-0400', '-0400'); $tz_array['America/Porto_Acre'] = array('-0500', '-0500'); $tz_array['America/Porto_Velho'] = array('-0400', '-0400'); $tz_array['America/Puerto_Rico'] = array('-0400', '-0400'); $tz_array['America/Rainy_River'] = array('-0600', '-0500'); $tz_array['America/Rankin_Inlet'] = array('-0600', '-0500'); $tz_array['America/Recife'] = array('-0300', '-0300'); $tz_array['America/Regina'] = array('-0600', '-0600'); $tz_array['America/Rio_Branco'] = array('-0500', '-0500'); $tz_array['America/Rosario'] = array('-0300', '-0300'); $tz_array['America/Santiago'] = array('-0300', '-0400'); $tz_array['America/Santo_Domingo'] = array('-0400', '-0400'); $tz_array['America/Sao_Paulo'] = array('-0200', '-0300'); $tz_array['America/Scoresbysund'] = array('-0100', '+0000'); $tz_array['America/Shiprock'] = array('-0700', '-0600'); $tz_array['America/St_Johns'] = array('-031800', '-021800'); $tz_array['America/St_Kitts'] = array('-0400', '-0400'); $tz_array['America/St_Lucia'] = array('-0400', '-0400'); $tz_array['America/St_Thomas'] = array('-0400', '-0400'); $tz_array['America/St_Vincent'] = array('-0400', '-0400'); $tz_array['America/Swift_Current'] = array('-0600', '-0600'); $tz_array['America/Tegucigalpa'] = array('-0600', '-0600'); $tz_array['America/Thule'] = array('-0400', '-0300'); $tz_array['America/Thunder_Bay'] = array('-0500', '-0400'); $tz_array['America/Tijuana'] = array('-0800', '-0700'); $tz_array['America/Tortola'] = array('-0400', '-0400'); $tz_array['America/Vancouver'] = array('-0800', '-0700'); $tz_array['America/Virgin'] = array('-0400', '-0400'); $tz_array['America/Whitehorse'] = array('-0800', '-0700'); $tz_array['America/Winnipeg'] = array('-0600', '-0500'); $tz_array['America/Yakutat'] = array('-0900', '-0800'); $tz_array['America/Yellowknife'] = array('-0700', '-0600'); $tz_array['Antarctica/Casey'] = array('+0800', '+0800'); $tz_array['Antarctica/Davis'] = array('+0700', '+0700'); $tz_array['Antarctica/DumontDUrville'] = array('+1000', '+1000'); $tz_array['Antarctica/Mawson'] = array('+0600', '+0600'); $tz_array['Antarctica/McMurdo'] = array('+1300', '+1200'); $tz_array['Antarctica/Palmer'] = array('-0300', '-0400'); $tz_array['Antarctica/South_Pole'] = array('+1300', '+1200'); $tz_array['Antarctica/Syowa'] = array('+0300', '+0300'); $tz_array['Antarctica/Vostok'] = array('+0600', '+0600'); $tz_array['Arctic/Longyearbyen'] = array('+0100', '+0200'); $tz_array['Asia/Aden'] = array('+0300', '+0300'); $tz_array['Asia/Almaty'] = array('+0600', '+0700'); $tz_array['Asia/Amman'] = array('+0200', '+0300'); $tz_array['Asia/Anadyr'] = array('+1200', '+1300'); $tz_array['Asia/Aqtau'] = array('+0400', '+0500'); $tz_array['Asia/Aqtobe'] = array('+0500', '+0600'); $tz_array['Asia/Ashgabat'] = array('+0500', '+0500'); $tz_array['Asia/Ashkhabad'] = array('+0500', '+0500'); $tz_array['Asia/Baghdad'] = array('+0300', '+0400'); $tz_array['Asia/Bahrain'] = array('+0300', '+0300'); $tz_array['Asia/Baku'] = array('+0400', '+0500'); $tz_array['Asia/Bangkok'] = array('+0700', '+0700'); $tz_array['Asia/Beirut'] = array('+0200', '+0300'); $tz_array['Asia/Bishkek'] = array('+0500', '+0600'); $tz_array['Asia/Brunei'] = array('+0800', '+0800'); $tz_array['Asia/Calcutta'] = array('+051800', '+051800'); $tz_array['Asia/Chungking'] = array('+0800', '+0800'); $tz_array['Asia/Colombo'] = array('+0600', '+0600'); $tz_array['Asia/Dacca'] = array('+0600', '+0600'); $tz_array['Asia/Damascus'] = array('+0200', '+0300'); $tz_array['Asia/Dhaka'] = array('+0600', '+0600'); $tz_array['Asia/Dili'] = array('+0900', '+0900'); $tz_array['Asia/Dubai'] = array('+0400', '+0400'); $tz_array['Asia/Dushanbe'] = array('+0500', '+0500'); $tz_array['Asia/Gaza'] = array('+0200', '+0300'); $tz_array['Asia/Harbin'] = array('+0800', '+0800'); $tz_array['Asia/Hong_Kong'] = array('+0800', '+0800'); $tz_array['Asia/Hovd'] = array('+0700', '+0700'); $tz_array['Asia/Irkutsk'] = array('+0800', '+0900'); $tz_array['Asia/Istanbul'] = array('+0200', '+0300'); $tz_array['Asia/Jakarta'] = array('+0700', '+0700'); $tz_array['Asia/Jayapura'] = array('+0900', '+0900'); $tz_array['Asia/Jerusalem'] = array('+0200', '+0300'); $tz_array['Asia/Kabul'] = array('+041800', '+041800'); $tz_array['Asia/Kamchatka'] = array('+1200', '+1300'); $tz_array['Asia/Karachi'] = array('+0500', '+0500'); $tz_array['Asia/Kashgar'] = array('+0800', '+0800'); $tz_array['Asia/Katmandu'] = array('+052700', '+052700'); $tz_array['Asia/Krasnoyarsk'] = array('+0700', '+0800'); $tz_array['Asia/Kuala_Lumpur'] = array('+0800', '+0800'); $tz_array['Asia/Kuching'] = array('+0800', '+0800'); $tz_array['Asia/Kuwait'] = array('+0300', '+0300'); $tz_array['Asia/Macao'] = array('+0800', '+0800'); $tz_array['Asia/Magadan'] = array('+1100', '+1200'); $tz_array['Asia/Manila'] = array('+0800', '+0800'); $tz_array['Asia/Muscat'] = array('+0400', '+0400'); $tz_array['Asia/Nicosia'] = array('+0200', '+0300'); $tz_array['Asia/Novosibirsk'] = array('+0600', '+0700'); $tz_array['Asia/Omsk'] = array('+0600', '+0700'); $tz_array['Asia/Phnom_Penh'] = array('+0700', '+0700'); $tz_array['Asia/Pyongyang'] = array('+0900', '+0900'); $tz_array['Asia/Qatar'] = array('+0300', '+0300'); $tz_array['Asia/Rangoon'] = array('+061800', '+061800'); $tz_array['Asia/Riyadh'] = array('+0300', '+0300'); $tz_array['Asia/Riyadh87'] = array('+03424', '+03424'); $tz_array['Asia/Riyadh88'] = array('+03424', '+03424'); $tz_array['Asia/Riyadh89'] = array('+03424', '+03424'); $tz_array['Asia/Saigon'] = array('+0700', '+0700'); $tz_array['Asia/Samarkand'] = array('+0500', '+0500'); $tz_array['Asia/Seoul'] = array('+0900', '+0900'); $tz_array['Asia/Shanghai'] = array('+0800', '+0800'); $tz_array['Asia/Singapore'] = array('+0800', '+0800'); $tz_array['Asia/Taipei'] = array('+0800', '+0800'); $tz_array['Asia/Tashkent'] = array('+0500', '+0500'); $tz_array['Asia/Tbilisi'] = array('+0400', '+0500'); $tz_array['Asia/Tehran'] = array('+031800', '+041800'); $tz_array['Asia/Tel_Aviv'] = array('+0200', '+0300'); $tz_array['Asia/Thimbu'] = array('+0600', '+0600'); $tz_array['Asia/Thimphu'] = array('+0600', '+0600'); $tz_array['Asia/Tokyo'] = array('+0900', '+0900'); $tz_array['Asia/Ujung_Pandang'] = array('+0800', '+0800'); $tz_array['Asia/Ulaanbaatar'] = array('+0800', '+0800'); $tz_array['Asia/Ulan_Bator'] = array('+0800', '+0800'); $tz_array['Asia/Urumqi'] = array('+0800', '+0800'); $tz_array['Asia/Vientiane'] = array('+0700', '+0700'); $tz_array['Asia/Vladivostok'] = array('+1000', '+1100'); $tz_array['Asia/Yakutsk'] = array('+0900', '+1000'); $tz_array['Asia/Yekaterinburg'] = array('+0500', '+0600'); $tz_array['Asia/Yerevan'] = array('+0400', '+0500'); $tz_array['Atlantic/Azores'] = array('-0100', '+0000'); $tz_array['Atlantic/Bermuda'] = array('-0400', '-0300'); $tz_array['Atlantic/Canary'] = array('+0000', '+0100'); $tz_array['Atlantic/Cape_Verde'] = array('-0100', '-0100'); $tz_array['Atlantic/Faeroe'] = array('+0000', '+0100'); $tz_array['Atlantic/Jan_Mayen'] = array('-0100', '-0100'); $tz_array['Atlantic/Madeira'] = array('+0000', '+0100'); $tz_array['Atlantic/South_Georgia'] = array('-0200', '-0200'); $tz_array['Atlantic/Stanley'] = array('-0300', '-0400'); $tz_array['Australia/ACT'] = array('+1100', '+1000'); $tz_array['Australia/Adelaide'] = array('+101800', '+091800'); $tz_array['Australia/Brisbane'] = array('+1000', '+1000'); $tz_array['Australia/Broken_Hill'] = array('+101800', '+091800'); $tz_array['Australia/Canberra'] = array('+1100', '+1000'); $tz_array['Australia/Darwin'] = array('+091800', '+091800'); $tz_array['Australia/Hobart'] = array('+1100', '+1000'); $tz_array['Australia/LHI'] = array('+1100', '+101800'); $tz_array['Australia/Lindeman'] = array('+1000', '+1000'); $tz_array['Australia/Lord_Howe'] = array('+1100', '+101800'); $tz_array['Australia/Melbourne'] = array('+1100', '+1000'); $tz_array['Australia/NSW'] = array('+1100', '+1000'); $tz_array['Australia/North'] = array('+091800', '+091800'); $tz_array['Australia/Perth'] = array('+0800', '+0800'); $tz_array['Australia/Queensland'] = array('+1000', '+1000'); $tz_array['Australia/South'] = array('+101800', '+091800'); $tz_array['Australia/Sydney'] = array('+1100', '+1000'); $tz_array['Australia/Tasmania'] = array('+1100', '+1000'); $tz_array['Australia/Victoria'] = array('+1100', '+1000'); $tz_array['Australia/West'] = array('+0800', '+0800'); $tz_array['Australia/Yancowinna'] = array('+101800', '+091800'); $tz_array['Brazil/Acre'] = array('-0500', '-0500'); $tz_array['Brazil/DeNoronha'] = array('-0200', '-0200'); $tz_array['Brazil/East'] = array('-0200', '-0300'); $tz_array['Brazil/West'] = array('-0400', '-0400'); $tz_array['CET'] = array('+0100', '+0200'); $tz_array['CST6CDT'] = array('-0600', '-0500'); $tz_array['Canada/Atlantic'] = array('-0400', '-0300'); $tz_array['Canada/Central'] = array('-0600', '-0500'); $tz_array['Canada/East-Saskatchewan'] = array('-0600', '-0600'); $tz_array['Canada/Eastern'] = array('-0500', '-0400'); $tz_arra... [truncated message content] |
From: <xt...@us...> - 2003-10-05 15:25:41
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv24328 Modified Files: setup.mssql setup.mysql Log Message: Add calendar links to members module. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mssql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mssql 5 Oct 2003 13:23:07 -0000 1.3 --- setup.mssql 5 Oct 2003 15:25:37 -0000 1.4 *************** *** 1,5 **** INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ! ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL); CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.celloneusa.com', 'CellularOne (Dobson)'); --- 1,5 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ! ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.celloneusa.com', 'CellularOne (Dobson)'); Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mysql,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** setup.mysql 5 Oct 2003 13:23:07 -0000 1.12 --- setup.mysql 5 Oct 2003 15:25:37 -0000 1.13 *************** *** 1,4 **** INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); --- 1,4 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; ! UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/phpicalendar/month.php">Team Calendar</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/members/phpicalendar/admin.php">Administrate Calendar</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); |
From: <xt...@us...> - 2003-10-05 15:22:02
|
Update of /cvsroot/openfirst/members/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv23745 Added Files: AUTHORS COPYING README TIMEZONES admin.php config.inc.php day.php index.php month.php preferences.php print.php search.php week.php year.php Log Message: Add PHP iCalendar functionality to members module. See http://phpicalendar.sourceforge.net for more information about PHP iCalendar --- NEW FILE: AUTHORS --- AUTHORS ------- This file is a list of all people who have contributed their time to the PHP iCalendar project. Each section is sorted alphabetically. Thanks to all who are listed here. PROJECT ADMINS -------------- Chad Little <ch...@ch...> Patrick Crowley <pa...@ic...> DEVELOPERS ---------- Patrick Berry <pb...@ma...> Bill Fenner <fe...@re...> David Reindl <dr...@an...> Jared Wangen <xe...@si...> CODE CONTRIBUTORS ----------------- Greg Westin <php...@gr...> Blaine Cook <la...@re...> Mike Traum <mt...@ya...> TRANSLATORS ----------- Braz. Port. Bennet Wilton <su...@be...> Danish Henrik Højmark <st...@wo...> Jakob Peterhänsel <ma...@cr...> Dutch Lieven Gekiere <Li...@ge...> English Chad Little <ch...@ch...> Finnish Kari Somby <kar...@ra...> French La Shampouineuse <in...@la...> German David Reindl <dr...@an...> Italian Luca Cacciagrano <cl...@cl...> Japanese Jared Wangen <ja...@si...> Norwegian Geir Kielland <gei...@ju...> Polish Stanislaw Cieslicki <st...@po...> Portuguese Rui Costa <rui...@ub...> Spanish Javier Navarro <jna...@xi...> Swedish Jonas Hjelm <jo...@hn...> --- NEW FILE: COPYING --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS --- NEW FILE: README --- ______________________________________ | PHP iCalendar | | http://phpicalendar.sourceforge.net/ | |______________________________________| Introduction: ------------- PHP iCalendar is a PHP-based iCal file viewer/parser to display iCals in a Web browser. Its based on v2.0 of the IETF spec. It displays iCal files in a nice logical, clean manner with day, week, month, and year navigation. It is available in 13 languages and includes support for printing, searching and RSS news feeds. If you need a Calendar applicaion, please check the 'Calendar Links' section of our website. Contact: -------- E-mail the developers and others on the list at: php...@li... Installation: ------------- - Put PHP iCalendar into your Sites folder (or another web directory) - Edit the file "config.inc.php" and see section below called "Configuration" - Put your iCal files into the directory you specify in config.inc.php (default is "calendars") - Make sure PHP is enabled (http://developer.apple.com/internet/macosx/php.html) - Turn on Web sharing (if not already on) - View calendars in your web browser If it is in your Sites folder, the URL would be: <http://localhost/~username/phpicalendar> Configuration: -------------- View config.inc.php. The comments behind each variable definition will tell you what each setting does. Change the values between the quotation marks to change the setting of that variable. If there are restrictions as to what that variable can be set to, the comment behind will specify them. If you have difficulty with your configuration, you can ask the developers and other PHP iCalendar users at the PHP iCalendar forums: http://phpicalendar.sourceforge.net/phpBB2 Supported Calendar Applications: -------------------------------- PHP iCalendar supports any calendar application that can generate valid IETF 2445 files (.ics). Some of the supported applications are: - Apple iCal - http://www.apple.com/ical/ - Mozilla Calendar - http://www.mozilla.org/projects/calendar/ - Ximian Evolution - http://www.ximian.com/products/evolution/ - KOrganizer - http://korganizer.kde.org/ - WinDates 5.0 - http://www.rockinsoftware.com/windates.htm Bugs: ----- If you find a bug, please let us know. The easiest way for you to do this is to visit our Bug Tracker on SourceForge. This guarantees that we both look at it and take time to figure out what is causing it. You can submit bugs at the following URL: http://phpicalendar.sourceforge.net/bugs Requests: --------- Got an idea? Great! Just like with Bugs, there is a Features Tracker over on SourceForge. Please use that to sumbit feature requests. That way, you can see what others have suggested so you don't duplicate requests, and it will give us a chance to keep the features that haven't been implemented in one central place that we can find later. The tracker can be found at the following URL: http://phpicalendar.sourceforge.net/requests Licensing: ---------- This product is distributed under the GPL. Please read through the file COPYING for more information about our license. Older Browser Support: ---------------------- Starting with 0.9.4, PHP iCalendar is moving away from supporting 4.x browsers. If you still need support for these browers, 0.9.3 is still available for download. To get the latest ical support, simply download the latest version of PHP iCalendar and replace the file called 'ical_parser.php' in the functions folder. Changes: -------- 0.9.4 -Vastly improved BYDAY, BYMONTHDAY, BYYEARDAY support. -Improved DURATION Support. -Smaller HTML footprint on all pages with same look and feel. -Combined Calendars automatically refresh when changes are made. -Vtodo popup works again. -Validation increased on multiple pages. -Fixed a bug not listing blacklisted calendars. -Moved HTML head into header.inc.php to better support embedding of calendar. -Moved HTML foot into footer.inc.php to better support embedding of calendar. -Specify the name of 'All Calendars Combined' in language files. 0.9.3 -Multiple calendar support (up to 8). -Fixed pesky <BR> tags in event popup. -Added Esperanto language. -Major bug fixes. -Last to support Netscape 4.x 0.9.2 -Fixed an extra .php on the preferences page. -Increased validations on many pages. -Added support for CLASS (public, private, and confidential). -Added support for LOCATION -Added support for ATTENDEE -Added support for ORGANIZER -Added support for STATUS -New javascript functions provide additional information. -Added the ability to correct the servers time display -Added admin.php for administration of calendars (uses cookies). See config.inc.php for configuration. -Add or Update a calendar via a web interface -Delete a calendar via a web interface 0.9.1 -Added unset preferences -Cookies now fall back to defaults if data is bad. -Fixed a bug with the latest version of Ximian. -Added the ability to hard-set cookie-uri and download-uri. -Added Catalan and Tranditional Chinese languages. -Back button on preferences page now works. -Allow_Preferences option now works. 0.9 -Added complete VTODO support. -Added STATUS support for VEVENT and VTODO. -Added RSS auto-detection on day, week, month, and year pages. -Added year view icon. -Added Finnish and Czech language support. -Added Preferences page (uses cookies). -Select defualt language -Select default calendar -Select default view -Select default theme -Select default start day -Select default start time -Print view can now be set for your default view. -Updated silver and red styles. -Calendars can now be stored outside of phpicalendar's installation. -Cleaned up folders for easier installation. -Minor interface enhancements. -Minor bug fixes 0.8.1 -Added header.inc.php for custom headers. -Added Brazilian language support. -Fixed a bug with some of the style sheets not displaying correctly. -Fixed a bug with RSS not properly validating. -Fixed a bug with Search returning errors on some characters. -Brought some languages up to 0.8 translations. -Added support for "last X in month" -Fixed many small bugs. 0.8 -Added search capability. -Added a Printer Friendly view for Day, Week, and Month. -Added support for single event changes in a recurring set. -Added RSS feeds for Day, Week, and Month. -Added Portugese language support. -Added 'clickable links' for web addresses. -Tweeked Red and Grey styles. -Fixed a bug causing Sunday to be listed twice. -Fixed a bug preventing < 4.1.0 php users to run app. -Fixed a bug displaying quotes in summary. -Fixed many other bugs (none open on SF!!) 0.7 -Added Year view. -New themes, Green, Orange, Grey, and Tan. -Parses calendars much faster. -Page titles added for bookmarking. -Fixed bug not letting notes to fully display. -Fixed bug in recurring all-day events. -Fixed a bug for showing &'s and #'s in the javascript. -Greatly improved Mozilla Calendar support. -Overlapping events now display better. -Added complete timezone support (See TIMEZONE file for details). -A new website for PHP iCalendar. -Many bug fixes. 0.6 -Added this README! -Greatly improved CSS for "themes", theme SDK available. -HTML bug fixes specific to Windows browsers -All-day and Regular recurring event both support all types -Bottom of month view updated -Day, Week, Month navigation brought back. -Localization update -Localized dates and times work with Mac OS X as well as other *nixes. -Almost all text has been translated for supported languages -Added Spanish and Swedish -Added ability to turn off the pop-up menu calendar list -Added "black-listing" of specific local calendars -Added remote calendar support -Subscribe to calendars hosted remotely and have them show up in your popup -Allow any URL of a calendar to be parsed by your server -Added custom error page for user-friendly error messages. -Added saving of parsed files to separate files for faster processing -Custom options for mini-calendars, this months, events -Bug fixes 0.5 -Improved recurring event support -All-day and Regular recurring events now obey ending dates and counts -Regular recurring events for monthly -New UI -Mini-calendars in all views -Jump-to pop-ups for Weeks and Months -Subscribe works properly -Color coding on month view -Week view colors the length of the time like day -Support for event notes/descriptions -More language support -Danish -Dutch -Italian -Japanese -Norwegian -Bug fixes 0.4 -Improved recurring event support -All-day recurring for all types -Regular recurring events for daily, weekly -Event pop-ups -More style sheets -Multiple language support -English -French -German -Polish -24-hour clock support -Bug fixes 0.3 -Calendar list popup -All-day yearly recurring support -Bug fixes 0.2 -All-day event support -Added month and week views -Bug fixes 0.1 -Initial Release --- NEW FILE: TIMEZONES --- TIMEZONES --------- If your timezone is not in this list, it is assumed that the GMT offset for both regular time and Daylight Savings Time is +0000. If this is not correct, please use a timezone from this list which will acurrately represent your GMT offsets. All these are case-sensitive. 'Same as Server' is also a choice and it also case-sensitive. This will use the server's timezone offset. No entry at all (an empty string) means to use the timezome of the event or calendar itself. This is default. This does not support setting the offset itself (ie '+0500') because the offset might change depending on if we're looking at events when Daylight Savings Time is on, or events when it's off. You must choose a timezone from this list or an empty string. *** None of these timezones represent both regular AND Daylight Savings Time as +0000 except for 'GMT' but ANY string other than whats in this list will return them both as +0000. List of Timezones ----------------- Same as Server Africa/Addis_Ababa Africa/Algiers Africa/Asmera Africa/Bangui Africa/Blantyre Africa/Brazzaville Africa/Bujumbura Africa/Cairo Africa/Ceuta Africa/Dar_es_Salaam Africa/Djibouti Africa/Douala Africa/Gaborone Africa/Harare Africa/Johannesburg Africa/Kampala Africa/Khartoum Africa/Kigali Africa/Kinshasa Africa/Lagos Africa/Libreville Africa/Luanda Africa/Lubumbashi Africa/Lusaka Africa/Malabo Africa/Maputo Africa/Maseru Africa/Mbabane Africa/Mogadishu Africa/Nairobi Africa/Ndjamena Africa/Niamey Africa/Porto-Novo Africa/Tripoli Africa/Tunis Africa/Windhoek America/Adak America/Anchorage America/Anguilla America/Antigua America/Araguaina America/Aruba America/Asuncion America/Atka America/Barbados America/Belem America/Belize America/Boa_Vista America/Bogota America/Boise America/Buenos_Aires America/Cambridge_Bay America/Cancun America/Caracas America/Catamarca America/Cayenne America/Cayman America/Chicago America/Chihuahua America/Cordoba America/Costa_Rica America/Cuiaba America/Curacao America/Dawson America/Dawson_Creek America/Denver America/Detroit America/Dominica America/Edmonton America/Eirunepe America/El_Salvador America/Ensenada America/Fort_Wayne America/Fortaleza America/Glace_Bay America/Godthab America/Goose_Bay America/Grand_Turk America/Grenada America/Guadeloupe America/Guatemala America/Guayaquil America/Guyana America/Halifax America/Havana America/Hermosillo America/Indiana/Indianapolis America/Indiana/Knox America/Indiana/Marengo America/Indiana/Vevay America/Indianapolis America/Inuvik America/Iqaluit America/Jamaica America/Jujuy America/Juneau America/Kentucky/Louisville America/Kentucky/Monticello America/Knox_IN America/La_Paz America/Lima America/Los_Angeles America/Louisville America/Maceio America/Managua America/Manaus America/Martinique America/Mazatlan America/Mendoza America/Menominee America/Merida America/Mexico_City America/Miquelon America/Monterrey America/Montevideo America/Montreal America/Montserrat America/Nassau America/New_York America/Nipigon America/Nome America/Noronha America/Panama America/Pangnirtung America/Paramaribo America/Phoenix America/Port-au-Prince America/Port_of_Spain America/Porto_Acre America/Porto_Velho America/Puerto_Rico America/Rainy_River America/Rankin_Inlet America/Recife America/Regina America/Rio_Branco America/Rosario America/Santiago America/Santo_Domingo America/Sao_Paulo America/Scoresbysund America/Shiprock America/St_Johns America/St_Kitts America/St_Lucia America/St_Thomas America/St_Vincent America/Swift_Current America/Tegucigalpa America/Thule America/Thunder_Bay America/Tijuana America/Tortola America/Vancouver America/Virgin America/Whitehorse America/Winnipeg America/Yakutat America/Yellowknife Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/McMurdo Antarctica/Palmer Antarctica/South_Pole Antarctica/Syowa Antarctica/Vostok Arctic/Longyearbyen Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau Asia/Aqtobe Asia/Ashgabat Asia/Ashkhabad Asia/Baghdad Asia/Bahrain Asia/Baku Asia/Bangkok Asia/Beirut Asia/Bishkek Asia/Brunei Asia/Calcutta Asia/Chungking Asia/Colombo Asia/Dacca Asia/Damascus Asia/Dhaka Asia/Dili Asia/Dubai Asia/Dushanbe Asia/Gaza Asia/Harbin Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Istanbul Asia/Jakarta Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka Asia/Karachi Asia/Kashgar Asia/Katmandu Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait Asia/Macao Asia/Magadan Asia/Manila Asia/Muscat Asia/Nicosia Asia/Novosibirsk Asia/Omsk Asia/Phnom_Penh Asia/Pyongyang Asia/Qatar Asia/Rangoon Asia/Riyadh Asia/Riyadh87 Asia/Riyadh88 Asia/Riyadh89 Asia/Saigon Asia/Samarkand Asia/Seoul Asia/Shanghai Asia/Singapore Asia/Taipei Asia/Tashkent Asia/Tbilisi Asia/Tehran Asia/Tel_Aviv Asia/Thimbu Asia/Thimphu Asia/Tokyo Asia/Ujung_Pandang Asia/Ulaanbaatar Asia/Ulan_Bator Asia/Urumqi Asia/Vientiane Asia/Vladivostok Asia/Yakutsk Asia/Yekaterinburg Asia/Yerevan Atlantic/Azores Atlantic/Bermuda Atlantic/Canary Atlantic/Cape_Verde Atlantic/Faeroe Atlantic/Jan_Mayen Atlantic/Madeira Atlantic/South_Georgia Atlantic/Stanley Australia/ACT Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Canberra Australia/Darwin Australia/Hobart Australia/LHI Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/NSW Australia/North Australia/Perth Australia/Queensland Australia/South Australia/Sydney Australia/Tasmania Australia/Victoria Australia/West Australia/Yancowinna Brazil/Acre Brazil/DeNoronha Brazil/East Brazil/West CET CST6CDT Canada/Atlantic Canada/Central Canada/East-Saskatchewan Canada/Eastern Canada/Mountain Canada/Newfoundland Canada/Pacific Canada/Saskatchewan Canada/Yukon Chile/Continental Chile/EasterIsland Cuba EET EST EST5EDT Egypt Eire Etc/GMT+1 Etc/GMT+10 Etc/GMT+11 Etc/GMT+12 Etc/GMT+2 Etc/GMT+3 Etc/GMT+4 Etc/GMT+5 Etc/GMT+6 Etc/GMT+7 Etc/GMT+8 Etc/GMT+9 Etc/GMT-1 Etc/GMT-10 Etc/GMT-11 Etc/GMT-12 Etc/GMT-13 Etc/GMT-14 Etc/GMT-2 Etc/GMT-3 Etc/GMT-4 Etc/GMT-5 Etc/GMT-6 Etc/GMT-7 Etc/GMT-8 Etc/GMT-9 Europe/Amsterdam Europe/Andorra Europe/Athens Europe/Belfast Europe/Belgrade Europe/Berlin Europe/Bratislava Europe/Brussels Europe/Bucharest Europe/Budapest Europe/Chisinau Europe/Copenhagen Europe/Dublin Europe/Gibraltar Europe/Helsinki Europe/Istanbul Europe/Kaliningrad Europe/Kiev Europe/Lisbon Europe/Ljubljana Europe/London Europe/Luxembourg Europe/Madrid Europe/Malta Europe/Minsk Europe/Monaco Europe/Moscow Europe/Nicosia Europe/Oslo Europe/Paris Europe/Prague Europe/Riga Europe/Rome Europe/Samara Europe/San_Marino Europe/Sarajevo Europe/Simferopol Europe/Skopje Europe/Sofia Europe/Stockholm Europe/Tallinn Europe/Tirane Europe/Tiraspol Europe/Uzhgorod Europe/Vaduz Europe/Vatican Europe/Vienna Europe/Vilnius Europe/Warsaw Europe/Zagreb Europe/Zaporozhye Europe/Zurich GB GB-Eire GMT HST Hongkong Indian/Antananarivo Indian/Chagos Indian/Christmas Indian/Cocos Indian/Comoro Indian/Kerguelen Indian/Mahe Indian/Maldives Indian/Mauritius Indian/Mayotte Indian/Reunion Iran Israel Jamaica Japan Kwajalein Libya MET MST MST7MDT Mexico/BajaNorte Mexico/BajaSur Mexico/General Mideast/Riyadh87 Mideast/Riyadh88 Mideast/Riyadh89 NZ NZ-CHAT Navajo PRC PST8PDT Pacific/Apia Pacific/Auckland Pacific/Chatham Pacific/Easter Pacific/Efate Pacific/Enderbury Pacific/Fakaofo Pacific/Fiji Pacific/Funafuti Pacific/Galapagos Pacific/Gambier Pacific/Guadalcanal Pacific/Guam Pacific/Honolulu Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Kwajalein Pacific/Majuro Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk Pacific/Noumea Pacific/Pago_Pago Pacific/Palau Pacific/Pitcairn Pacific/Ponape Pacific/Port_Moresby Pacific/Rarotonga Pacific/Saipan Pacific/Samoa Pacific/Tahiti Pacific/Tarawa Pacific/Tongatapu Pacific/Truk Pacific/Wake Pacific/Wallis Pacific/Yap Poland Portugal ROC ROK Singapore SystemV/AST4 SystemV/AST4ADT SystemV/CST6 SystemV/CST6CDT SystemV/EST5 SystemV/EST5EDT SystemV/HST10 SystemV/MST7 SystemV/MST7MDT SystemV/PST8 SystemV/PST8PDT SystemV/YST9 SystemV/YST9YDT Turkey US/Alaska US/Aleutian US/Arizona US/Central US/East-Indiana US/Eastern US/Hawaii US/Indiana-Starke US/Michigan US/Mountain US/Pacific US/Samoa W-SU WET --- NEW FILE: admin.php --- <?php session_start(); define('BASE', './'); include (BASE.'functions/init.inc.php'); include (BASE.'functions/admin_functions.php'); // Redirect if administration is not allowed // Modified to enforce proper openFIRST administrative privilidges. if ($allow_admin != "yes" || isset($user->membertype) == false || $user->membertype != "administrator") { header("Location: index.php"); die(); } // Load variables from forms and query strings into local scope if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");} if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");} if (!isset($action)) $action = ''; // Logout by clearing session variables if ((isset($action)) && ($action == "logout")) { $HTTP_SESSION_VARS['phpical_loggedin'] = FALSE; unset($HTTP_SESSION_VARS['phpical_username']); unset($HTTP_SESSION_VARS['phpical_password']); } // if $auth_method == 'none', don't do any authentication if ($auth_method == "none") { $is_loged_in = TRUE; } // Check if The User is Identified else { $is_loged_in = FALSE; if (is_loggedin()) { $is_loged_in = TRUE; } if (isset($username) && $action != "logout") { $is_loged_in = login ($username, $password); } } include (BASE.'includes/header.inc.php'); ?> <center> <table width="640" border="0" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" width="120" class="navback"><?php echo '<a href="'.BASE.'"><img src="'.BASE.'styles/'.$style_sheet.'/back.gif" alt=" " border="0" align="left"></a>'; ?></td> <td class="navback"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="navback" nowrap valign="middle"><font class="H20"><?php echo "$admin_header_lang"; ?></font></td> </tr> </table> </td> <td align="right" width="120" class="navback"> <table width="120" border="0" cellpadding="0" cellspacing="0"> <tr> <td><?php echo '<a class="psf" href="'.BASE.'day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/day_on.gif" alt=" " border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="'.BASE.'week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/week_on.gif" alt=" " border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="'.BASE.'month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/month_on.gif" alt=" " border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="'.BASE.'year.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/year_on.gif" alt=" " border="0"></a></td>'; ?> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" "></td> </tr> <tr> <td class="G10" align="right"><?php if ($auth_method != "none" && $is_loged_in == TRUE) { echo "<a href=\"{$HTTP_SERVER_VARS['PHP_SELF']}?action=logout\">{$logout_lang}</a>"; } ?> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> <tr> <td width="2%"></td> <td width="98%" valign="top" align="left"> <?php // If User is Not Logged In, Display The Login Page if ($is_loged_in == FALSE) { if (isset($username)) { $login_error = "<font color=\"red\">$invalid_login_lang</font>"; } else { $login_error = ''; } echo <<<EOT <form action="{$HTTP_SERVER_VARS['PHP_SELF']}" method="post"> <table cellspacing="0" cellpadding="0"> <tr> <td nowrap>{$username_lang}: </td> <td align="left"><input type="text" name="username"></td> </tr> <tr> <td>{$password_lang}: </td> <td align="left"><input type="password" name="password"></td> </tr> <tr> <td> </td> <td align="left"><input type="submit" value="{$login_lang}"></td> </tr> <tr> <td align="center" colspan="3">{$login_error} </td> </tr> </table> </form> EOT; echo " </td> </tr> </table> </td> </tr> </table>"; include (BASE.'includes/footer.inc.php'); echo " </center> </body> </html>"; die(); } // The user is logged in if we get here // Add or Update a calendar $addupdate_msg = ''; $delete_msg = ''; if ((isset($action)) && ($action == "addupdate")) { $addupdate_msg = ""; for($filenumber=1; $filenumber<6; $filenumber++) { $file = $HTTP_POST_FILES['calfile']; $addupdate_success = FALSE; if (!is_uploaded_file_v4($file['tmp_name'][$filenumber])) { $upload_error = get_upload_error($file['error'][$filenumber]); } elseif (!is_uploaded_ics($file['name'][$filenumber])) { $upload_error = $upload_error_type_lang; } elseif (!copy_cal($file['tmp_name'][$filenumber], $file['name'][$filenumber])) { $upload_error = $copy_error_lang . " " . $file['tmp_name'][$filenumber] . " - " . $calendar_path . "/" . $file['name'][$filenumber]; } else { $addupdate_success = TRUE; } if ($addupdate_success) $addupdate_msg = $addupdate_msg . "<font color=\"green\">{$cal_file_lang} {$filenumber}: {$action_success_lang}</font><br>"; else $addupdate_msg = $addupdate_msg . "<font color=\"red\">{$cal_file_lang} {$filenumber}: {$upload_error}</font><br>"; } } // Delete a calendar // Not at all secure - need to strip out path info if used by users besides admin in the future if ($action == "delete") { $delete_msg = ""; foreach ($delete_calendar as $filename) { if (!delete_cal(urldecode($filename))) { $delete_msg = $delete_msg . "<font color=\"red\">" . $delete_error_lang . " " . urldecode(substr($filename,0,-4)) . "</font><br>"; } else { $delete_msg = $delete_msg . "<font color=\"green\">" . urldecode(substr($filename,0,-4)) . " " . $delete_success_lang . "</font><br>"; } } } ?> <h2><?php echo $addupdate_cal_lang; ?></h2> <p><?php echo $addupdate_desc_lang; ?></p> <form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value="addupdate"> <table border="0" cellspacing="0"> <tr> <td nowrap><?php echo $cal_file_lang; ?> 1: </td> <td><input type="file" name="calfile[1]"></td> </tr> <tr> <td nowrap><?php echo $cal_file_lang; ?> 2: </td> <td><input type="file" name="calfile[2]"></td> </tr> <tr> <td nowrap><?php echo $cal_file_lang; ?> 3: </td> <td><input type="file" name="calfile[3]"></td> </tr> <tr> <td nowrap><?php echo $cal_file_lang; ?> 4: </td> <td><input type="file" name="calfile[4]"></td> </tr> <tr> <td nowrap><?php echo $cal_file_lang; ?> 5: </td> <td><input type="file" name="calfile[5]"></td> </tr> <tr> <td> </td> <td><input type="submit" value="<?php echo $submit_lang; ?>"></td> </tr> <tr> <td align="center" colspan="2"><?php echo $addupdate_msg; ?> </td> </tr> </table> </form> <h2><?php echo $delete_cal_lang; ?></h2> <form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post"> <input type="hidden" name="action" value="delete"> <table border="0" cellspacing="0"> <?php // Print Calendar Checkboxes // $COLUMNS_TO_PRINT = 3; $column = 1; $filelist = get_calendar_files($calendar_path); foreach ($filelist as $file) { if ($column > $COLUMNS_TO_PRINT) { echo "</tr>"; $column = 1; } if ($column == 1) { echo "<tr>"; } $cal_filename_tmp = substr($file,0,-4); $cal_tmp = urlencode($file); $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); echo "<td align=\"left\"><input name=\"delete_calendar[]\" value=\"$cal_tmp\" type=\"checkbox\">$cal_displayname_tmp</td>\n"; $column++; } // Print remaining empty columns if necessary $number_of_columns = count($filelist); while (gettype($number_of_columns/$COLUMNS_TO_PRINT) != "integer") { echo "<td> </td>"; $number_of_columns++; } ?> </tr> </table> <p><input type="submit" value="<?php echo $delete_lang; ?>"></p> <p><?php echo $delete_msg; ?> </p> </form> </td> </tr> </table> </td> </tr> </table> </center> <?php include (BASE.'includes/footer.inc.php'); ?> --- NEW FILE: config.inc.php --- <?php /* * PHP iCalendar was taken from the PHP iCalendar project on Source Forge. * It has been adapted through the modification of this configuration file * and the accompanying sources to work with the openFIRST system. * * For more information about PHP iCalendar see: http://phpicalendar.sf.net * * This file has been heavily modified. * The other modified files are: * includes/* * admin.php * * Some patches in the PHP iCalendar CVS system have been applied as they were * causing bugs on some systems. * * Removed default calendar files in calendars/ * * You will have to set the calendars/ directory to be writable for best * results. */ // Add our own global files if(file_exists("../../config/globals.php")) { include("../../config/globals.php"); } else { include("../../../config/globals.php"); } // This fixes a bug which is present in version 0.9.4 of PHP iCalendar $cal_filelist = glob('calendars/*'); // Configuration file for PHP iCalendar 0.9.4 // // To set values, change the text between the single quotes // Follow instructions to the right for detailed information $style_sheet = 'silver'; // Themes support - silver, red, green, orange, grey, tan $default_view = 'month'; // Default view for calendars = 'day', 'week', 'month', 'year' $minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' $default_cal = $ALL_CALENDARS_COMBINED; // Exact filename of calendar without .ics. Or set to $ALL_CALENDARS_COMBINED to open all calenders combined into one. $language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish', 'Swedish', 'Portuguese', 'Catalan', 'Traditional_Chinese', 'Esperanto' $week_start_day = 'Sunday'; // Day of the week your week starts on $day_start = '0800'; // Start time for day grid $day_end = '2000'; // End time for day grid $gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred $num_years = '3'; // Number of years to display in 'Jump to' $month_event_lines = '1'; // Number of lines to wrap each event title in month view, 0 means display all lines. $tomorrows_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. $allday_week_lines = '1'; // Number of lines to wrap each event title in all-day events in week view, 0 means display all lines. $week_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. $timezone = ''; // Set timezone. Read TIMEZONES file for more information $default_path = '$basepath/members/phpicalendar'; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar $tmp_dir = '/tmp'; // The temporary directory on your system (/tmp is fine for UNIXes including Mac OS X) $calendar_path = 'calendars/'; // Leave this blank on most installs, place your full path to calendars if they are outside the phpicalendar folder. $second_offset = '0'; // The time in seconds between your time and your server's time. // Advanced settings for custom installs, cookies, etc. // In most cases these will not need to be set. $cookie_uri = ''; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar $download_uri = ''; // The HTTP URL to your calendars directory, ie. http://www.example.com/phpicalendar/calendars // Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase. $save_parsed_cals = 'yes'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence. $use_sessions = 'no'; // This has not yet been implemented. $display_custom_goto = 'no'; // In the 'Jump To' box, display the custom 'go to day' box. $display_ical_list = 'yes'; // In the 'Jump To' box, display the pop-up menu with the list of all calendars in the $calendar_path directory. $allow_webcals = 'no'; // Allow http:// and webcal:// prefixed URLs to be used as the $cal for remote viewing of "subscribe-able" calendars. This does not have to be enabled to allow specific ones below. $this_months_events = 'yes'; // Display "This month's events" at the bottom off the month page. $use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color. $daysofweek_dayview = 'no'; // Display the days of the week in day.php view. $enable_rss = 'no'; // Enable RSS access to your calendars (good thing). $show_search = 'no'; // Show the search box in the sidebar. $allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies. $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). $show_todos = 'yes'; // Show your todo list on the side of day and week view. $show_completed = 'yes'; // Show completed todos on your todo list. // Administration settings $allow_admin = 'yes'; // Set to yes to allow the admin page - remember to change the default password if using 'internal' as the $auth_method $auth_method = 'none'; // Valid values are: 'ftp', 'internal', or 'none'. 'ftp' uses the ftp server's username and password as well as ftp commands to delete and copy files. 'internal' uses $auth_internal_username and $auth_internal_password defined below - CHANGE the password. 'none' uses NO authentication - meant to be used with another form of authentication such as http basic. //$auth_internal_username = 'admin'; // Only used if $auth_method='internal'. The username for the administrator. //$auth_internal_password = 'default'; // Only used if $auth_method='internal'. The password for the administrator. //$ftp_server = 'localhost'; // Only used if $auth_method='ftp'. The ftp server name. 'localhost' will work for most servers. //$ftp_calendar_path = ''; // Only used if $auth_method='ftp'. The full path to the calendar directory on the ftp server. If = '', will attempt to deduce the path based on $calendar_path, but may not be accurate depending on ftp server config. $blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars $blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar $blacklisted_cals[] = ''; // list. This should be the exact calendar filename without .ics $blacklisted_cals[] = ''; // the parser will *not* parse any cal that is in this list (it will not be Web accessible) // add more lines as necessary $list_webcals[] = ''; // Fill in between the quotes exact URL of a calendar that you wish $list_webcals[] = ''; // to show up in your calendar list. You must prefix the URL with http:// $list_webcals[] = ''; // or webcal:// and the filename should contain the .ics suffix $list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work // add more lines as necessary $color_cals[] = 'silver'; // Fill in between the quotes the colors you want to display $color_cals[] = 'red'; // multiple calendars in. $color_cals[] = 'orange'; // The first color will be used if no color is selected. $color_cals[] = 'grey'; // $color_cals[] = 'green'; // $color_cals[] = 'tan'; // // add more lines as necessary ?> --- NEW FILE: day.php --- <?php if (isset($HTTP_GET_VARS['jumpto_day'])) { $jumpto_day_time = strtotime($HTTP_GET_VARS['jumpto_day']); if ($jumpto_day_time == -1) { $getdate = date('Ymd', strtotime("now + $second_offset seconds")); } else { $getdate = date('Ymd', $jumpto_day_time); } } define('BASE', './'); $current_view = 'day'; include(BASE.'functions/ical_parser.php'); if ($minical_view == 'current') $minical_view = 'day'; $starttime = '0500'; $weekstart = 1; $unix_time = strtotime($getdate); $today_today = date('Ymd', strtotime("now + $second_offset seconds")); $tomorrows_date = date( 'Ymd', strtotime('+1 day', $unix_time)); $yesterdays_date = date( 'Ymd', strtotime('-1 day', $unix_time)); $display_date = localizeDate($dateFormat_day, $unix_time); // For the side months ereg ('([0-9]{4})([0-9]{2})([0-9]{2})', $getdate, $day_array2); $this_day = $day_array2[3]; $this_month = $day_array2[2]; $this_year = $day_array2[1]; $parse_month = date ('Ym', $unix_time); $thisday2 = localizeDate($dateFormat_week_list, $unix_time); $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); $dayborder = 0; $nbrGridCols = 1; if (isset($master_array[($getdate)])) { foreach($master_array[($getdate)] as $ovlKey => $ovlValue) { if ($ovlKey != '-1') { foreach($ovlValue as $ovl2Value) { $nbrGridCols = kgv($nbrGridCols, ($ovl2Value['event_overlap'] + 1)); } } } } include (BASE.'includes/header.inc.php'); ?> <center> <table border="0" width="700" cellspacing="0" cellpadding="0"> <tr> <td width="520" valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" width="120" class="navback"> </td> <td class="navback"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$yesterdays_date.'"><img src="styles/'.$style_sheet.'/left_day.gif" alt="['.$last_day_lang.']" border="0" align="right"></a>'; ?></td> <td align="center" width="20%" class="navback" nowrap valign="middle"><font class="H20"><?php echo $display_date; ?></font></td> <td align="left" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$tomorrows_date.'"><img src="styles/'.$style_sheet.'/right_day.gif" alt="['.$next_day_lang.']" border="0" align="left"></a>'; ?></td> </tr> </table> </td> <td align="right" width="120" class="navback"> <table width="120" border="0" cellpadding="0" cellspacing="0"> <tr> <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/day_on.gif" alt="'.$day_view_lang.'" border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/week_on.gif" alt="'.$week_view_lang.'" border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/month_on.gif" alt="'.$month_view_lang.'" border="0"></a></td>'; ?> <td><?php echo '<a class="psf" href="year.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/year_on.gif" alt="'.$year_view_lang.'" border="0"></a></td>'; ?> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> <?php // The all day events returned here. if (isset($master_array[($getdate)]['-1'])) { echo "<tr>\n"; echo '<td colspan="3" height="24">'."\n"; echo '<table width="100%" border="0" cellspacing="1" cellpadding="4">'."\n"; foreach($master_array[($getdate)]['-1'] as $allday) { echo "<tr>\n"; $event_calno = $allday['calnumber']; if ($event_calno < 1) $event_calno=1; if ($event_calno > 7) $event_calno=7; echo '<td valign="top" align="center" class="eventbg_'.$event_calno.'">'; openevent("$calendar_name", "", "", $allday, 0, "", '<font color="#ffffff"><i>', "</i></font>", "psf"); echo "</td>\n</tr>\n"; } echo '</table>'."\n"; echo '</td>'."\n"; echo '</tr>'."\n"; } if ($daysofweek_dayview == 'yes') { ?> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php echo '<tr><td colspan="7"><img src="images/spacer.gif" width="70" height="1" alt=" "></td></tr>'; echo "<tr>"; $thisdate = $start_week_time; $start_day = strtotime($week_start_day); $i = 0; do { $day_num = date("w", $start_day); $day = $daysofweek_lang[$day_num]; $thisday = date("Ymd", $thisdate); echo "<td width=\"74\" valign=\"top\" align=\"center\" class=\"dateback\">\n"; echo "<font class=\"V9\"><a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$day</a></font>\n"; echo "</td>\n"; $start_day = strtotime("+1 day", $start_day); $thisdate = strtotime("+1 day", $thisdate); $i++; } while ($i < 7); echo '</tr>'; echo '</table>'; echo '</td>'; echo '</tr>'; } ?> <tr> <td align="center" valign="top" colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=" "></td> <td width="1"></td> <?php for ($m=0;$m < $nbrGridCols;$m++) { echo '<td><img src="images/spacer.gif" width="' . (520 / $nbrGridCols) . '" height="1" alt=" "></td>'; } ?> </tr> <?php // $master_array[($getdate)][$day_time] $event_length = array (); $border = 0; foreach ($day_array as $key) { ereg('([0-9]{2})([0-9]{2})', $key, $regs_tmp); $cal_time = $key; $key = mktime($regs_tmp[1],$regs_tmp[2],0,$this_month,$this_day,$this_year); $key = date ($timeFormat, $key); unset($this_time_arr); // add events that overlap the start time if (isset($master_array[$getdate][$cal_time]) && sizeof($master_array[$getdate][$cal_time]) > 0) { $this_time_arr = $master_array[$getdate][$cal_time]; } // add events that overlap $day_start instead of cutting them out completely if ("$day_start" == "$cal_time" && isset($master_array[$getdate])) { foreach($master_array[$getdate] as $time_key => $time_arr) { if ((int)$time_key < (int)$cal_time && is_array($time_arr) && $time_key != '-1') { foreach($time_arr as $event_tmp) { if ((int)$event_tmp['event_end'] > (int)$cal_time) { $this_time_arr[] = $event_tmp; } } } else { break; } } } // check for eventstart if (isset($this_time_arr) && sizeof($this_time_arr) > 0) { foreach ($this_time_arr as $eventKey => $loopevent) { $drawEvent = drawEventTimes ($cal_time, $loopevent['event_end']); $j = 0; while (isset($event_length[$j])) { if ($event_length[$j]['state'] == 'ended') { $event_length[$j] = array ('length' => ($drawEvent['draw_length'] / $gridLength), 'key' => $eventKey, 'overlap' => $loopevent['event_overlap'],'state' => 'begin'); break; } $j++; } if ($j == sizeof($event_length)) { array_push ($event_length, array ('length' => ($drawEvent['draw_length'] / $gridLength), 'key' => $eventKey, 'overlap' => $loopevent['event_overlap'],'state' => 'begin')); } } } if (ereg('([0-9]{1,2}):00', $key)) { echo '<tr>'."\n"; echo '<td rowspan="' . (60 / $gridLength) . '" align="center" valign="top" width="60" class="timeborder">'.$key.'</td>'."\n"; echo '<td width="1" height="' . $gridLength . '"></td>'."\n"; } elseif("$cal_time" == "$day_start") { $size_tmp = 60 - (int)substr($cal_time,2,2); echo "<tr>\n"; echo "<td rowspan=\"" . ($size_tmp / $gridLength) . "\" align=\"center\" valign=\"top\" width=\"60\" class=\"timeborder\">$key</td>\n"; echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n"; } else { echo '<tr>'."\n"; echo '<td width="1" height="' . $gridLength . '"></td>'."\n"; } if ($dayborder == 0) { $class = ' class="dayborder"'; $dayborder++; } else { $class = ' class="dayborder2"'; $dayborder = 0; } if (sizeof($event_length) == 0) { echo '<td bgcolor="#ffffff" colspan="' . $nbrGridCols . '" '.$class.'> </td>'."\n"; } else { $emptyWidth = $nbrGridCols; for ($i=0;$i<sizeof($event_length);$i++) { $drawWidth = $nbrGridCols / ($event_length[$i]['overlap'] + 1); $emptyWidth = $emptyWidth - $drawWidth; switch ($event_length[$i]['state']) { case 'begin': $event_length[$i]['state'] = 'started'; $event_start = strtotime ($this_time_arr[($event_length[$i]['key'])]['event_start']); $event_end = strtotime ($this_time_arr[($event_length[$i]['key'])]['event_end']); $event_start = date ($timeFormat, $ev... [truncated message content] |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/images In directory sc8-pr-cvs1:/tmp/cvs-serv23587/images Log Message: Directory /cvsroot/openfirst/members/phpicalendar/images added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/styles In directory sc8-pr-cvs1:/tmp/cvs-serv23587/styles Log Message: Directory /cvsroot/openfirst/members/phpicalendar/styles added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/rss In directory sc8-pr-cvs1:/tmp/cvs-serv23587/rss Log Message: Directory /cvsroot/openfirst/members/phpicalendar/rss added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/languages In directory sc8-pr-cvs1:/tmp/cvs-serv23587/languages Log Message: Directory /cvsroot/openfirst/members/phpicalendar/languages added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/includes In directory sc8-pr-cvs1:/tmp/cvs-serv23587/includes Log Message: Directory /cvsroot/openfirst/members/phpicalendar/includes added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:57
|
Update of /cvsroot/openfirst/members/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv23587/functions Log Message: Directory /cvsroot/openfirst/members/phpicalendar/functions added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:56
|
Update of /cvsroot/openfirst/members/phpicalendar/calendars In directory sc8-pr-cvs1:/tmp/cvs-serv23587/calendars Log Message: Directory /cvsroot/openfirst/members/phpicalendar/calendars added to the repository |
From: <xt...@us...> - 2003-10-05 15:20:43
|
Update of /cvsroot/openfirst/members/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv23565/phpicalendar Log Message: Directory /cvsroot/openfirst/members/phpicalendar added to the repository |
From: <xt...@us...> - 2003-10-05 13:23:13
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv2036/setup Modified Files: setup.mysql setup.mssql Log Message: Add cell phone information gathering to profiles with sufficient information so that it may be used to send SMS messages to members. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mysql,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** setup.mysql 26 Sep 2003 03:28:21 -0000 1.11 --- setup.mysql 5 Oct 2003 13:23:07 -0000 1.12 *************** *** 1,4 **** --- 1,62 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; + ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL, hiddenfields TEXT); + CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.celloneusa.com', 'CellularOne (Dobson)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('csouth1.com', 'Cellular South'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('blueskyfrog.com', 'Blue Sky Frog'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('blsdcs.net', 'BellSouth Mobility'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.beemail.ru', 'BeeLine GSM'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.att.net', 'AT&T Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('paging.acswireless.com', 'Ameritech (ACSWireless)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('message.alltell.com', 'Alltell'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tbayteltxt.net', 'TBaytel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('txt.bellmobility.ca', 'Bell Mobility PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('txt.bellmobility.ca', 'Bell Mobility Pagers'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('fido.ca', 'FIDO PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.rogers.com', 'Rogers AT&T Wireless PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.rogers.com', 'Rogers AT&T Wireless paging (Blackberry)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('msg.telus.com', 'Telus Mobility PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('page.metrocall.com', 'Metrocall Pager'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.mymeteor.ie', 'Meteor'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('text.mtsmobility.ca', 'Manitoba Telecom Systems'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('smsmail.lmt.lv', 'LMT'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.kyivstar.net', 'Kyivstar'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('jp-t.ne.jp', 'J-Phone'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('ideacellular.net', 'Idea Cellular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.goldentele.com', 'Golden Telecom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.edgewireless.com', 'Edge Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.orange.nl', 'Dutchtone/Orange-NL'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Cingular IM Plus/Bellsouth IPS Cellphones'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Cingular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('page.mobilfone.com', 'Mobilfone'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('wirefree.informe.ca', 'NBTel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.netcom.no', 'Netcom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.nextel.com', 'Nextel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('npiwireless.com', 'NPI Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.ntelos.com', 'NTELOS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('optusmobile.com.au', 'Optus'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Pacific Bell Cingular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pagenet.net', 'Pagenet'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.rogers.com', 'PCS Rogers AT&T Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('ptel.net', 'Powertel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.pscel.com', 'PSC Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('qwestmp.com', 'Qwest'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.sprintpcs.com', 'Sprint PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.sprintpcs.com', 'Sprint PCS - Short Mail'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tms.suncom.com', 'SunCom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.surewest.com', 'SureWest Communications'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('t-d1-sms.de', 'T-Mobile Germany'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tmomail.net', T-Mobile USA''); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('movistar.net', 'Telefonica Movistar'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.umc.com.ua', 'UMC'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vtext.com', 'Verizon Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('airtouchpaging.com', 'Verizon Wireless (formerly Airtouch)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('myairmail.com', 'Verizon Wireless (myairmail.com)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pager.irkutsk.ru', 'Vessotel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vxtras.com', 'Virgin Mobile UK'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vmobl.com', 'Virgin Mobile USA'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('airmessage.net', 'Weblink Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('wyndtell.com', 'WyndTell'); CREATE TABLE IF NOT EXISTS ofirst_workspace_users (quota BIGINT, user CHAR(128), virtfspath TEXT, frozen INT(1)); CREATE TABLE IF NOT EXISTS ofirst_workspace_files(size BIGINT, name TEXT, location TEXT, owner TEXT, division TEXT, permissions TEXT, date TEXT, description TEXT, filetype TEXT); Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mssql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mssql 28 Sep 2003 14:05:42 -0000 1.2 --- setup.mssql 5 Oct 2003 13:23:07 -0000 1.3 *************** *** 1,4 **** --- 1,62 ---- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0'; UPDATE ofirst_config SET modulenavigation='<a href="$basepath/members/workspace.php">My Workspace</a> | <a href="$basepath/members/divisions.php">Team Divisions</a> | <a href="$basepath/members/profile.php">Member List</a> | <a href="$basepath/members/links.php">Site Links</a> | <a href="$basepath/members/skills.php">My Skills</a> | <a href="$basepath/members/updateprofile.php">My Profile</a> | <a href="$basepath/members/logout.php">Logout</a>',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> | <a href="$basepath/config/">Site Configuration</a>' where modulename='members'; + ALTER TABLE ofirst_members ADD (cellphonenumber TEXT, cellphonecarrier TEXT, cellphonesms BOOL); + CREATE TABLE ofirst_cellphonecarriers (smsaddress TEXT, fullname TEXT); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.celloneusa.com', 'CellularOne (Dobson)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('csouth1.com', 'Cellular South'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('blueskyfrog.com', 'Blue Sky Frog'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('blsdcs.net', 'BellSouth Mobility'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.beemail.ru', 'BeeLine GSM'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.att.net', 'AT&T Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('paging.acswireless.com', 'Ameritech (ACSWireless)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('message.alltell.com', 'Alltell'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tbayteltxt.net', 'TBaytel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('txt.bellmobility.ca', 'Bell Mobility PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('txt.bellmobility.ca', 'Bell Mobility Pagers'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('fido.ca', 'FIDO PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.rogers.com', 'Rogers AT&T Wireless PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.rogers.com', 'Rogers AT&T Wireless paging (Blackberry)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('msg.telus.com', 'Telus Mobility PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('page.metrocall.com', 'Metrocall Pager'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.mymeteor.ie', 'Meteor'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('text.mtsmobility.ca', 'Manitoba Telecom Systems'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('smsmail.lmt.lv', 'LMT'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.kyivstar.net', 'Kyivstar'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('jp-t.ne.jp', 'J-Phone'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('ideacellular.net', 'Idea Cellular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.goldentele.com', 'Golden Telecom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.edgewireless.com', 'Edge Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.orange.nl', 'Dutchtone/Orange-NL'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Cingular IM Plus/Bellsouth IPS Cellphones'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Cingular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('page.mobilfone.com', 'Mobilfone'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('wirefree.informe.ca', 'NBTel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.netcom.no', 'Netcom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.nextel.com', 'Nextel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('npiwireless.com', 'NPI Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.ntelos.com', 'NTELOS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('optusmobile.com.au', 'Optus'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.mycingular.com', 'Pacific Bell Cingular'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pagenet.net', 'Pagenet'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pcs.rogers.com', 'PCS Rogers AT&T Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('ptel.net', 'Powertel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.pscel.com', 'PSC Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('qwestmp.com', 'Qwest'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.sprintpcs.com', 'Sprint PCS'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('messaging.sprintpcs.com', 'Sprint PCS - Short Mail'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tms.suncom.com', 'SunCom'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('mobile.surewest.com', 'SureWest Communications'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('t-d1-sms.de', 'T-Mobile Germany'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('tmomail.net', T-Mobile USA''); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('movistar.net', 'Telefonica Movistar'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('sms.umc.com.ua', 'UMC'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vtext.com', 'Verizon Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('airtouchpaging.com', 'Verizon Wireless (formerly Airtouch)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('myairmail.com', 'Verizon Wireless (myairmail.com)'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('pager.irkutsk.ru', 'Vessotel'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vxtras.com', 'Virgin Mobile UK'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('vmobl.com', 'Virgin Mobile USA'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('airmessage.net', 'Weblink Wireless'); + INSERT INTO ofirst_cellphonecarriers (smsaddress, fullname) VALUES ('wyndtell.com', 'WyndTell'); CREATE TABLE IF NOT EXISTS ofirst_workspace_users (quota BIGINT, user CHAR(128), virtfspath TEXT, frozen INT(1)); CREATE TABLE IF NOT EXISTS ofirst_workspace_files(size BIGINT, name TEXT, location TEXT, owner TEXT, division TEXT, permissions TEXT, date TEXT, description TEXT, filetype TEXT); |
From: <xt...@us...> - 2003-10-05 13:23:12
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv2036 Modified Files: updateprofile.php Log Message: Add cell phone information gathering to profiles with sufficient information so that it may be used to send SMS messages to members. Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** updateprofile.php 23 Aug 2003 20:31:16 -0000 1.5 --- updateprofile.php 5 Oct 2003 13:23:07 -0000 1.6 *************** *** 37,45 **** $q = ofirst_dbquery("UPDATE ofirst_divisions SET description='" . $_POST["divisiondescription"] . "' WHERE division='" . $_POST["division"] . "';"); } $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "' , division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] . "', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . $_POST["yim"] . "', signature='" . $_POST["signature"] . "', description='" . $_POST["description"] . ! "', picturelocation='" . $_POST["picturelocation"] . "' WHERE user='$user->user';"; $q = ofirst_dbquery($query); if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { --- 37,58 ---- $q = ofirst_dbquery("UPDATE ofirst_divisions SET description='" . $_POST["divisiondescription"] . "' WHERE division='" . $_POST["division"] . "';"); } + + if($_POST["cellphonesms"] == "0") { + $_POST["cellphonesms"] = true; + $user->cellphonesms = "1"; + } else { + $_POST["cellphonesms"] = false; + $user->cellphonesms = "0"; + } + if($_POST["sendsmstestmessage"] == "on" && $user->cellphonesms == true) { + mail($_POST["cellphonenumber"] . "@" . $_POST["cellphonecarrier"], "SMS Test", "This is the test message you requested from $title."); + echo("A test SMS Message has been sent, it should arrive soon, depending on the speed of your carrier's system."); + } $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "' , division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] . "', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . $_POST["yim"] . "', signature='" . $_POST["signature"] . "', description='" . $_POST["description"] . ! "', picturelocation='" . $_POST["picturelocation"] . "', cellphonenumber='" . $_POST["cellphonenumber"] . "', cellphonecarrier='" . $_POST["cellphonecarrier"] . "', ! cellphonesms='" . $_POST["cellphonesms"] . "' WHERE user='$user->user';"; $q = ofirst_dbquery($query); if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { *************** *** 80,87 **** <br><input type='text' name='ndivision' /> <br>Description of New Division ! <br><input type='text' name='divisiondescription' /> ! </td></tr> <tr><th>Year</th><td><input type='text' name='year' value='$user->year'></td></tr> <tr><th>E-mail Address</th><td><input type='text' name='email' value='$user->email'></td></tr> <tr><th>ICQ Number</th><td><input type='text' name='icq' value='$user->icq'></td></tr> <tr><th>AIM Screenname</th><td><input type='text' name='aim' value='$user->aim'></td></tr> --- 93,116 ---- <br><input type='text' name='ndivision' /> <br>Description of New Division ! <br><input type='text' name='divisiondescription' /></td></tr> <tr><th>Year</th><td><input type='text' name='year' value='$user->year'></td></tr> <tr><th>E-mail Address</th><td><input type='text' name='email' value='$user->email'></td></tr> + <tr><th>Cell Phone/Pager Information</th><td> + Number (10 digit)<input type='text' value='$user->cellphonenumber' name='cellphonenumber' maxlength='10'> + <br>Carrier <select name='cellphonecarrier'>"); + $query = ofirst_dbquery("SELECT * FROM ofirst_cellphonecarriers ORDER BY fullname;"); + while($sms = ofirst_dbfetch_object($query)) { + if(($user->smsaddress == "" && $sms->smsaddress == "txt.bellmobility.ca") || ($user->cellphonecarrier == $sms->smsaddress)) { + echo("<option value='$sms->smsaddress' selected='selected'>$sms->fullname</option>\n"); + } else { + echo("<option value='$sms->smsaddress'>$sms->fullname</option>\n"); + } + } + if($user->cellphonesms == "1") { + echo("</select><br><input type='checkbox' checked='checked' value='0' name='cellphonesms'>Device is SMS Enabled"); + } else { + echo("</select><br><input type='checkbox' value='0' name='cellphonesms'>Device is SMS Enabled"); + } + echo("<br><input type='checkbox' value='on' name='sendsmstestmessage'>Send a test SMS message to my device</td></tr> <tr><th>ICQ Number</th><td><input type='text' name='icq' value='$user->icq'></td></tr> <tr><th>AIM Screenname</th><td><input type='text' name='aim' value='$user->aim'></td></tr> |
From: <xt...@us...> - 2003-10-04 01:59:00
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv21569 Modified Files: viewphoto.php Log Message: Fix case of ISSET to be isset Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** viewphoto.php 13 Sep 2003 15:38:24 -0000 1.10 --- viewphoto.php 4 Oct 2003 01:58:53 -0000 1.11 *************** *** 34,38 **** // If a comment is being added then run process ! if(ISSET($_POST['addcomment'])){ ofirst_dbquery("INSERT INTO ofirst_photogallery_comments SET --- 34,38 ---- // If a comment is being added then run process ! if(isset($_POST['addcomment'])){ ofirst_dbquery("INSERT INTO ofirst_photogallery_comments SET *************** *** 49,55 **** // If a comment is being deleted then check if the user is looged in then delete ! if(ISSET($_GET['COMMENT'])){ ! if(ISSET($user->user)){ ofirst_dbquery("DELETE FROM ofirst_photogallery_comments WHERE ID = '".$_GET['COMMENT']."'"); echo "<br><br>Comment has been deleted, thank you! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; --- 49,55 ---- // If a comment is being deleted then check if the user is looged in then delete ! if(isset($_GET['COMMENT'])){ ! if(isset($user->user)){ ofirst_dbquery("DELETE FROM ofirst_photogallery_comments WHERE ID = '".$_GET['COMMENT']."'"); echo "<br><br>Comment has been deleted, thank you! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; *************** *** 165,169 **** <?php // If user is logged in then offer the option of deleting the comment ! if(ISSET($user->user)){ echo "<a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."&COMMENT=".$comment->ID."'>Delete</a>"; } --- 165,169 ---- <?php // If user is logged in then offer the option of deleting the comment ! if(isset($user->user)){ echo "<a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."&COMMENT=".$comment->ID."'>Delete</a>"; } |
From: <xt...@us...> - 2003-10-04 00:14:30
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv3327 Modified Files: updatesetup.php Log Message: Fix syntax issues, incorrect header information, add clarification and fix minor typographical errors. Index: updatesetup.php =================================================================== RCS file: /cvsroot/openfirst/projects/updatesetup.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updatesetup.php 3 Oct 2003 02:19:02 -0000 1.1 --- updatesetup.php 4 Oct 2003 00:14:24 -0000 1.2 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - today.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.projects - updatesetup.php * * Copyright (C) 2003, *************** *** 38,60 **** if(isset($_POST['addtask'])){ ! ! $time = $_POST['when']; ! $when = $_POST['perform']; ! $script = $_POST['scriptlocation']; ! $engine = $_POST['engine']; ! if(isset($_POST['useoutput'])){ ! $output = "^>".getcwd()."\updatelog.txt"; ! }else{ ! $output = ""; } ! $command = "at $time /every:$when $engine -f $script $output"; ! system($command,$message); ! echo "<br><br><b>Command returned:</b> "; ! echo $message; ! } ?> --- 38,59 ---- if(isset($_POST['addtask'])){ ! $time = $_POST['when']; ! $when = $_POST['perform']; ! $script = $_POST['scriptlocation']; ! $engine = $_POST['engine']; ! if(isset($_POST['useoutput'])){ ! $output = "^>".getcwd()."\updatelog.txt"; ! } else { ! $output = ""; } ! $command = "at $time /every:$when $engine -f $script $output"; ! system($command,$message); ! echo "<br><br><b>Command returned:</b> "; ! echo $message; ! } ?> *************** *** 67,73 **** <tr> <td><p align="center"> ! <form method="POST" action="updatesetup.php"> ! <div align="center"> ! <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> --- 66,72 ---- <tr> <td><p align="center"> ! <form method="POST" action="updatesetup.php"> ! <div align="center"> ! <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> *************** *** 80,86 **** PHP engine, if they have installed it in a different location) </font> </p> ! </p> ! </div> ! <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: --- 79,84 ---- PHP engine, if they have installed it in a different location) </font> </p> ! </div> ! <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: *************** *** 105,112 **** </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer ! works by using the Microsoft Task Schedule Service. Itcombines the information you provide above and automatically creates and performs ! the (at) command in cmd. To view, edit, or remove this task you can ! use the schtasks command in cmd. To make sure this task will work you<br> must make sure the schedule service is on. Read more about this in the Microsoft<br> Help and Support option on your operating system.</font> <br> --- 103,110 ---- </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer ! works by using the Microsoft Task Schedule Service. It combines the information you provide above and automatically creates and performs ! the (at) command in cmd.exe. To view, edit, or remove this task you can ! use the schtasks command in cmd.exe. To make sure this task will work you<br> must make sure the schedule service is on. Read more about this in the Microsoft<br> Help and Support option on your operating system.</font> <br> *************** *** 114,118 **** </p></td> </tr> ! <?php }else{ ?> <tr> <th>Unix Crontab Setup</th> --- 112,116 ---- </p></td> </tr> ! <?php } else { ?> <tr> <th>Unix Crontab Setup</th> *************** *** 122,128 **** </tr> </table> ! <?php } ?> ! <?php ! } ! include($footer); ?> --- 120,125 ---- </tr> </table> ! <?php } ! } ! include($footer); ?> |
From: <xt...@us...> - 2003-10-03 23:40:56
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv31207 Modified Files: browserid.php Log Message: Code syntax changes to bring into compliance with accepted openFIRST standards. Index: browserid.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/browserid.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** browserid.php 1 Oct 2003 00:16:21 -0000 1.1 --- browserid.php 3 Oct 2003 23:40:49 -0000 1.2 *************** *** 1,8 **** <?php /* - * openFIRST browserid.php - * Last Modified: - * David Di Biase, April 13, 2003 - * * Copyright (C) 2003, * openFIRST Project --- 1,4 ---- *************** *** 29,36 **** */ ! //Functions for browser/platform identification ! function identify_platform($useragent="") ! { //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) //only report critical errors --- 25,31 ---- */ ! //Functions for browser/platform identification ! function identify_platform($useragent="") { //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) //only report critical errors *************** *** 45,53 **** $return=$browser->platform; if ($return==""){ ! //returns the original user-agent string return $useragent; } ! } ! else { //browscap.ini disabled //returns the original user-agent string --- 40,47 ---- $return=$browser->platform; if ($return==""){ ! //returns the original user-agent string return $useragent; } ! } else { //browscap.ini disabled //returns the original user-agent string *************** *** 56,63 **** //return platform ID return $return; ! } ! function identify_browser($useragent="") ! { //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) //only report critical errors --- 50,56 ---- //return platform ID return $return; ! } ! function identify_browser($useragent="") { //(This prevents PHP from displaying an error if use of browscap.ini is not enabled) //only report critical errors *************** *** 77,82 **** //return the original user-agent string return $useragent; ! } ! else { if ($browsername=="IE"){ //Spell 'IE' as 'Internet Explorer' --- 70,74 ---- //return the original user-agent string return $useragent; ! } else { if ($browsername=="IE"){ //Spell 'IE' as 'Internet Explorer' *************** *** 106,111 **** } } ! } ! else { //browscap.ini disabled //returns the original user-agent string --- 98,102 ---- } } ! } else { //browscap.ini disabled //returns the original user-agent string |
From: <dav...@us...> - 2003-10-03 02:19:08
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv24851 Added Files: updatesetup.php Log Message: Initial upload. Still requires a lot of changes for permissions and syntax. --- NEW FILE: updatesetup.php --- <?php /* * openFIRST.projects - today.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Include globals and set header condense (not coded yet) include("../config/globals.php"); $header_condense = true; include($header); // Check if user is a member if(! isset($user->user)){ showlogin(); } else { if(isset($_POST['addtask'])){ $time = $_POST['when']; $when = $_POST['perform']; $script = $_POST['scriptlocation']; $engine = $_POST['engine']; if(isset($_POST['useoutput'])){ $output = "^>".getcwd()."\updatelog.txt"; }else{ $output = ""; } $command = "at $time /every:$when $engine -f $script $output"; system($command,$message); echo "<br><br><b>Command returned:</b> "; echo $message; } ?> <h2>Update System </h2> <table width="494" align="center"> <?php if($ostype == "windows"){ ?> <tr> <th><div align="center"><font color="#000000">Windows Update Setup</font></div></th> </tr> <tr> <td><p align="center"> <form method="POST" action="updatesetup.php"> <div align="center"> <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> <font size="1">(This value is automatically set, although please check to see if this<br> file location is correct.)</font></p> <p>Please note the location of your PHP engine:<br> <input name="engine" type="text" id="engine" value="c:\PHP\php.exe" size="50"> <br> <font size="1">(Some users may have to specify the loaction of their<br> PHP engine, if they have installed it in a different location) </font> </p> </p> </div> <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: <select name="perform" id="perform"> <option value="M,T,W,Th,F,S,Su" selected>Daily</option> <option value="M,W,F,Su">Every 2 Days</option> <option value="Th,S">Every 3 Days</option> <option value="Th">Every 4 Days</option> <option value="F">Every 5 Days</option> <option value="S">Every 6 Days</option> <option value="Su">Weekly</option> </select> </p> <p align="center">Send Update At: <input name="when" type="text" id="when" value="24:00" size="10" maxlength="5"> <font size="2"><br> (Enter time using 24 hour clock time)</font></p> <p align="center"> <input name="addtask" type="submit" id="addtask" value="Add Update"> <input type="reset" name="Submit2" value="Reset"> </p> </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer works by using the Microsoft Task Schedule Service. Itcombines the information you provide above and automatically creates and performs the (at) command in cmd. To view, edit, or remove this task you can use the schtasks command in cmd. To make sure this task will work you<br> must make sure the schedule service is on. Read more about this in the Microsoft<br> Help and Support option on your operating system.</font> <br> <br> </p></td> </tr> <?php }else{ ?> <tr> <th>Unix Crontab Setup</th> </tr> <tr> <td>Not implemented yet! </td> </tr> </table> <?php } ?> <?php } include($footer); ?> |
From: <dav...@us...> - 2003-10-03 02:16:43
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv24161 Modified Files: updates.php Log Message: Added script output for update process. Index: updates.php =================================================================== RCS file: /cvsroot/openfirst/projects/updates.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** updates.php 30 Aug 2003 16:23:07 -0000 1.5 --- updates.php 3 Oct 2003 02:16:39 -0000 1.6 *************** *** 140,145 **** --- 140,147 ---- if(function_exists("multipartmail")){ multipartmail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message); + echo "<br> Sent to: $mailgroup->email (multipart)"; }else{ mail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message); + echo "<br> Sent to: $mailgroup->email (mail)"; } |
From: <dav...@us...> - 2003-10-03 02:16:12
|
Update of /cvsroot/openfirst/projects/setup In directory sc8-pr-cvs1:/tmp/cvs-serv24020/setup Modified Files: setup.mssql Log Message: Fixed mssql script to be the same as the mysql setup script. Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/projects/setup/setup.mssql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mssql 30 Aug 2003 00:04:02 -0000 1.1 --- setup.mssql 3 Oct 2003 02:15:46 -0000 1.2 *************** *** 5,10 **** CREATE TABLE `ofirst_projects_tasks` ( `ID` tinyint(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET includes='',modulename='projects',showonmenu='0',active='0',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/meetings.php">Meetings</a> | <a href="$basepath/projects/today.php">Todays Changes</a>'; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsFrequency tinytext ! ALTER TABLE ofirst_members ADD COLUMN ProjectsSendCountDown tinytext ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext ALTER TABLE ofirst_members ADD COLUMN ProjectsSendTemplate tinytext --- 5,9 ---- CREATE TABLE `ofirst_projects_tasks` ( `ID` tinyint(3) unsigned NOT NULL auto_increment, `TaskName` text, `ProjectID` tinytext, `GroupID` tinytext, `DateAssigned` text, `TarDate` text, `Description` text, `Assigned` text, `Dates` text, `Completion` tinytext, `Pend` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET includes='',modulename='projects',showonmenu='0',active='0',modulenavigation='<a href="$basepath/projects/groups.php">Action Register</a> | <a href="$basepath/projects/mytask.php">My Tasks</a> | <a href="$basepath/projects/preferences.php">Preferences</a> | <a href="$basepath/projects/meetings.php">Meetings</a> | <a href="$basepath/projects/today.php">Todays Changes</a>'; ! ALTER TABLE ofirst_members ADD COLUMN ProjectsUpdates tinytext ALTER TABLE ofirst_members ADD COLUMN ProjectsCommitSelect tinytext ALTER TABLE ofirst_members ADD COLUMN ProjectsSendTemplate tinytext |
From: <i-...@us...> - 2003-10-01 22:55:59
|
Update of /cvsroot/openfirst/news/images In directory sc8-pr-cvs1:/tmp/cvs-serv3808/news/images Added Files: killdoc.gif newdoc.gif Log Message: Images for new admin navigation --- NEW FILE: killdoc.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newdoc.gif --- (This appears to be a binary file; contents omitted.) |
From: <i-...@us...> - 2003-10-01 22:55:15
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv3737/news Modified Files: index.php Log Message: Added navigation for new admin modules - edit and delete. Added new parameter for shownews. Displays new admin options to admins. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 28 Sep 2003 15:30:57 -0000 1.7 --- index.php 1 Oct 2003 22:55:10 -0000 1.8 *************** *** 32,39 **** Here are the top 5 most important news outbreaks.<br><br> <?php if(isset($_GET['show'])){ ! shownews(99999); }else{ ! shownews(5); // Shows 5 pieces of news. } ?> --- 32,43 ---- Here are the top 5 most important news outbreaks.<br><br> <?php + $admin=false; + if (isset($user->membertype)){ + $admin=($user->membertype == "administrator"); + } if(isset($_GET['show'])){ ! shownews(99999,$admin); }else{ ! shownews(5,$admin); // Shows 5 pieces of news. } ?> |