From 33430e7263bfefbd9dd20524ee9843f871f8db1b Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 12:37:15 +0100 Subject: [PATCH 1/4] replaced navbar logo width/height to max-width/max-height for best!! --- css/global.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css/global.css b/css/global.css index c7f6ead..99c4423 100644 --- a/css/global.css +++ b/css/global.css @@ -1,6 +1,6 @@ .headerLogo{ background-image: url(/assets/icons/Grublox.png); background-size: 131px 30px; - width: 131px; - height: 30px; + max-width: 131px; + max-height: 30px; } \ No newline at end of file From 443ef86fd2f92a6c049f2cb58848946738cb088a Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 12:39:38 +0100 Subject: [PATCH 2/4] fix --- error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.php b/error.php index 8ebc418..61afa0c 100644 --- a/error.php +++ b/error.php @@ -14,7 +14,7 @@ $conType = $_POST['err']; } else { $conType = $_GET['err']; } -if(isset($conType)) { +if(!isset($conType)) { header("Location: /"); } if($conType == 404) { From 4755e666c7ffe3574d54f8aabbf124e6ed1e8fc1 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 12:45:30 +0100 Subject: [PATCH 3/4] made working browsing side bar --- catalog.php | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/catalog.php b/catalog.php index d40ced1..0f3704f 100644 --- a/catalog.php +++ b/catalog.php @@ -11,6 +11,13 @@ require_once 'core/classes/user.php'; if (isset($_SESSION['user'])) { $user = new User($con, $_SESSION['user']); } + +if(isset($_GET["p"])) { + $page = (int) $_GET["p"]; +} else { + $page = 0; +} + $getitstarted = new PartyStarter; $getitstarted->header(); ?> @@ -33,31 +40,31 @@ $getitstarted->header();

Category

- All categories - Hats - Shirts - Pants - Gears - Packages - + All categories + Hats + Shirts + Pants + Gears + Packages +
  • From 4a8afe89d0bf326de7374901fca986d43b9c64b3 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 12:47:04 +0100 Subject: [PATCH 4/4] f --- catalog.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/catalog.php b/catalog.php index 0f3704f..180b39d 100644 --- a/catalog.php +++ b/catalog.php @@ -12,8 +12,27 @@ if (isset($_SESSION['user'])) { $user = new User($con, $_SESSION['user']); } +$possiblePages = [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11 +]; + if(isset($_GET["p"])) { $page = (int) $_GET["p"]; + if(!in_array($page,$possiblePages)) { + header('location: /catalog'); + exit; + } } else { $page = 0; }