blob: de40d6fee0735cafa9ab6f9d35595a05e7a5027e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
include_once './includes/model/User.php';
session_start();
if (!isset($_GET['id']) or !filter_var($_GET['id'], FILTER_VALIDATE_INT)) {
http_response_code(404);
include('includes/templates/404.php');
die();
}
$current = new User();
$current->get_by_id($_GET['id']);
if (!$current->has_value()) {
http_response_code(404);
include('includes/templates/404.php');
die();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?= $current->name; ?>'s Profile - cflip.net forum</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<?php include_once "includes/templates/header.php" ?>
<h1><?= $current->name; ?></h1>
member since <?= date('M d, Y', strtotime($current->date)); ?>
</body>
</html>
|