blob: 3a65114065bd7465289bf01b4efe39d5ff4c41e3 (
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
32
33
34
|
<?php
include_once 'includes/db_inc.php';
include_once 'model/Thread.php';
session_start();
$current = new Thread();
if (!isset($_GET['id']) || !filter_var($_GET['id'], FILTER_VALIDATE_INT)) {
} else {
$current->get_from_database($_GET['id'], $dbc);
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $current->subject; ?> - cflip.net forum</title>
</head>
<body>
<?php include_once 'templates/header.php';?>
<h1><?php echo $current->subject; ?></h1>
created by <b><?php echo $current->author->name; ?></b>
in <b><?php echo $current->category->name; ?></b>
<abbr title="<?php echo date('M d, Y g:ia', strtotime($current->date_created));?>">3 days ago</abbr>
<hr>
<?php
$posts = $current->get_posts($dbc);
foreach ($posts as $post) {
$post->display_content();
}
?>
</body>
</html>
|