Delete User.php

This commit is contained in:
nolanwhy 2023-02-04 21:36:20 +01:00 committed by GitHub
parent ed9245e97a
commit deebbb08b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
<?php
session_start();
?>
<!DOCTYPE html>
<html data-bs-theme="dark">
<head>
<?php
require_once 'core/classes.php';
require_once 'core/classes/user.php';
if(isset($_SESSION['user'])) {
$user = new User($con, $_SESSION['user']);
} else {
echo ''; // fuck you
}
// some shitty code by nolanwhy
// yes i coded all of this inside github editor
if(!isset($_GET["id"])) {
die("go fuck yourself (no id)"); // todo: redirect to 404
} else {
$id = (int)$_GET["id"];
}
$q = $con->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 (no id"); // todo: redirect to 404
}
$getitstarted = new PartyStarter;
$getitstarted->header();
?>
</head>
<title><?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?></title>
<body>
<h1>yeah im not hired to fucking make css/html -nolanwhy</h1>
<h1>welcome to <?php echo htmlspecialchars($requestUser["username"]); ?>'s profile!!!!!</h1>
<h1>his acc was created at <?php echo htmlspecialchars($requestUser["date"]); ?>
<p>thats all</p>
</body>
</html>