[php] phpicalendar configuration

 


jian
Veteran

04.08.09
12:10 Uhr
Hallo werte PHP Kenner,
bin gerade auf phpicalendar gestoßen und würde das gerne probieren (also apples ical auf meinen server zu packen), aber ich bin dafür etwas zu unbedarft, dass ich verstehe, wie ich die config Datei anpassen muss... oder was ich überhaupt machen muss, da ich aus deren wiki nicht schlau werde...
hat da schon jemand Erfahrung mit ?


  1. <?php
  2. /* Customizing phpicalendar configuration:
  3.  
  4. phpicalendar 2.3 should work with no additional configuration. This file can be changed to customize the behavior of phpicalendar.
  5. In version 2.3, there has been a change in the way configuration works in order to reduce the number of confusing global variables. Unfortunately, this means that config.inc.php files from older installations will have to be translated to the new format. The conversion is simple: use the old variable names as array keys for the $configs array below.
  6.  
  7. To change basic settings, uncomment (remove the first '#') from the desired line and adjust the value. For setting blacklists, autmatic webcals, locked calendars, and HTTP authorized calendars modify the arrays below the basic configuration section.
  8.  
  9. The commented out lines below include alternatives to the default settings. Additional settings that can be overridden are in default_config.php
  10.  
  11. For more info and help, go to http://phpicalendar.net or email phpicalendar@gmail.com
  12. */
  13.  
  14. $configs = array(
  15.  
  16. /* ========= BASIC CONFIGURATION =========
  17. ** Server configuration **
  18.  
  19. As noted, phpicalendar should work without adjusting the default settings. Change these if you are having problems or want to change where things are found. For example, it is often useful to have calendar_path in a different location.
  20.  
  21. calendar_path is a FILE path
  22. default_path, cookie_uri, and download_uri are a URL paths, e.g. http://www.example.com/phpicalendar; set these if you are having problems.
  23.  
  24. Note that the allow_webcals setting allows webcals to be passed as URLs. You do NOT need to override the default setting to list specific webcals for inclusion in the SPECIAL CALENDARS section below.
  25.  
  26. The salt parameter is used to obfuscate things like webcal links that may have usernames and passwords. This should be changed.
  27. */
  28. # 'calendar_path' => '/Library/WebServer/Documents/phpicalendar/calendars/recur_tests',
  29. # 'default_path' => '',
  30. # 'save_parsed_cals' => 'yes',
  31. # 'cookie_uri' => '',
  32. # 'download_uri' => '',
  33. # 'allow_webcals' => 'yes',
  34. # 'recursive_path' => 'yes',
  35. # 'salt' => 'SaLt4',
  36.  
  37. /* ** Timezones **
  38. If timezone is not set, all events show in the local time of the source calendar. This isn't a problem if all your calendars are in the same timezone. If you set a timezone for the server, events in other timezones are shown when they occur at the server's time.
  39. */
  40. # 'timezone' => 'US/Central',
  41. # 'second_offset' => $secs,
  42.  
  43. /* ** Appearance **
  44. In this section you can set how phpicalendar will display calendar views.
  45.  
  46. phpicalendar currently supports about 30 language variants. For a list of supported languages, see the languages folder.
  47.  
  48.  
  49. */
  50.  
  51. # 'language' => 'Spanish',
  52. # 'default_cal' => 'US Holidays', // Exact filename of calendar without .ics.
  53. # 'template' => 'green', // Template support: change this to have a different "skin" for your installation.
  54. # 'default_view' => 'year', // Default view for calendars' => 'day', 'week', 'month', 'year'
  55. # 'printview_default' => 'yes', // Set print view as the default view. Uses'default_view (listed above).
  56. # 'gridLength' => 10, // Grid size in day and week views. Allowed values are 1,2,3,4,10,12,15,20,30,60. Default is 15
  57. # 'minical_view' => 'current', // Where do the mini-calendars go when clicked?' => 'day', 'week', 'month', 'current'
  58. # 'allow_preferences' => 'no',
  59. # 'month_locations' => 'no',
  60. # 'show_search' => 'yes',
  61. # 'show_todos' => 'no',
  62. # 'show_completed' => 'no',
  63. # 'allow_login' => 'yes', // Set to yes to prompt for login to unlock calendars.
  64. # 'week_start_day' => 'Monday', // Day of the week your week starts on
  65. # 'week_length' => '5', // Number of days to display in the week view
  66. # 'day_start' => '0600', // Start time for day grid
  67. # 'day_end' => '2000', // End time for day grid
  68. # 'event_download' => 'yes',
  69.  
  70.  
  71. /* ========= CALENDAR PUBLISHING =========
  72.  
  73. This section is not needed if your calendars directory is accessible via WebDAV or CalDAV. These settings
  74. control the publish.php script provided in the calendars directory. For more information, please see that
  75. file.
  76. */
  77.  
  78. 'phpicalendar_publishing'=> 1,
  79.  
  80.  
  81.  
  82.  
  83.  
  84. );
  85. /* ========= SPECIAL CALENDARS =========
  86.  
  87. these arrays provide extra calendar options.
  88.  
  89. ** Blacklisted Calendars
  90.  
  91.  
  92. */
  93. $blacklisted_cals = array(
  94. ''
  95. );
  96. /* ========= SPECIAL CALENDARS =========
  97.  
  98. these arrays provide extra calendar options.
  99.  
  100. */
  101. $list_webcals = array(
  102. # 'webcal://dimer.tamu.edu/calendars/seminars/Biochem.ics'
  103. );
  104. $more_webcals['recur_tests'] = array();
  105. $locked_cals = array(
  106.  
  107. );
  108. /* ========= SPECIAL CALENDARS =========
  109.  
  110. these arrays provide extra calendar options.
  111.  
  112. */
  113. $locked_map['user1:pass'] = array(''); // Map username:password accounts to locked calendars that should be
  114. $locked_map['user2:pass'] = array(''); // unlocked if logged in. Calendar names should be the same as what is
  115. $locked_map['user3:pass'] = array(''); // listed in the $locked_cals, again without the .ics suffix.
  116. $locked_map['user4:pass'] = array(''); // Example: $locked_map['username:password'] = array('Locked1', 'Locked2');
  117. // add more lines as necessary
  118.  
  119. $apache_map['user1'] = array(''); // Map HTTP authenticated users to specific calendars. Users listed here and
  120. $apache_map['user2'] = array(''); // authenticated via HTTP will not see the public calendars, and will not be
  121. $apache_map['user3'] = array(''); // given any login/logout options. Calendar names not include the .ics suffix.
  122. $apache_map['user4'] = array(''); // Example: $apache_map['username'] = array('Calendar1', 'Calendar2');
Quelltext in Zwischenablage kopieren
Link zu diesem Beitrag in die Zwischenablage kopieren
Rusty
Veteran

05.08.09
00:13 Uhr
Ich hab nicht die geringste Ahnung, was Du vorhast und ob Dir auch mit einer idiotensicheren Alternative () geholfen ist. Falls das der Fall ist, solltest Du Dich nicht mit irgendetwas Anderem abmühen. Falls nicht, viel Erfolg mit den weiteren Antworten.
Link zu diesem Beitrag in die Zwischenablage kopieren
Rusty
Veteran

05.08.09
00:14 Uhr
Harhar, der Querverweis ist sehr aufschlussreich. eek
Link zu diesem Beitrag in die Zwischenablage kopieren
jian
Veteran

05.08.09
09:28 Uhr
Editiert: 05.08.09, 09:41 Uhr
-P lol die Anmeldung hat damals nicht geklappt, wurde dauernd abgebrochen... werds nachher nochmal versuchen.
Das PHP ist halt ne nette Sache und wie ich mitbekommen habe, kann man auch zB vom iPhone aus Termine hinzufügen/ändern (war aber gestern zwischen Tür und Angel und der Versuch hätte zu lange gedauert da kaum Zeit) wie auch immer, danke erstmal, werds nochmal mit Deinem Link versuchen und wenn ich etwas kniffeln will schau ich mir noch mal das php an (was so schwer ja auch nicht sein kann).

Edit: nun hat die Anmeldung geklappt... so wie ich das sehe nutzt der Anbieter genau das gleiche php Skipt, wie das was ich geladen habe, nur bei dem was ich geladen habe, kann ich die Sprache und das Datumformat anpassen...
Link zu diesem Beitrag in die Zwischenablage kopieren
Rusty
Veteran

05.08.09
16:50 Uhr
Wie gesagt, ich hab überhaupt keine Ahnung von dem ganzen Ding und auch von was Du machen willst. Mir erschien das toll, weil Du damit Deine Kalender in iCal pflegen und veröffentlichen kannst, die Kalender abonnierbar sind und Du Dich auf dem eigenen Server ausschließlich um die Ausgabe kümmern musst.

Im ersten Thread ersetzt das Angebot einen .me-Account.
Link zu diesem Beitrag in die Zwischenablage kopieren
jian
Veteran

05.08.09
20:14 Uhr
so, habs geschafft, dass ganze auf meinem Server auf deutsch mit deutschem Datumsformat zum laufen zu bringen sieht nun genau so aus wie www.icalx.com () und kann mit Passwort geschützt werden (war nicht schwer, ich war nur in der falschen php Datei default_config.php ist die richtige).
Wird nun automatisch mit ical synchronisiert (in ical auf Kalender veröffentlichen) und auf dem iphone abonniert. Leider kann ich keine Termine vom iPhone (über web, also wlan) hinzufügen. Das geht dann nur über usb... schade. Vielleicht doch irgendwann .me
Link zu diesem Beitrag in die Zwischenablage kopieren
dito
Veteran

06.08.09
08:51 Uhr
http://rscds.sourceforge.net/ () kannst dir auch mit nem PHP Caldav Server was schrauben um Termine einzutragen und sowohl Mac und iPhone Syncen. Hab ich aber nicht getestet hatte das ganze nur in meinen Bookmarks. planlos
Link zu diesem Beitrag in die Zwischenablage kopieren
 
#