window.location.href = 'book_physical_therapy';"; } $branch_id = $_SESSION['branch']; if (!empty($_GET['branch'])) { $branch_id = $_GET['branch']; if (!is_numeric($branch_id)) { $branch_id = $_SESSION['branch']; } else { if ($branch_id == 1) { $branch_id = $_SESSION['branch']; } } } $today = date("Y-m-d"); if (!empty($_GET['date'])) { $today = $_GET['date']; if (DateTime::createFromFormat('Y-m-d', $today) == false) { $today = date("Y-m-d"); } } if ($branch_id == false) { require_once('work/files/book/2.php'); } else { $variable = 3; if (!empty($_GET['m']) && $_GET['m'] == 1) { require_once('work/files/book/5.php'); } elseif (strtotime($today) > strtotime('2024-03-10') && strtotime($today) < strtotime('2024-04-10')) { // for ramadan // require_once('work/files/book/4.php'); require_once('work/files/book/6.php'); } else { switch ($variable) { case 1: // from frist lunch require_once('work/files/book/1.php'); break; case 2: // from 17/02/2023 09:00 require_once('work/files/book/3.php'); break; case 3: // from 11/03/2024 09:00 require_once('work/files/book/7.php'); break; default: # code... break; } } }