Delete User.php
This commit is contained in:
parent
ed9245e97a
commit
deebbb08b5
43
User.php
43
User.php
|
|
@ -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>
|
|
||||||
Loading…
Reference in New Issue