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
00045 $_REQUEST["app"] = str_replace(array(".", "/", "\\", "%"), "", $_REQUEST["app"]);
00046
00053 $modulDir = "/modules/dateplaner";
00054
00061
00062 require_once ('./include/inc.header.php');
00063
00064
00065 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
00066 {
00067 $ilias->raiseError($lng->txt("msg_not_available_for_anon"),$ilias->error_obj->MESSAGE);
00068 }
00069
00070
00071
00072
00073
00074
00075 define("DATEPLANER_ROOT_DIR", $modulDir );
00076
00077
00078 require_once ('.'.DATEPLANER_ROOT_DIR.'/classes/class.ilCalInterface.php');
00079 $Interface = new ilCalInterface($ilias);
00080
00081
00082 if(!$uptext) {
00083 $uptext = $Interface->getFrameDec();
00084 }
00085
00086
00087
00088 $lng->loadLanguageModule("dateplaner");
00089 $DP_language = $lng->text;
00090
00091
00092 $DP_UId = $Interface->getUId();
00093 $DP_Lang = $Interface->getLang();
00094 $DP_Skin = $Interface->getSkin();
00095 $DP_Style = $Interface->getStyle();
00096 $DP_StyleFname = $Interface->getStyleFname();
00097 $DP_GroupIds = $Interface->getGroupIds();
00098 $DP_dlI = $Interface->getDpDBHandler ();
00099 $app = $_REQUEST["app"];
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 header('Content-type: text/html; charset=UTF-8');
00115
00116
00117 require ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.dp.header.php');
00118
00119 require ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.output.php');
00120
00121
00122 include_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.session.php');
00123
00124
00125
00126
00127
00128
00129 include ('.'.DATEPLANER_ROOT_DIR.'/classes/class.ilMiniCal.php');
00130
00131
00132 if (!$_GET["month"])
00133 {
00134 $month = date(m);
00135 $year = date(Y);
00136 }
00137 else
00138 {
00139 $month = $_GET["month"];
00140 $year = $_GET["year"];
00141 }
00142 $MiniCal = new ilMiniCal();
00143
00144 $CALENDAR = $MiniCal->show($month, $year, $MiniCal);
00145
00146
00147 switch($_REQUEST["app"]) {
00148 case False :
00149 case 'inbox':
00150
00151 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]];
00152
00153 $locator = $Interface->showLocator($tpl, $lng,$app);
00154 include ('.'.DATEPLANER_ROOT_DIR.'/inbox.php');
00155
00156
00157 break;
00158 case 'date':
00159
00160 if ($_REQUEST["date_id"]){
00161 $DateArray = $DB->getDate ($_REQUEST["date_id"], $DP_UId);
00162 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]]." : ".$DateArray[8];
00163 } else {
00164 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]]." : ".@$DateValues[shorttext];
00165 }
00166
00167 include ('.'.DATEPLANER_ROOT_DIR.'/date.php');
00168
00169 break;
00170 default :
00171
00172 $PAGETITLE = $DP_language[app_.$_REQUEST["app"]];
00173 $locator = $Interface->showLocator($tpl, $lng,$app);
00174 include ('.'.DATEPLANER_ROOT_DIR.'/'.$_REQUEST["app"].'.php');
00175
00176
00177 }
00178
00179 ?>
00180