@@ -85,7 +43,7 @@
For NGOs
Access a steady stream of quality food donations from local restaurants. Reduce your operational costs, expand your reach, and focus on what you do best: serving the community.
-
Register your NGO
+
Register your NGO

@@ -100,7 +58,7 @@
For Restaurants
Reduce food waste, gain tax benefits, and build a positive brand image. Donating your surplus food is simple, efficient, and makes a tangible impact in your local community.
-
Register your Restaurant
+
Register your Restaurant

@@ -135,16 +93,4 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/login.php b/login.php
new file mode 100644
index 0000000..c6f9dec
--- /dev/null
+++ b/login.php
@@ -0,0 +1,71 @@
+prepare("SELECT * FROM users WHERE email = ?");
+ $stmt->execute([$email]);
+ $user = $stmt->fetch();
+
+ if ($user && password_verify($password, $user['password'])) {
+ session_start();
+ $_SESSION['user_id'] = $user['id'];
+ $_SESSION['user_email'] = $user['email'];
+ header("Location: dashboard.php");
+ exit;
+ } else {
+ $errors[] = 'Invalid email or password';
+ }
+ } catch (PDOException $e) {
+ $errors[] = "Database error: " . $e->getMessage();
+ }
+ }
+}
+?>
+
+
+
+
+
\ No newline at end of file
diff --git a/logout.php b/logout.php
new file mode 100644
index 0000000..321e610
--- /dev/null
+++ b/logout.php
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/partials/footer.php b/partials/footer.php
new file mode 100644
index 0000000..73e1de5
--- /dev/null
+++ b/partials/footer.php
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+