summaryrefslogtreecommitdiff
path: root/viewuser.php
blob: 45f557aeb1ffa336b0875eacdf303b0f6de761c8 (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
<?php
include_once './includes/model/User.php';

session_start();

$current = new User();

if (!isset($_GET['id'])) {
} else {
	$current->get_by_id($_GET['id']);
}
?>
<!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>