|
@@ -287,6 +287,9 @@ function ReportToModerator()
|
|
|
|
|
|
$context['robot_no_index'] = true;
|
|
|
|
|
|
+
|
|
|
+ is_not_guest();
|
|
|
+
|
|
|
|
|
|
isAllowedTo('report_any');
|
|
|
|
|
@@ -319,18 +322,6 @@ function ReportToModerator()
|
|
|
list ($_REQUEST['msg'], $member, $starter) = $smcFunc['db_fetch_row']($result);
|
|
|
$smcFunc['db_free_result']($result);
|
|
|
|
|
|
-
|
|
|
- $context['require_verification'] = $user_info['is_guest'] && !empty($modSettings['guests_report_require_captcha']);
|
|
|
- if ($context['require_verification'])
|
|
|
- {
|
|
|
- require_once($sourcedir . '/Subs-Editor.php');
|
|
|
- $verificationOptions = array(
|
|
|
- 'id' => 'report',
|
|
|
- );
|
|
|
- $context['require_verification'] = create_control_verification($verificationOptions);
|
|
|
- $context['visual_verification_id'] = $verificationOptions['id'];
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
loadLanguage('Post');
|
|
|
loadTemplate('SendTopic');
|
|
@@ -359,7 +350,6 @@ function ReportToModerator()
|
|
|
});', true);
|
|
|
|
|
|
$context['comment_body'] = !isset($_POST['comment']) ? '' : trim($_POST['comment']);
|
|
|
- $context['email_address'] = !isset($_POST['email']) ? '' : trim($_POST['email']);
|
|
|
|
|
|
|
|
|
$context['start'] = $_REQUEST['start'];
|
|
@@ -380,6 +370,9 @@ function ReportToModerator2()
|
|
|
{
|
|
|
global $txt, $scripturl, $topic, $board, $user_info, $modSettings, $sourcedir, $language, $context, $smcFunc;
|
|
|
|
|
|
+
|
|
|
+ is_not_guest();
|
|
|
+
|
|
|
|
|
|
isAllowedTo('report_any');
|
|
|
|