$dms, 'user'=>$user)); $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); if (!$accessop->check_view_access($view, $_GET)) { UI::exitError(getMLText("calendar"),getMLText("access_denied")); } if ($_GET["mode"]) $mode=$_GET["mode"]; // get required date else use current $currDate = time(); if (isset($_GET["year"])&&is_numeric($_GET["year"])) $year=$_GET["year"]; else $year = (int)date("Y", $currDate); if (isset($_GET["month"])&&is_numeric($_GET["month"])) $month=$_GET["month"]; else $month = (int)date("m", $currDate); if (isset($_GET["day"])&&is_numeric($_GET["day"])) $day=$_GET["day"]; else $day = (int)date("d", $currDate); if($view) { $view->setParam('mode', $mode); $view->setParam('year', $year); $view->setParam('month', $month); $view->setParam('day', $day); $view->setParam('firstdayofweek', $settings->_firstDayOfWeek); $view($_GET); exit; } ?>