From 5f1aa3ab3614f14d32dbab6473add0d62ac10b7b Mon Sep 17 00:00:00 2001 From: Jun Barroga Date: Tue, 23 Apr 2024 09:38:06 +0800 Subject: [PATCH] Fix Variable and Variation Bugs --- admin/vendor-profile.php | 36 +++++++++++++++++++++++++++++------- product-left-sidebar.php | 9 +++++---- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/admin/vendor-profile.php b/admin/vendor-profile.php index 11acc9f..5e487f6 100644 --- a/admin/vendor-profile.php +++ b/admin/vendor-profile.php @@ -73,12 +73,12 @@ if (isset($_SESSION["token"])) { $issued_at_time = $token_data->iat; $expiration_time = $token_data->exp; - $renewal_time = $issued_at_time + 3300; + $renewal_time = $issued_at_time + 3000; - if (time() >= $renewal_time || time() >= $expiration_time) { - header("Location: token-renew.php"); - exit; - } + // if (time() >= $renewal_time || time() >= $expiration_time) { + // header("Location: token-renew.php"); + // exit; + // } } // $token = loginRenew($_SESSION["email"], $_SESSION["password"], $token); // $_SESSION["token"] = $token; @@ -114,7 +114,7 @@ if (isset($_SESSION["token"])) { - + @@ -214,6 +235,7 @@ if (isset($_SESSION["token"])) { ?>
+
diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 2484b5d..8819a34 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -408,7 +408,7 @@ if (isset($_GET['id'])) {