summaryrefslogtreecommitdiff
path: root/viewuser.php
blob: 5a6afbc340c1740cd6cef10d0a9de47804a3cfff (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/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><?php echo $current->name; ?>'s Profile - cflip.net forum</title>
</head>
<body>
	<?php include_once "templates/header.php" ?>
	<h1><?php echo $current->name; ?></h1>
	member since <?php echo date('M d, Y', strtotime($current->date)); ?>
</body>
</html>