From 0eb307381900c52c6028cd36a9d090ae6376a407 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 16 Feb 2015 16:14:40 -0800 Subject: [PATCH] Tor posting ?/settings option --- inc/8chan-mod-pages.php | 2 ++ templates/mod/settings.html | 1 + 2 files changed, 3 insertions(+) diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index 65c96290..809013e1 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -432,6 +432,7 @@ FLAGS; $user_flags = isset($_POST['user_flags']) ? "if (file_exists('$b/flags.php')) { include 'flags.php'; }\n" : ''; $captcha = isset($_POST['captcha']) ? 'true' : 'false'; $force_subject_op = isset($_POST['force_subject_op']) ? 'true' : 'false'; + $tor_posting = isset($_POST['tor_posting']) ? 'true' : 'false'; @@ -529,6 +530,7 @@ OEKAKI; \$config['default_stylesheet'] = array('Custom', \$config['stylesheets']['Custom']); \$config['captcha']['enabled'] = $captcha; \$config['force_subject_op'] = $force_subject_op; +\$config['tor_posting'] = $tor_posting; \$config['hour_max_threads'] = $hour_max_threads; $code_tags $katex $oekaki $replace $multiimage $allow_flash $allow_pdf $user_flags if (\$config['disable_images']) diff --git a/templates/mod/settings.html b/templates/mod/settings.html index ce68ec41..2ac8ddb6 100644 --- a/templates/mod/settings.html +++ b/templates/mod/settings.html @@ -45,6 +45,7 @@ {% trans %}Enable dice rolling{% endtrans %} {% trans %}Don't allow users to repost images{% 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 %}
This is not ReCAPTCHA, it is custom to 8chan {% trans %}Language{% endtrans %}
{% trans %}To contribute translations, register at Transifex{% endtrans %}