From aef0c4a91b80adcec3e017b7f5617b59606fe964 Mon Sep 17 00:00:00 2001 From: "ns77@siliconpin.com" Date: Mon, 1 Sep 2025 11:39:43 +0000 Subject: [PATCH] add agent panel --- CONTENT/ROOT_URI/Agent/Dashboard.php | 2 +- CONTENT/ROOT_URI/Agent/Receive.php | 8 ++++---- CONTENT/ROOT_URI/Agent/report.php | 8 ++++---- CONTENT/ROOT_URI/Agent/transaction.php | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTENT/ROOT_URI/Agent/Dashboard.php b/CONTENT/ROOT_URI/Agent/Dashboard.php index ceef194..c5affa5 100644 --- a/CONTENT/ROOT_URI/Agent/Dashboard.php +++ b/CONTENT/ROOT_URI/Agent/Dashboard.php @@ -1,5 +1,5 @@ window.location.href = '/Agent/agent-login'"; exit; } diff --git a/CONTENT/ROOT_URI/Agent/Receive.php b/CONTENT/ROOT_URI/Agent/Receive.php index 247fd8b..3b3566e 100644 --- a/CONTENT/ROOT_URI/Agent/Receive.php +++ b/CONTENT/ROOT_URI/Agent/Receive.php @@ -1,8 +1,8 @@ window.location.href = '/Agent/agent-login'"; - exit; - } +if (!isset($_SESSION['user_id']) || empty($_SESSION['user_id'])) { + echo ""; + exit; +} ?>

New Payment

diff --git a/CONTENT/ROOT_URI/Agent/report.php b/CONTENT/ROOT_URI/Agent/report.php index b1921a9..7eec3c2 100644 --- a/CONTENT/ROOT_URI/Agent/report.php +++ b/CONTENT/ROOT_URI/Agent/report.php @@ -1,8 +1,8 @@ window.location.href = '/Agent/agent-login'"; - exit; - } +if (!isset($_SESSION['user_id']) || empty($_SESSION['user_id'])) { + echo ""; + exit; +} ?>
diff --git a/CONTENT/ROOT_URI/Agent/transaction.php b/CONTENT/ROOT_URI/Agent/transaction.php index 1bd6d0b..9536635 100644 --- a/CONTENT/ROOT_URI/Agent/transaction.php +++ b/CONTENT/ROOT_URI/Agent/transaction.php @@ -1,5 +1,5 @@ window.location.href = '/Agent/agent-login'"; exit; }