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