diff --git a/catalog.php b/catalog.php index c979ff3..2aca8b7 100644 --- a/catalog.php +++ b/catalog.php @@ -13,28 +13,28 @@ $user = new User($con, $_SESSION['user']); } $possiblePages = [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11 + "hats", + "shirts", + "tshirts", + "pants", + "gears", + "packages", + "heads", + "torso", + "leftarm", + "rightarm", + "leftleg", + "rightleg" ]; -if(isset($_GET["p"])) { - $page = (int) $_GET["p"]; +if(isset($_GET["filter"])) { + $page = $_GET["filter"]; if(!in_array($page,$possiblePages)) { header('location: /catalog'); exit; } } else { - $page = 0; + $page = null; } $getitstarted = new PartyStarter; @@ -59,31 +59,32 @@ $getitstarted->header();

Category

- All categories - Hats - Shirts - Pants - Gears - Packages - + All categories + active">Hats + active">Shirts + active">T-shirts + active">Pants + active">Gears + active">Packages +