";
} else {
$del = sql_query("DELETE FROM grr_entry WHERE (end_time < ".getSettingValue('begin_bookings').")");
$del = sql_query("DELETE FROM grr_repeat WHERE end_date < ".getSettingValue("begin_bookings"));
}
if (!saveSetting("end_bookings", $_GET['end_bookings'])) {
echo "Erreur lors de l'enregistrement de end_bookings !
";
} else {
$del = sql_query("DELETE FROM grr_entry WHERE start_time > ".getSettingValue("end_bookings"));
$del = sql_query("DELETE FROM grr_repeat WHERE start_time > ".getSettingValue("end_bookings"));
}
header("Location: ./admin_config.php");
} else if (isset($_GET['valid']) and ($_GET['valid'] == "no")) {
header("Location: ./admin_config.php");
}
# print the page header
print_header("","","","",$type="with_session", $page="admin");
echo "
".$vocab["msg_del_bookings"]."
"; ?>