source: trunk/gm_system/calendar.php@ 638

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