louie_branch #59

Merged
MarkHipe merged 2 commits from louie_branch into main 2024-04-16 16:04:40 +08:00
6 changed files with 25 additions and 1 deletions
Showing only changes of commit 82801fed8a - Show all commits

View File

@ -12,7 +12,7 @@ if ($_SESSION["userId"] <> "") {
header("location: login.php");
}
if ($_SESSION["isVendor"] == true) {
header("location: vendor-settings.php");
header("location: vendor-dashboard.php");
}

View File

@ -28,6 +28,11 @@ if (is_array($vendorOrderss)) {
echo "Unknown type or no 'message' property found.";
}
if ($_SESSION["isCustomer"] == true) {
header("location: user-profile.php");
}
?>
<!--=========================================================
Item Name: oBanana B2B - Elevate Your Business

View File

@ -30,6 +30,11 @@ if (is_array($vendorDecode)) {
} else {
echo "Unknown type or no 'message' property found.";
}
if ($_SESSION["isCustomer"] == true) {
header("location: user-profile.php");
}
?>
<!DOCTYPE html>
<html lang="en">

View File

@ -24,6 +24,10 @@ if (isset($_SESSION["token"])) {
}
}
if ($_SESSION["isCustomer"] == true) {
header("location: user-profile.php");
}
$vendorLoginId = searchVendorbyLoginId($_SESSION["userId"]);
$vendorLoginIdjson = json_decode($vendorLoginId, true);
if (isset($vendorLoginIdjson['results'][0])) {

View File

@ -27,6 +27,11 @@ if (is_array($vendorOrderss)) {
} else {
echo "Unknown type or no 'message' property found.";
}
if ($_SESSION["isCustomer"] == true) {
header("location: user-profile.php");
}
?>
<!DOCTYPE html>
<html lang="en">

View File

@ -20,6 +20,11 @@ if (isset($_GET['id'])) {
}
$result = getProduct($_SESSION['newProductId']);
$array = json_decode($result, true);
if ($_SESSION["isCustomer"] == true) {
header("location: user-profile.php");
}
?>
<!DOCTYPE html>
<html lang="en">