Proper handling of authenticated state on important pages.
[Project_webapp.git] / includes / account.php
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9e725c3ac9bbfd753afdef4924492a8f6f2a7744 100644 (file)
@@ -0,0 +1,11 @@
+<?php
+global $is_logged_in;
+if (!$is_logged_in) {
+    echo "Please login first.";
+    redirect("index.php?page=login", 2);
+    exit();
+}
+?>
+
+<h2>Mes informations</h2>
+<h2>Mes re&#769;versations</h2>