瀏覽代碼

Prettifying ReportedPosts.php

Signed-off-by: Suki <[email protected]>
Suki 10 年之前
父節點
當前提交
c656706a0f
共有 1 個文件被更改,包括 24 次插入4 次删除
  1. 24 4
      Sources/ReportedPosts.php

+ 24 - 4
Sources/ReportedPosts.php

@@ -17,7 +17,7 @@ if (!defined('SMF'))
 	die('No direct access...');
 
 /**
- * Sets and call a function based on the given subaction.
+ * Sets and call a function based on the given subaction. Acts as a dispatcher function.
  * It requires the moderate_forum permission.
  *
  * @uses ModerationCenter template.
@@ -78,9 +78,7 @@ function ReportedPosts()
 
 /**
  * Shows all currently open reported posts.
- * It requires the moderate_forum permission.
- *
- * @uses ModerationCenter language file.
+ * Handles closing multiple reports
  *
  */
 function ShowReports()
@@ -145,6 +143,10 @@ function ShowReports()
 	createToken('mod-report-closed', 'get');
 }
 
+/**
+ * Shows all currently closed reported posts.
+ *
+ */
 function ShowClosedReports()
 {
 	global $context, $txt, $scripturl;
@@ -184,6 +186,11 @@ function ShowClosedReports()
 	createToken('mod-report-closed', 'get');
 }
 
+/**
+ * Shows detailed information about a report. such as report comments and moderator comments.
+ * Shows a list of moderation actions for the specific report.
+ *
+ */
 function ReportDetails()
 {
 	global $user_info, $context, $sourcedir, $scripturl, $txt;
@@ -368,6 +375,10 @@ function ReportDetails()
 	createToken('mod-report-closed', 'get');
 }
 
+/**
+ * Creates/Deletes moderator comments.
+ *
+ */
 function HandleComment()
 {
 	global $smcFunc, $scripturl;
@@ -414,6 +425,11 @@ function HandleComment()
 	redirectexit($scripturl . '?action=moderate;area=reports;sa=details;rid=' . $report_id);
 }
 
+/**
+ * Shows a textarea for editing a moderator comment.
+ * Handles the edited comment and stores it on the DB.
+ *
+ */
 function EditComment()
 {
 	global $smcFunc, $context, $txt, $scripturl;
@@ -458,6 +474,10 @@ function EditComment()
 	createToken('mod-reportC-edit');
 }
 
+/**
+ * Performs closing/ignoring actions for a given report.
+ *
+ */
 function HandleReport()
 {
 	global $scripturl;