From 30f13f844f5e0968d138cd5f2050477824136add Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 3 Apr 2015 18:50:28 -0700 Subject: [PATCH] Add image_reject_repost_in_thread to ?/settings --- inc/8chan-mod-pages.php | 2 ++ templates/mod/settings.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index 2b09d098..b46feeb7 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -460,6 +460,7 @@ FLAGS; $strip_combining_chars = isset($_POST['strip_combining_chars']) ? 'true' : 'false'; $allow_roll = isset($_POST['allow_roll']) ? 'true' : 'false'; $image_reject_repost = isset($_POST['image_reject_repost']) ? 'true' : 'false'; + $image_reject_repost_in_thread = isset($_POST['image_reject_repost_in_thread']) ? 'true' : 'false'; $early_404 = isset($_POST['early_404']) ? 'true' : 'false'; $allow_delete = isset($_POST['allow_delete']) ? 'true' : 'false'; $allow_flash = isset($_POST['allow_flash']) ? '$config[\'allowed_ext_files\'][] = \'swf\';' : ''; @@ -571,6 +572,7 @@ FLAGS; \$config['strip_combining_chars'] = $strip_combining_chars; \$config['allow_roll'] = $allow_roll; \$config['image_reject_repost'] = $image_reject_repost; +\$config['image_reject_repost_in_thread'] = $image_reject_repost_in_thread; \$config['early_404'] = $early_404; \$config['allow_delete'] = $allow_delete; \$config['anonymous'] = base64_decode('$anonymous'); diff --git a/templates/mod/settings.html b/templates/mod/settings.html index 660bb684..803d6971 100644 --- a/templates/mod/settings.html +++ b/templates/mod/settings.html @@ -44,7 +44,8 @@ {% trans %}Allow SWF uploading{% endtrans %} {% trans %}Allow PDF uploading{% endtrans %} {% trans %}Enable dice rolling{% endtrans %} - {% trans %}Don't allow users to repost images{% endtrans %} + {% trans %}Don't allow users to repost images (whole board){% endtrans %} + {% trans %}Don't allow users to repost images (same thread){% endtrans %} {% trans %}Allow a poster to delete his own posts{% endtrans %} {% trans %}Allow posters to post via the Tor onion router{% endtrans %}
Disabling this is evil, but if you really care about "ban evasion", here you go. {% trans %}Enable CAPTCHA{% endtrans %}
Users must solve a CAPTCHA in order to post.
This is not ReCAPTCHA, it is custom to 8chan.