USES_evlist_class_repeat(); $Ev = new evRepeat($rp_id); DB_delete($_TABLES['evlist_remlookup'], array('eid', 'uid', 'rp_id'), array($Ev->Event->id, $uid, $rp_id)); } echo json_encode(array('reminder_set' => false)); exit; break; case 'getCalDay': USES_evlist_views(); $month = (int) $_GET['month']; $day = (int) $_GET['day']; $year = (int) $_GET['year']; $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0; $opt = isset($_GET['opt']) ? $_GET['opt'] : ''; $content = EVLIST_dayview($year, $month, $day, $cat, $cal, $opt); echo $content; exit; break; case 'getCalWeek': USES_evlist_views(); $month = (int) $_GET['month']; $day = (int) $_GET['day']; $year = (int) $_GET['year']; $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0; $opt = isset($_GET['opt']) ? $_GET['opt'] : ''; $content = EVLIST_weekview($year, $month, $day, $cat, $cal, $opt); echo $content; exit; break;
if (empty($year)) { $year = isset($_REQUEST['year']) ? (int) $_REQUEST['year'] : 0; } if (empty($month)) { $month = isset($_REQUEST['month']) ? (int) $_REQUEST['month'] : 0; } if (empty($day)) { $day = isset($_REQUEST['day']) ? (int) $_REQUEST['day'] : 0; } switch ($view) { case 'today': list($year, $month, $day) = explode('-', $_EV_CONF['_today']); $content = EVLIST_view('', $year, $month, $day); break; case 'pday': $content = EVLIST_dayview($year, $month, $day, $category, $calendar, 'print'); echo $content; exit; case 'day': $content .= EVLIST_view('day', $year, $month, $day, $category, $calendar); break; case 'pweek': $content = EVLIST_weekview($year, $month, $day, $category, $calendar, 'print'); echo $content; exit; case 'week': $content .= EVLIST_view('week', $year, $month, $day, $category, $calendar); break; case 'pmonth': $content = EVLIST_monthview($year, $month, $day, $category, $calendar, 'print'); echo $content;