egroupware_official/calendar/index.php

35 lines
1.6 KiB
PHP
Raw Normal View History

2000-08-18 05:24:22 +02:00
<?php
/**************************************************************************\
* phpGroupWare - Calendar *
* http://www.phpgroupware.org *
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
* http://www.radix.net/~cknudsen *
2001-01-17 13:35:43 +01:00
* Modified by Mark Peters <skeeter@phpgroupware.org> *
2000-08-18 05:24:22 +02:00
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
2001-01-21 05:16:15 +01:00
$phpgw_info["flags"]["currentapp"] = "calendar";
$phpgw_info["flags"]["noheader"] = True;
$phpgw_info["flags"]["nonavbar"] = True;
$phpgw_info["flags"]["noappheader"] = True;
$phpgw_info["flags"]["noappfooter"] = True;
$phpgw_info["flags"]["nofooter"] = True;
2000-08-18 05:24:22 +02:00
include("../header.inc.php");
2000-11-10 23:49:48 +01:00
2001-01-21 14:15:21 +01:00
$newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"];
2001-01-21 15:02:29 +01:00
if ($newpage=="index.php") {
2001-01-21 14:57:21 +01:00
$newpage = "month.php";
$phpgw->preferences->change("calendar","defaultcalendar","month.php");
$phpgw->preferences->commit();
}
2001-01-21 14:15:21 +01:00
Header("Location: ".$newpage."?".$QUERY_STRING);
2001-01-21 05:16:15 +01:00
$phpgw->common->phpgw_exit();
2000-09-28 02:17:13 +02:00
?>