X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=includes%2Fformreservations.php;h=e8a162c254e9e286d093f3f8107327130a949ca4;hb=f38123a5d3eafd9af6fb25e1dd5ccf29c5508b36;hp=4bca04c5c07935ce74b9184a27ce6d25d4aaf10b;hpb=77c2d82c70ae6b1629d372b3c4642cdc2a994698;p=Project_webapp.git diff --git a/includes/formreservations.php b/includes/formreservations.php index 4bca04c..e8a162c 100644 --- a/includes/formreservations.php +++ b/includes/formreservations.php @@ -1,12 +1,17 @@ "; + $_SESSION['login_referer'] = $_SERVER['HTTP_REFERER']; + redirect("index.php?page=login", 2); +} + +if (isset($form_cancel) && isset($form_flight_id) && isset($form_class_name) && + $is_logged_in) { $client_id = get_client_id($_SESSION['email']); global $connection; $sql_pquery = "delete from RESERVATIONS