1 | <?php
|
---|
2 | /*
|
---|
3 | $Id: icalendar.php 1916 2008-01-04 08:23:14Z andrewsimpson $
|
---|
4 |
|
---|
5 | (c) 2004 - 2008 Andrew Simpson <andrew.simpson at paradise.net.nz>
|
---|
6 |
|
---|
7 | WebCollab
|
---|
8 | ---------------------------------------
|
---|
9 | This program is free software; you can redistribute it and/or modify it under the
|
---|
10 | terms of the GNU General Public License as published by the Free Software Foundation;
|
---|
11 | either version 2 of the License, or (at your option) any later version.
|
---|
12 |
|
---|
13 | This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
---|
15 | PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License along with this
|
---|
18 | program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
---|
19 | Cambridge, MA 02139, USA.
|
---|
20 |
|
---|
21 | Function:
|
---|
22 | ---------
|
---|
23 |
|
---|
24 | iCalendar task handler
|
---|
25 |
|
---|
26 | */
|
---|
27 |
|
---|
28 | require_once('path.php');
|
---|
29 | require_once(BASE.'includes/security.php' );
|
---|
30 |
|
---|
31 |
|
---|
32 | //
|
---|
33 | // The action handler
|
---|
34 | //
|
---|
35 | if( ! isset($_REQUEST['action']) ){
|
---|
36 | error('iCalendar action handler', 'No request given' );
|
---|
37 | }
|
---|
38 |
|
---|
39 | //what do you want to do today =]
|
---|
40 | switch($_REQUEST['action'] ) {
|
---|
41 |
|
---|
42 | case 'todo':
|
---|
43 | include(BASE.'icalendar/icalendar_todo.php' );
|
---|
44 | break;
|
---|
45 |
|
---|
46 | case 'project':
|
---|
47 | include(BASE.'icalendar/icalendar_project.php' );
|
---|
48 | break;
|
---|
49 |
|
---|
50 | case 'all':
|
---|
51 | include(BASE.'icalendar/icalendar_all.php' );
|
---|
52 | break;
|
---|
53 |
|
---|
54 | //error case
|
---|
55 | default:
|
---|
56 | error('Calendar action handler', 'Invalid request given' );
|
---|
57 | break;
|
---|
58 | }
|
---|
59 |
|
---|
60 | ?>
|
---|