@@ 146-152 (lines=7) @@ | ||
143 | ||
144 | if (can_file_be_removed($record)) |
|
145 | { |
|
146 | foreach ($_REQUEST as $request) |
|
147 | { |
|
148 | if (substr($request, 0, 4) == 'file') |
|
149 | { |
|
150 | attachment_remove($id, $permissions, intval(substr($request, 4))); |
|
151 | } |
|
152 | } |
|
153 | } |
|
154 | else |
|
155 | { |
@@ 55-66 (lines=12) @@ | ||
52 | { |
|
53 | debug_write_log(DEBUG_NOTICE, 'Send selected reminders.'); |
|
54 | ||
55 | foreach ($_REQUEST as $request) |
|
56 | { |
|
57 | if (substr($request, 0, 3) == 'rem') |
|
58 | { |
|
59 | $reminder = reminder_find(intval(substr($request, 3))); |
|
60 | ||
61 | if ($reminder) |
|
62 | { |
|
63 | reminder_send($reminder); |
|
64 | } |
|
65 | } |
|
66 | } |
|
67 | ||
68 | exit; |
|
69 | } |