Line | |
---|
1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * eGroupWare * |
---|
4 | * http://www.egroupware.org * |
---|
5 | * Written by Mark Peters <skeeter@phpgroupware.org> * |
---|
6 | * -------------------------------------------- * |
---|
7 | * This program is free software; you can redistribute it and/or modify it * |
---|
8 | * under the terms of the GNU General Public License as published by the * |
---|
9 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
10 | * option) any later version. * |
---|
11 | \**************************************************************************/ |
---|
12 | |
---|
13 | // Delete all records for a user |
---|
14 | if((int)$_POST['new_owner'] == 0) |
---|
15 | { |
---|
16 | ExecMethod('calendar.bocalendar.delete_calendar',(int)$_POST['account_id']); |
---|
17 | } |
---|
18 | else |
---|
19 | { |
---|
20 | ExecMethod('calendar.bocalendar.change_owner', |
---|
21 | Array( |
---|
22 | 'old_owner' => (int)$_POST['account_id'], |
---|
23 | 'new_owner' => (int)$_POST['new_owner'] |
---|
24 | ) |
---|
25 | ); |
---|
26 | } |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.