} } } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'offline') { $school = new schoolBIT(); include 'header.inc.php'; require_once 'data.php'; $tables = unserialize($tables_s); $t = json_decode($t_s); $t1 = unserialize($t[0]); $t2 = unserialize($t[1]); $week = 0; if (isset($_REQUEST['week'])) { $week = (int) $_REQUEST['week']; if (!$week) { $week = $school->getCurrentWeek()[0]; } } include 'offline.inc.php'; include 'footer.inc.php'; exit; } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'ical') { require_once 'vendor/iCalcreator.php'; $school = new schoolBIT(); include 'header.inc.php'; require_once 'data.php'; $tables = unserialize($tables_s); $t = json_decode($t_s); $t1 = unserialize($t[0]); $t2 = unserialize($t[1]);