Add return flight booking cinematic and personal informations editing.
[Project_webapp.git] / includes / reservations.php
index 15beeacb5777c9442114277e9bd3a21b885ce332..3230f342122fa57f72c52b16cd9136d04359c1b8 100644 (file)
@@ -2,6 +2,7 @@
 global $is_logged_in;
 if (!$is_logged_in) {
     echo "Please login first. <br>";
+    $_SESSION['login_referer'] = $_SERVER['HTTP_REFERER'];
     redirect("index.php?page=login", 2);
     include('footer.html');
     exit();
@@ -63,10 +64,10 @@ if (empty($rows)) {
                         </form>
                       </td>\n";
         } else {
-            echo "Vol en cours";
+            echo "Vol en cours\n";
         }
         echo "  </tr>\n";
     }
-    echo "</table>";
+    echo "</table>\n";
 }
 ?>