blob: 9076b0c28967858c487066dbc1641b24d5be8384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- send_reminders.php.orig 2008-08-04 18:02:14.000000000 -0500
+++ send_reminders.php 2008-08-07 15:15:28.000000000 -0500
@@ -1,4 +1,4 @@
-#!/usr/local/bin/php -q
+#!/usr/bin/php -q
<?php
/* $Id: send_reminders.php,v 1.81.2.8 2008/02/18 17:42:02 cknudsen Exp $
*
@@ -313,6 +313,10 @@
translate ( 'could not find event id XXX in database.' ) ) . "\n";
return;
}
+ //Always send via ghosd
+ $name = $row[9];
+ $p = system("/usr/bin/notify.py NFO \"$name\"", $retval);
+
// Send mail. We send one user at a time so that we can switch
// languages between users if needed (as well as HTML vs plain text).
@@ -475,7 +479,6 @@
}
$subject = translate ( 'Reminder' ) . ': ' . stripslashes ( $name );
-
if ( $debug )
echo "Sending mail to $recip (in $userlang).<br />\n";
@@ -570,7 +573,9 @@
}
// Factor in repeats if set.
if ( $repeats > 0 && $times_sent <= $repeats )
- $remind_time += ( $reminder['duration'] * 60 * $times_sent );
+ $remind_time = ($reminder['duration']*60 + $lastsent );
+// Don't know what this is line is doing, but the above seems better to me
+// $remind_time += ( $reminder['duration'] * 60 * $times_sent );
if ( $debug )
echo ( empty ( $offset_msg ) ? '' : $offset_msg . '<br />' ) . '
|