From a67fbbdaf52325f951030c2335f1f2aa0666c0a1 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 28 Feb 2026 18:34:31 +0000 Subject: [PATCH] s22 --- dashboard.php | 4 ++-- discover.php | 8 ++++++-- edit_profile.php | 4 ++-- messages.php | 4 ++-- notifications.php | 4 ++-- partners.php | 13 +++++++++---- portfolio.php | 17 +++++++++++------ startup_details.php | 4 ++-- startups.php | 4 ++-- 9 files changed, 38 insertions(+), 24 deletions(-) diff --git a/dashboard.php b/dashboard.php index 2230015..21b5eef 100644 --- a/dashboard.php +++ b/dashboard.php @@ -126,8 +126,8 @@ function number_get_formatted($num) { Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -304,4 +304,4 @@ function number_get_formatted($num) { - \ No newline at end of file + diff --git a/discover.php b/discover.php index 4c46aa1..80a9a70 100644 --- a/discover.php +++ b/discover.php @@ -11,6 +11,10 @@ $user = $stmt->fetch(); if (!$user) { header('Location: login.php'); exit; } $user_role = $user['role']; +if ($user_role === 'founder') { + header('Location: dashboard.php'); + exit; +} $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; // Leaderboard: Most Followed @@ -100,8 +104,8 @@ $browseStartups = $stmt->fetchAll(); Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -203,4 +207,4 @@ $browseStartups = $stmt->fetchAll(); - + \ No newline at end of file diff --git a/edit_profile.php b/edit_profile.php index a017844..9aade23 100644 --- a/edit_profile.php +++ b/edit_profile.php @@ -80,8 +80,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -161,4 +161,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { - + \ No newline at end of file diff --git a/messages.php b/messages.php index 3d197fd..da71b68 100644 --- a/messages.php +++ b/messages.php @@ -125,8 +125,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content']) && $active Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -255,4 +255,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content']) && $active - + \ No newline at end of file diff --git a/notifications.php b/notifications.php index 2c873d9..1ef08cf 100644 --- a/notifications.php +++ b/notifications.php @@ -48,8 +48,8 @@ $notifications = $stmt->fetchAll(); Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -129,4 +129,4 @@ $notifications = $stmt->fetchAll(); - + \ No newline at end of file diff --git a/partners.php b/partners.php index 2e56158..9146f15 100644 --- a/partners.php +++ b/partners.php @@ -119,9 +119,14 @@ if (!$search) { usort($browseCandidates, function($a, $b) { return $b['score'] <
@@ -265,4 +270,4 @@ if (!$search) { usort($browseCandidates, function($a, $b) { return $b['score'] < } - \ No newline at end of file + diff --git a/portfolio.php b/portfolio.php index 9113472..bfc2942 100644 --- a/portfolio.php +++ b/portfolio.php @@ -52,9 +52,14 @@ foreach ($myInvestments as $inv) {
@@ -100,8 +105,8 @@ foreach ($myInvestments as $inv) {

No investments yet

-

Start building your portfolio by discovering promising startups.

- Discover Startups +

Start your journey by backing the next generation of founders.

+ Go to Discovery Hub
@@ -147,4 +152,4 @@ foreach ($myInvestments as $inv) { - + \ No newline at end of file diff --git a/startup_details.php b/startup_details.php index 63ec555..bc6b2d8 100644 --- a/startup_details.php +++ b/startup_details.php @@ -135,8 +135,8 @@ if ($canSeeHistory) { Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -368,4 +368,4 @@ if ($canSeeHistory) { - \ No newline at end of file + diff --git a/startups.php b/startups.php index 2b44ddf..a47f04a 100644 --- a/startups.php +++ b/startups.php @@ -97,8 +97,8 @@ if ($user['role'] === 'founder') { Browse Startups Portfolio + Discovery Hub - Discovery Hub Messages
@@ -199,4 +199,4 @@ if ($user['role'] === 'founder') { - + \ No newline at end of file