diff --git a/_auth.php b/_auth.php
new file mode 100644
index 0000000..deba92a
--- /dev/null
+++ b/_auth.php
@@ -0,0 +1,28 @@
+ $email];
+ header('Location: index.php');
+ exit();
+}
+
+function logout() {
+ session_destroy();
+ header('Location: login.php');
+ exit();
+}
+
+function check_auth() {
+ if (!isset($_SESSION['user'])) {
+ header('Location: login.php');
+ exit();
+ }
+}
+
+
+
+if (isset($_GET['logout'])) {
+ logout();
+}
diff --git a/_partials/footer.php b/_partials/footer.php
new file mode 100644
index 0000000..142f3b9
--- /dev/null
+++ b/_partials/footer.php
@@ -0,0 +1,4 @@
+
+
+