function configCalendar() { $team = $_POST['teamname']; $this->team = $team; $this->title = 'Opensource Calendar'; $this->addYUI = 1; $this->addAutocomplete = 1; $this->onCall = 1; $this->menu = 'backup'; $this->view = 'calendar/calendar'; $this->pagetitle = 'Opensource Calendar'; $dbh = Connection::cal_ro(); $this->action = 'configCalendar'; $this->next_action = 'configEdit'; $this->caltype = 'oncall'; $this->timeaction = 'configTime'; $obj_assignee = new calendarConfig(); $teamid = $obj_assignee->getTeamid($dbh, $team); $admingrp = $obj_assignee->getAdmingroup($dbh, $team); $this->is_allowed = $this->checkUserPermission($admingrp); $this->svn_url = __SVN_URL . "dp/oncall.txt?view=log"; $month = isset($_REQUEST['month']) && $_REQUEST['month'] != '' ? $_REQUEST['month'] : date("m"); $year = isset($_REQUEST['year']) && $_REQUEST['year'] != '' ? $_REQUEST['year'] : date("Y"); $this->month = $month; $this->year = $year; $this->showTime = 1; $this->next_action = 'configEdit'; $obj_cal = new calender($month, $year); $this->days = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); $obj_cal->getDetails(); $this->assignee = $obj_assignee->getConfigList($dbh, $teamid, $month, $year); $this->teamlist = $obj_assignee->getTeamlist($dbh); $this->timezones = $obj_assignee->getTimeDetails($dbh); $this->oncall_tab = " class='selected'"; $this->cal = $obj_cal; if ($_REQUEST['ftwiki'] == '1') { $this->hideheader = 1; $this->hideothers = 1; } }