From af7ad204cab411249206df65d50acc27a6bf73e2 Mon Sep 17 00:00:00 2001 From: ui0ppk Date: Sat, 4 Feb 2023 23:40:50 +0200 Subject: [PATCH] have to --- error.php | 41 +++++++++++++++++++++++++++++++++++++++-- home.php | 5 ++++- user.php | 22 +++++++++------------- 3 files changed, 52 insertions(+), 16 deletions(-) diff --git a/error.php b/error.php index 7bb8789..12359d3 100644 --- a/error.php +++ b/error.php @@ -1,2 +1,39 @@ -

error

-

(this is a placeholder by the way)

+prepare("SELECT * FROM users WHERE id = :id"); +$q->bindParam(':id',$id,PDO::PARAM_INT); +$q->execute(); +$requestUser = $q->fetch(); +if(!$requestUser) { + die("go fuck yourself (can't find user)"); // todo: redirect to 404 +} +?> + + + +header(); +?> + +<?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?> + +
+ dssda +
+ + diff --git a/home.php b/home.php index 9d7895d..bf7e963 100644 --- a/home.php +++ b/home.php @@ -23,7 +23,10 @@ $himsgs = [ "Heyyo", "Howdy", "Hi there", - "Ahoy" + "Ahoy", + "Ay", + "Sup", + "Wassup" ]; $himsg = array_rand($himsgs); $himsg = $himsgs[$himsg]; diff --git a/user.php b/user.php index 0a2e7fa..75ae947 100644 --- a/user.php +++ b/user.php @@ -1,23 +1,16 @@ - - - -fetch(); if(!$requestUser) { die("go fuck yourself (can't find user)"); // todo: redirect to 404 } - +?> + + + +header(); ?> <?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?> -

yeah im not hired to fucking make css/html -nolanwhy

-

welcome to 's profile!!!!!

-

his acc was created at -

thats all

+
+ +