Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00039
00040 if (is_array($_POST))
00041 {
00042 foreach($_POST as $k => $v)
00043 {
00044
00045 $_POST[$k] = strip_tags($_POST[$k]);
00046 }
00047 }
00048
00056 $_REQUEST["app"] = str_replace(array(".", "/", "\\", "%"), "", $_REQUEST["app"]);
00057
00064 $modulDir = "/calendar";
00065
00072
00073 require_once ('./include/inc.header.php');
00074
00075
00076 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
00077 {
00078 $ilias->raiseError($lng->txt("msg_not_available_for_anon"),$ilias->error_obj->MESSAGE);
00079 }
00080
00081
00082
00083
00084
00085
00086 define("DATEPLANER_ROOT_DIR", $modulDir );
00087
00088
00089 require_once ('.'.DATEPLANER_ROOT_DIR.'/classes/class.ilCalInterface.php');
00090 $Interface = new ilCalInterface($ilias);
00091
00092
00093 if(!$uptext) {
00094 $uptext = $Interface->getFrameDec();
00095 }
00096
00097
00098
00099 $lng->loadLanguageModule("dateplaner");
00100 $DP_language = $lng->text;
00101
00102
00103 $DP_UId = $Interface->getUId();
00104 $DP_Lang = $Interface->getLang();
00105 $DP_Skin = $Interface->getSkin();
00106 $DP_Style = $Interface->getStyle();
00107 $DP_StyleFname = $Interface->getStyleFname();
00108 $DP_GroupIds = $Interface->getGroupIds();
00109 $DP_dlI = $Interface->getDpDBHandler ();
00110 $app = $_REQUEST["app"];
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 header('Content-type: text/html; charset=UTF-8');
00126
00127
00128 require ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.dp.header.php');
00129
00130 require ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.output.php');
00131
00132
00133 include_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.session.php');
00134
00135
00136
00137
00138
00139
00140 include ('.'.DATEPLANER_ROOT_DIR.'/classes/class.ilMiniCal.php');
00141
00142
00143 if (!$_GET["month"])
00144 {
00145 $month = date(m);
00146 $year = date(Y);
00147 }
00148 else
00149 {
00150 $month = $_GET["month"];
00151 $year = $_GET["year"];
00152 }
00153 $MiniCal = new ilMiniCal();
00154
00155 $CALENDAR = $MiniCal->show($month, $year, $MiniCal);
00156
00157
00158 switch($_REQUEST["app"]) {
00159 case False :
00160 case 'inbox':
00161
00162 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]];
00163
00164 $locator = $Interface->showLocator($tpl, $lng,$app);
00165 include ('.'.DATEPLANER_ROOT_DIR.'/inbox.php');
00166
00167
00168 break;
00169 case 'date':
00170
00171 if ($_REQUEST["date_id"]){
00172 $DateArray = $DB->getDate ($_REQUEST["date_id"], $DP_UId);
00173 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]]." : ".$DateArray[8];
00174 } else {
00175 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]]." : ".@$DateValues[shorttext];
00176 }
00177
00178 include ('.'.DATEPLANER_ROOT_DIR.'/date.php');
00179
00180 break;
00181 default :
00182
00183 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]];
00184 $locator = $Interface->showLocator($tpl, $lng,$app);
00185 include ('.'.DATEPLANER_ROOT_DIR.'/'.$_REQUEST["app"].'.php');
00186
00187
00188 }
00189
00190 ?>
00191