diff --git a/catalog.php b/catalog.php
index 5bbf5f9..c979ff3 100644
--- a/catalog.php
+++ b/catalog.php
@@ -11,6 +11,32 @@ require_once 'core/classes/user.php';
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;
+}
+
$getitstarted = new PartyStarter;
$getitstarted->header();
?>
@@ -33,31 +59,31 @@ $getitstarted->header();
Category
- All categories
- Hats
- Shirts
- Pants
- Gears
- Packages
-
+ All categories
+ Hats
+ Shirts
+ Pants
+ Gears
+ Packages
+
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
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) {