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; }