";
@@ -312,10 +313,10 @@ print " ";
// Show message
$message='';
$urlwithouturlroot=eregi_replace(DOL_URL_ROOT.'$','',$dolibarr_main_url_root);
-$urlvcal=''.$urlwithouturlroot.DOL_URL_ROOT.'/webcal/webcalexport.php?format=vcal&exportkey=...'.'';
+$urlvcal=''.$urlwithouturlroot.DOL_URL_ROOT.'/webcal/webcalexport.php?format=vcal&exportkey='.$conf->global->PHPWEBCALENDAR_PASSWORD_VCALEXPORT.'';
$message.=$langs->trans("WebCalUrlForVCalExport",'vcal',$urlvcal);
$message.=' ';
-$urlical=''.$urlwithouturlroot.DOL_URL_ROOT.'/webcal/webcalexport.php?format=ical&type=event&exportkey=...'.'';
+$urlical=''.$urlwithouturlroot.DOL_URL_ROOT.'/webcal/webcalexport.php?format=ical&type=event&exportkey='.$conf->global->PHPWEBCALENDAR_PASSWORD_VCALEXPORT.'';
$message.=$langs->trans("WebCalUrlForVCalExport",'ical',$urlical);
print info_admin($message);
diff --git a/htdocs/comm/action/agendaexport.php b/htdocs/comm/action/agendaexport.php
index f02e20a7da6..1e019490509 100644
--- a/htdocs/comm/action/agendaexport.php
+++ b/htdocs/comm/action/agendaexport.php
@@ -33,9 +33,12 @@ require_once(DOL_DOCUMENT_ROOT.'/actioncomm.class.php');
function llxHeader() { print 'Export agenda cal'; }
function llxFooter() { print ''; }
+// Security check
+if (! $conf->agenda->enabled)
+ accessforbidden();
// Check config
-if (! $conf->agenda->enabled && empty($conf->global->MAIN_PASSWORD_VCALEXPORT))
+if (empty($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY))
{
$user->getrights();
diff --git a/htdocs/langs/en_US/agenda.lang b/htdocs/langs/en_US/agenda.lang
index fb244b03bac..12fbcf517ee 100644
--- a/htdocs/langs/en_US/agenda.lang
+++ b/htdocs/langs/en_US/agenda.lang
@@ -23,5 +23,6 @@ ViewList=View list
ViewCal=View calendar
ViewWithPredefinedFilters=View with predefined filters
AutoActions=Automatic creation of actions
-AgendaAutoActionDesc=Define here, actions for which you want Dolibarr to creat automatically an action in agenda. If nothing is checked (by default), only manual actions will be included in agenda.
-AgendaSetupOtherDesc=This page allows to configure other parameters.
\ No newline at end of file
+AgendaAutoActionDesc=Define here events for which you want Dolibarr to create automatically an action in agenda. If nothing is checked (by default), only manual actions will be included in agenda.
+AgendaSetupOtherDesc=This page allows to configure other parameters of agenda module.
+ActionsEvents=Events for which create an action
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/agenda.lang b/htdocs/langs/fr_FR/agenda.lang
index 4635edc16a3..2f7e4135251 100644
--- a/htdocs/langs/fr_FR/agenda.lang
+++ b/htdocs/langs/fr_FR/agenda.lang
@@ -23,5 +23,6 @@ ViewList=Voir liste
ViewCal=Voir calendrier
ViewWithPredefinedFilters=Vues avec filtres prédéfinis
AutoActions=Création automatiques des actions
-AgendaAutoActionDesc=Définissez dans cet onglet, les actions pour lesquels dolibarr créera automatiquement une tache dans l'agenda. Si aucune case n'est cochée (par défaut), seules les actions manuelles seront incluses dans l'agenda.
-AgendaSetupOtherDesc=Cette page permet de configurer les autres paramètres.
\ No newline at end of file
+AgendaAutoActionDesc=Définissez dans cet onglet les évènements pour lesquels dolibarr créera automatiquement une action dans l'agenda. Si aucune case n'est cochée (par défaut), seules les actions manuelles seront incluses dans l'agenda.
+AgendaSetupOtherDesc=Cette page permet de configurer les autres paramètres du module agenda.
+ActionsEvents=Evènements pour lesquels creer une action
\ No newline at end of file
diff --git a/htdocs/webcal/webcalexport.php b/htdocs/webcal/webcalexport.php
index 05240bb95fc..9dbbdafce79 100644
--- a/htdocs/webcal/webcalexport.php
+++ b/htdocs/webcal/webcalexport.php
@@ -37,7 +37,7 @@ if (! $conf->webcal->enabled)
accessforbidden();
// Check config
-if (empty($conf->global->PHPWEBCALENDAR_URL))
+if (empty($conf->global->PHPWEBCALENDAR_PASSWORD_VCALEXPORT))
{
$user->getrights();
@@ -55,16 +55,14 @@ if (! $webcal->localdb->connected || ! $webcal->localdb->database_selected)
llxHeader();
if ($webcal->localdb->connected == 1 && $webcal->localdb->database_selected != 1)
{
- print '