From fdf24cd20058735664fe0166ebe1a699020ff553 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 13:00:43 +0100 Subject: [PATCH 1/2] ddd --- catalog.php | 2 +- error.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/catalog.php b/catalog.php index c979ff3..526f4ab 100644 --- a/catalog.php +++ b/catalog.php @@ -30,7 +30,7 @@ $possiblePages = [ if(isset($_GET["p"])) { $page = (int) $_GET["p"]; if(!in_array($page,$possiblePages)) { - header('location: /catalog'); + header('location: /error?err=404'); exit; } } else { diff --git a/error.php b/error.php index 61afa0c..0f74787 100644 --- a/error.php +++ b/error.php @@ -18,33 +18,33 @@ if(!isset($conType)) { header("Location: /"); } if($conType == 404) { -$errorImage = ""; +$errorImage = "https://www.freeiconspng.com/thumbs/minions-png/evil-minions-png-24.png"; $errorTextMain = "404 Not found"; $errorTextExtra = "Whoops! Our minions couldn't find the page you were looking for..."; $errorButton = "
Go back to ".$sitename." HQ
"; } if($conType == 403) { -$errorImage = ""; +$errorImage = "https://i.pinimg.com/originals/c4/d7/55/c4d7559b99559a3dc0f4c43e4e589451.png"; $errorTextMain = "403 Forbidden"; $errorTextExtra = "Get out of here! Confidential data.."; $errorButton = "
Go back to ".$sitename." HQ
"; } if($conType == 400) { -$errorImage = ""; -$errorTextMain = "ummmmmmmmmmmm"; +$errorImage = "https://www.clipartmax.com/png/full/185-1850059_minion-41-despicable-me-minions-thinking.png"; +$errorTextMain = "400 Bad Request"; $errorTextExtra = "ummmmmmmmmmmmmm 400 ummmmmmmmmmmmm"; $errorButton = "
Go back to ".$sitename." HQ
"; } if($conType == 502) { -$errorImage = ""; +$errorImage = "https://www.freeiconspng.com/thumbs/minions-png/minions-png-file-8.png"; $errorTextMain = "502 Bad Gateway"; $errorTextExtra = "How does this even work for you if it's using PHP."; $errorButton = "
Go back to ".$sitename." HQ
"; } if($conType == 504) { -$errorImage = ""; +$errorImage = "https://static.wikia.nocookie.net/mycun-the-movie/images/f/fc/Dave_the_Minion.png/revision/latest/scale-to-width-down/1200"; $errorTextMain = "504 Gateway Time-out"; $errorTextExtra = "TestTube reference."; $errorButton = "
Go back to ".$sitename." HQ
"; @@ -61,7 +61,7 @@ $getitstarted->header(); <?php echo $pagename; ?> | <?php echo $sitename; ?>
- + <?php echo htmlspecialchars($errorTextMain); ?>

From 332c693a32c61a8838f0aa1368238021fa620a73 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 13:15:17 +0100 Subject: [PATCH 2/2] Update about.php --- about.php | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/about.php b/about.php index b97fda6..55aa765 100644 --- a/about.php +++ b/about.php @@ -1,4 +1,27 @@ + + + + header(); + ?> + + <?php echo $pagename; ?> | <?php echo $sitename; ?> + +

yes i am AGAIN still not hired to make html

+

here is all the devs

+

"; + } ?>and not u cause you stink 😂😂😂😂😂😂😂😂😂😂😂😂😂 + + + \ No newline at end of file