<?php
$host = '162.55.65.66';
$db   = 'flightbo_game';
$user = 'flightbo_game';
$pass = 'flightbo_game';
$conn = mysqli_connect($host, $user, $pass, $db);
$new_end_time = date('Y-m-d H:i:s', strtotime('+4 hours'));
mysqli_query($conn, "UPDATE matches SET end_time = '$new_end_time' WHERE status = 1");
mysqli_close($conn);
echo "All active match end times updated to $new_end_time.";
