http://www.geckozone.org/forum/viewtopi ... 978#235978

Modérateur : J2m06
penpen a écrit :C'est bizarre que ca ne s'affiche pas. Les pages de free sont peut être un peu lente en ce moment.
Bon passons à la dernier étape.
Phpicalendar propose des scripts pour imiter webdav (ils sont placé dans le repertoire contenant les calendriers) et se nomment publish.ical.php et publish.mozilla.php.
Seulement ces scripts ne sont pas compatible avec les pages persos de free. Ainsi j'ai rapidement fait un script modifié pour marcher avec free. Télécharge le ici, extrait le (il se nomme publish.sunbird.php), puis copie le sur ton espace web dans le répertoire des calendriers (par défaut /phpicalendar/calendars).
Ensuite ouvre Sunbird/Calendar tu fais File > Subscribe to Remote Calendar et dans Remote Server URL tu indique l'adresse http://tonsiteweb/phpicalendar/calendar ... ierICS.ics et tu coche la case qui permet les publications automatiques.
(Note: NomDuFichierICS.ics est le fichier calendrier que tu as déposé sur ton espace web (dans le repertoire des calendriers) à l'étape 2).
Valide et c'est bon, tu peux acceder à ton calendrier distant.
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1fmermoz a écrit :Bonjour,FrE3mAn a écrit :ensuite par rapport a la securité...
j'ai modifié le config avec les mots de pass et la variable $allow_login.. mais impossible de me logger (par pour l'admin mais sur la page principale)
j'ai bien le champs a remplir login et mdp, mais nulle part un OK a clicker ou autre.. et meme en faisant "entree" rien ne se passe...
j'esperais pouvoir lire mes entrées "private" comme ca.... c'est dommage... il n'y a aucun moyen de le faire?
et ca sert aussi pour le lock de calendrier (avec les variables $locked_cals[] = '' et $locked_map['user1:pass'] = array(''); ).. j'arrive bien a les cacher, mais comme je n'arrive pas a me logger.. bah je peux pas m'autoriser pour les voir...
J'avais le même problème et j'ai trouvé la réponse dans le forum phpicalendar: Il faut ajouter le code suivant aprés la ligne 24 du fichier /templates/default/sidebar.tpl
Code : Tout sélectionner
<tr> <td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"> <div style="padding-left: 5px; padding-bottom: 5px;"> <input type="submit" value=" Login "> </div> </td> </tr>
J'utilise Phpicalendar 2.22 chez free et il ne fonctionne pas directement.Décompresse cette archive, tu obtiendra un répertoire phpicalendar.
Ensuite copie ce répertoire à la racine de ton espace web personnel.
Pour voir si ca a marché, essaye d'afficher la page http://tonsiteweb/phpicalendar/
Il m'affiche le message :<?php
// Configuration file for PHP iCalendar 2.0
//
// To set values, change the text between the single quotes
// Follow instructions to the right for detailed information
$template = 'default'; // Template support
$default_view = 'day'; // 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', 'Korean'
$week_start_day = 'Sunday'; // Day of the week your week starts on
$week_length = '7'; // Number of days to display in the week view
$day_start = '0700'; // Start time for day grid
$day_end = '2300'; // End time for day grid
$gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred
$num_years = '1'; // Number of years (up and back) 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
$calendar_path = ''; // Leave this blank on most installs, place your full FILE SYSTEM PATH to calendars if they are outside the phpicalendar folder.
$second_offset = ''; // The time in seconds between your time and your server's time.
$bleed_time = '-1'; // This allows events past midnight to just be displayed on the starting date, only good up to 24 hours. Range from '0000' to '2359', or '-1' for no bleed time.
$cookie_uri = ''; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar -- AUTO SETTING -- Only set if you are having cookie issues.
$download_uri = ''; // The HTTP URL to your calendars directory, ie. http://www.example.com/phpicalendar/calendars -- AUTO SETTING -- Only set if you are having subscribe issues.
$default_path = 'http://prenom.nom.free.fr/phpicalendar'; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar
$charset = 'UTF-8'; // Character set your calendar is in, suggested UTF-8, or iso-8859-1 for most languages.
// Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase.
$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.
$enable_rss = 'yes'; // Enable RSS access to your calendars (good thing).
$show_search = 'yes'; // 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.
$allow_login = 'no'; // Set to yes to prompt for login to unlock calendars.
$login_cookies = 'no'; // Set to yes to store authentication information via (unencrypted) cookies. Set to no to use sessions.
$support_ical = 'no'; // Set to yes to support the Apple iCal calendar database structure.
$recursive_path = 'no'; // Set to yes to recurse into subdirectories of the calendar path.
// Calendar Caching (decreases page load times)
$save_parsed_cals = 'yes'; // Saves a copy of the cal in /tmp after it's been parsed. Improves performance.
$tmp_dir = ''; // The temporary directory on your system (/tmp is fine for UNIXes including Mac OS X). Any php-writable folder works.
$webcal_hours = '24'; // Number of hours to cache webcals. Setting to '0' will always re-parse webcals.
// Webdav style publishing
$phpicalendar_publishing = '1'; // Set to '1' to enable remote webdav style publish. See 'calendars/publish.php' for complete information;
// Administration settings (/admin/)
$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 = 'internal'; // 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 = 'admin'; // 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_port = '21'; // Only used if $auth_method='ftp'. The ftp port. '21' is the default for ftp 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.
// Calendar colors
//
// You can increase the number of unique colors by adding additional images (monthdot_n.gif)
// and in the css file (default.css) classes .alldaybg_n, .eventbg_n and .eventbg2_n
// Colors will repeat from the beginning for calendars past $unique_colors (7 by default), with no limit.
$unique_colors = '7';
$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
#$more_webcals['cpath'][] = '' //add webcals that will show up only for a particular cpath.
$locked_cals[] = ''; // Fill in-between the quotes the names of the calendars you wish to hide
$locked_cals[] = ''; // unless unlocked by a username/password login. This should be the
$locked_cals[] = ''; // exact calendar filename without the .ics suffix.
$locked_cals[] = ''; //
// add more lines as necessary
$locked_map['user1:pass'] = array(''); // Map username:password accounts to locked calendars that should be
$locked_map['user2:pass'] = array(''); // unlocked if logged in. Calendar names should be the same as what is
$locked_map['user3:pass'] = array(''); // listed in the $locked_cals, again without the .ics suffix.
$locked_map['user4:pass'] = array(''); // Example: $locked_map['username:password'] = array('Locked1', 'Locked2');
// add more lines as necessary
$apache_map['user1'] = array(''); // Map HTTP authenticated users to specific calendars. Users listed here and
$apache_map['user2'] = array(''); // authenticated via HTTP will not see the public calendars, and will not be
$apache_map['user3'] = array(''); // given any login/logout options. Calendar names not include the .ics suffix.
$apache_map['user4'] = array(''); // Example: $apache_map['username'] = array('Calendar1', 'Calendar2');
// add more lines as necessary
?>
mais j'ai encore ce messageLigne 48
$tmp_dir = '../tmp'; // The temporary directory on your system (/tmp is fine for UNIXes including Mac OS X). Any php-writable folder works.
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2Unable to write to cache directory. Please check your config.
[What does this mean?]
The calendar "./calendars/Home.ics" was being processed when this error occurred.
Salut,pom' a écrit :pour mon cas, j'ai créé autant d'agendas que de personnes et installé sur les sunbird des personnes les agendas les concernant, avec pour seule modification possible le leur.
Code : Tout sélectionner
$allow_admin = 'yes';
$auth_method = 'ftp';
$auth_internal_username = 'admin'; // à modifier selon tes codes
$auth_internal_password = 'admin';
$ftp_server = 'localhost';
$ftp_calendar_path = '';
Code : Tout sélectionner
deny from all
Code : Tout sélectionner
<Files agenda_1.ics>
AuthUserFile "C:\Program files\EasyPHP1-7\www\icalendar\utilisateurs\.htpasswd"
AuthName "Accès sécurisé aux agendas"
AuthType Basic
<LIMIT GET POST>
require user util1 util2
</LIMIT>
</Files>
Code : Tout sélectionner
$allow_admin = 'yes';
$auth_method = 'none';
$auth_internal_username = 'admin'; // à modifier selon tes codes
$auth_internal_password = 'admin';
$ftp_server = 'localhost';
$ftp_calendar_path = '';
Code : Tout sélectionner
$locked_cals[] = 'agenda_1';
$apache_map['david'] = array('util1', 'util2',);
Utilisateurs parcourant ce forum : Google [Bot] et 2 invités