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

session_start();

$current = new User();

if (!isset($_GET['id'])) {
} else {
	$current->get_by_id($_GET['id'], $dbc);
}
?>
<!DOCTYPE html>
<html>
<head>
	<title><?= $current->name; ?>'s Profile - cflip.net forum</title>
	<link rel="stylesheet" href="styles/style.css">
</head>
<body>
	<?php include_once "templates/header.php" ?>
	<h1><?= $current->name; ?></h1>
	member since <?= date('M d, Y', strtotime($current->date)); ?>
</body>
</html>