= $start_time && $current_time <= $end_time); } // Set common headers for all cases header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); // Check the day of the week and time switch ($day) { case 'Saturday': case 'Sunday': // Redirect the user to a different URL with a temporary (302) redirect and HTTPS header('Location: https://tiny.cc/csitschedule', true, 302); exit; break; default: if (isTimeBetween($time)) { // Redirect the user to the first URL with a temporary (302) redirect and HTTPS header('Location: https://forms.gle/ia74VKh36EG6tqyo6', true, 302); exit; } else { // Redirect the user to the second URL with a temporary (302) redirect and HTTPS header('Location: https://tiny.cc/csitschedule', true, 302); exit; } break; } } performRedirection($current_time, $day_of_week); ?>