diff -Nur -x '*.orig' -x '*.rej' smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordeagendas mezzanine_patched_smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordeagendas --- smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordeagendas 1969-12-31 18:00:00.000000000 -0600 +++ mezzanine_patched_smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordeagendas 2008-12-14 18:02:38.000000000 -0600 @@ -0,0 +1,21 @@ +{ + $OUT = ''; + my $agendas = $horde{agendas} || "disabled"; + + $OUT .="# Horde - Daily Agenda Reminders\n"; + if (defined $agendas && $agendas eq 'enabled') + { + + my $agendatime = $horde{agendatime} || "5"; + if ($agendatime <= "24") + { + $OUT .= "0 $agendatime * * * root /usr/bin/php -q /home/httpd/html/horde/kronolith/scripts/reminders.php"; + } else { + $OUT .= "# disabled - horde daily agendatime value of $horde{agendatime} is greater than 24. Value needs to be 0 - 24\n"; + } + + } else { + $OUT .= "# disabled\n"; + } +} + diff -Nur -x '*.orig' -x '*.rej' smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordereminders mezzanine_patched_smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordereminders --- smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordereminders 2008-06-12 00:22:54.000000000 -0500 +++ mezzanine_patched_smeserver-kronolith-2.2/root/etc/e-smith/templates/etc/crontab/hordereminders 2008-12-14 18:04:45.000000000 -0600 @@ -1,3 +1,18 @@ -# Horde - Alarms -*/5 * * * * root /usr/bin/php -q /home/httpd/html/horde/scripts/alarms.php +{ + $OUT = ''; + my $hordeadministration = $horde{Administration} || "disabled"; + my $reminders = $horde{reminders} || "enabled"; + + $OUT .="# Horde - Calendar Alarm Reminders\n"; + if (defined $hordeadministration && $hordeadministration eq 'enabled' && + $reminders eq 'enabled') + { + + my $remindertime = $horde{remindertime} || "5"; + + $OUT .="*/$remindertime * * * * root /usr/bin/php -q /home/httpd/html/horde/scripts/alarms.php"; + } else { + $OUT .= "# disabled\n"; + } +}