<?php 
//session_start();
include_once "general/general_class.php";
include_once "connection_to_db.php";
include_once "show_data_class.php";
include_once "thread_editor_class.php";
include_once "post_reply/post_reply_class.php";
?>

<html>
	<head> 
		<link rel="stylesheet" type="text/css" href="style.css">
		<title> 
			<?php 
echo Data_display::show_thread_title($conn);
?>
 
		</title>
	</head>
</html>

	<?php 
if (isset($_GET["thread_id"]) and isset($_GET["cat_id"])) {
    $Thread_editor = new Thread_editor($conn);
    //shows whole thread info, like thread body, title, thread by and time.
    $Show_thread_body = new Data_display($conn);
    //show thread body.
    $Show_thread_body->show_thread_body();
    //show thread replies.
    $Show_thread_body->show_replies();