From f5e972c030675f46cda543e13da1b787457e070b Mon Sep 17 00:00:00 2001
From: cflip <36554078+cflip@users.noreply.github.com>
Date: Wed, 23 Jun 2021 15:21:12 -0600
Subject: Add the rest of the changes
---
 viewthread.php | 156 +++++++++++++++++++++++++++------------------------------
 1 file changed, 73 insertions(+), 83 deletions(-)
 mode change 100644 => 100755 viewthread.php
(limited to 'viewthread.php')
diff --git a/viewthread.php b/viewthread.php
old mode 100644
new mode 100755
index 365e014..85f1813
--- a/viewthread.php
+++ b/viewthread.php
@@ -1,83 +1,73 @@
-has_value()) {
-	http_response_code(404);
-	include('includes/templates/404.php');
-	die();
-}
-?>
-
-
-	
-		= $current->subject; ?> - cflip.net forum
-		
-			
-			
-	
-	
-
-		
-		= $current->subject; ?>
-		created by = $current->author->name; ?>
-		in = $current->category->name; ?>, = date('M d, Y g:ia', strtotime($current->date_created)); ?>
-is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>
-		
-
-		
-get_posts() as $post) {
-	echo $post->get_content();
-} 
-?>
-		
-		Reply to this thread
-is_signed_in()) {
-		trigger_error('You must be signed in to reply to this thread.', E_USER_NOTICE);
-		return;
-	}
-
-	$post_content = filter_input(INPUT_POST, 'post_content', FILTER_SANITIZE_STRING);
-
-	if (empty($post_content) or !$post_content) {
-		trigger_error('Reply cannot be empty');
-	} else {
-		Post::create($post_content, $current->id, $current->category->id);
-		header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $current->id);
-	}
-}
-?>
-		
-	
-
+has_value()) {
+	http_response_code(404);
+	include('includes/templates/404.php');
+	die();
+}
+?>
+
+
+	
+		= $current->subject; ?> - cflip.net forum
+
+		
+		
+		
+		
+		
+	
+	
+
+		= $current->subject; ?>
+		created by = $current->author->name; ?>
+		in = $current->category->name; ?>, = date('M d, Y g:ia', strtotime($current->date_created)); ?>
+is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>
+		Moderator Options
+
+		
+get_posts() as $post) {
+	echo $post->get_content();
+} 
+?>
+		
+		Reply to this thread
+is_signed_in()) {
+		trigger_error('You must be signed in to reply to this thread.', E_USER_NOTICE);
+		return;
+	}
+
+	$post_content = filter_input(INPUT_POST, 'post_content', FILTER_SANITIZE_STRING);
+
+	if (empty($post_content) or !$post_content) {
+		trigger_error('Reply cannot be empty');
+	} else {
+		Post::create($post_content, $current->id, $current->category->id);
+		header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $current->id);
+	}
+}
+?>
+		
+	
+
-- 
cgit v1.2.3