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

+
+ +