File inc/events.inc.php changed (mode: 100644) (index ef94bf5..6855f73) |
... |
... |
function rg_event_add($db, $event) |
131 |
131 |
/* |
/* |
132 |
132 |
* Process an event |
* Process an event |
133 |
133 |
*/ |
*/ |
134 |
|
function rg_event_process($db, $event) |
|
|
134 |
|
function rg_event_process($db, $ev_id, $event) |
135 |
135 |
{ |
{ |
136 |
136 |
global $rg_event_split_functions; |
global $rg_event_split_functions; |
137 |
137 |
|
|
138 |
138 |
rg_prof_start("event_process"); |
rg_prof_start("event_process"); |
139 |
|
rg_log_enter("event_process: event=" . rg_array2string($event)); |
|
|
139 |
|
rg_log_enter("event_process: ev_id=$ev_id" |
|
140 |
|
. " event=" . rg_array2string($event)); |
140 |
141 |
|
|
141 |
142 |
$ret = FALSE; |
$ret = FALSE; |
142 |
143 |
while (1) { |
while (1) { |
|
... |
... |
function rg_event_process_queue($db, &$notify_list) |
256 |
257 |
$ev['prio'] = $row['prio']; |
$ev['prio'] = $row['prio']; |
257 |
258 |
$ev['itime'] = $row['itime']; |
$ev['itime'] = $row['itime']; |
258 |
259 |
|
|
259 |
|
$r = rg_event_process($db, $ev); |
|
|
260 |
|
$r = rg_event_process($db, $row['id'], $ev); |
260 |
261 |
if ($r !== TRUE) { |
if ($r !== TRUE) { |
261 |
262 |
if ($ev['debug'] == 1) |
if ($ev['debug'] == 1) |
262 |
263 |
break; |
break; |