2021-06-27 01:09:28 +00:00
< form
name="post" onsubmit="return dopost(this);"
enctype="multipart/form-data"
action="{{ config.post_url }}"
method="post"
data-max-images="{{ config.max_images }}"
>
2012-04-12 07:20:49 +00:00
{% if id %}< input type = "hidden" name = "thread" value = "{{ id }}" > {% endif %}
2017-04-24 15:47:14 +00:00
{% if board.uri not in config.overboards|keys %}
2012-04-12 07:20:49 +00:00
< input type = "hidden" name = "board" value = "{{ board.uri }}" >
2017-04-24 15:47:14 +00:00
{% endif %}
2013-08-03 21:42:34 +00:00
{% if current_page %}
< input type = "hidden" name = "page" value = "{{ current_page }}" >
{% endif %}
2017-05-31 22:18:19 +00:00
{% if mod %}< input type = "hidden" name = "mod" value = "1" >
{% endif %}
2011-11-23 10:18:06 +00:00
< table >
2014-11-13 00:19:44 +00:00
{% if id %}< tr >
< td colspan = "2" > < div class = "banner" > {% trans %}Posting mode: Reply{% endtrans %} < a class = "unimportant" href = "{{ return }}" > [{% trans %}Return{% endtrans %}]< / a > < / div > < / td >
< / tr > {% endif %}
2012-02-17 05:20:58 +00:00
{% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}Name{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2014-09-20 15:21:50 +00:00
< input type = "text" name = "name" size = "25" maxlength = "35" autocomplete = "off" > {% if config.allow_no_country and config.country_flags %}< input id = "no_country" name = "no_country" type = "checkbox" > < label for = "no_country" > {% trans %}Don't show my flag{% endtrans %}< / label > {% endif %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / td >
2011-11-23 10:24:06 +00:00
< / tr > {% endif %}
2012-02-17 05:20:58 +00:00
{% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}Email{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2013-08-08 19:30:05 +00:00
{% if config.field_email_selectbox %}
< select name = "email" id = "email_selectbox" autocomplete = "off" >
< option value = "" > < / option >
< option value = "sage" > sage< / option >
2014-07-31 11:49:41 +00:00
{% if not config.always_noko %}< option value = "noko" > noko< / option > {% endif %}
2013-08-08 19:30:05 +00:00
< / select >
{% else %}
2012-04-12 07:20:49 +00:00
< input type = "text" name = "email" size = "25" maxlength = "40" autocomplete = "off" >
2013-07-02 22:05:18 +00:00
{% endif %}
2013-08-08 19:30:05 +00:00
{{ antibot.html() }}
2013-08-09 21:36:07 +00:00
{% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
2014-10-12 01:37:21 +00:00
< input accesskey = "s" style = "margin-left:2px;" type = "submit" name = "post" value = "{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" / > {% if config.spoiler_images %}< div id = "spoilercontainer" > < input id = "spoiler" name = "spoiler" type = "checkbox" > < label for = "spoiler" > {% trans %}Spoiler Image{% endtrans %}< / label > < / div > {% endif %}
2013-08-09 21:36:07 +00:00
{% endif %}
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / td >
2011-11-23 10:24:06 +00:00
< / tr > {% endif %}
2013-07-02 22:05:18 +00:00
{% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
< th >
2011-11-23 10:18:06 +00:00
{% trans %}Subject{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2012-04-12 07:20:49 +00:00
< input style = "float:left;" type = "text" name = "subject" size = "25" maxlength = "100" autocomplete = "off" >
2014-10-12 01:37:21 +00:00
< input accesskey = "s" style = "margin-left:2px;" type = "submit" name = "post" value = "{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" / >
2016-08-23 19:17:23 +00:00
< input id = "spoiler" name = "spoiler" type = "checkbox" > < label for = "spoiler" > Spoiler Image< / label >
2011-11-23 10:18:06 +00:00
< / td >
< / tr >
2013-07-02 22:05:18 +00:00
{% endif %}
2017-04-24 15:47:14 +00:00
{% if board.uri in config.overboards|keys %}
< tr > < th > Board< / th > < td >
< select style = "float: left; width: 185px;" name = "board" >
{% for myboard in boards %}
< option value = "{{ myboard['uri'] }}" > {{ myboard['uri'] }} ( {{ myboard['title'] }} )< / option >
{% endfor %}
2017-05-31 22:18:19 +00:00
{{ antibot.html() }}
2017-04-24 15:47:14 +00:00
< / select > < / td > < / tr >
{% endif %}
2014-11-13 00:19:44 +00:00
{% if not config.field_disable_comment or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}Comment{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
< textarea name = "body" id = "body" rows = "5" cols = "35" > < / textarea >
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2013-07-02 22:05:18 +00:00
{% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
{% if not (not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
2014-10-12 01:37:21 +00:00
< input accesskey = "s" style = "margin-left:2px;" type = "submit" name = "post" value = "{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" / >
2016-08-23 19:41:30 +00:00
< input id = "spoiler" name = "spoiler" type = "checkbox" > < label for = "spoiler" > Spoiler Image< / label >
2013-07-02 22:05:18 +00:00
{% endif %}
{% endif %}
2011-11-23 10:18:06 +00:00
< / td >
2014-11-13 00:19:44 +00:00
< / tr > {% endif %}
2011-11-23 10:18:06 +00:00
{% if config.recaptcha %}
< tr >
< th >
{% trans %}Verification{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2019-08-10 10:54:52 +00:00
< div class = "g-recaptcha" data-sitekey = "{{ config.recaptcha_public }}" > < / div >
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / td >
< / tr >
{% endif %}
2021-05-05 12:29:06 +00:00
{% if config.securimage %}
2024-05-08 21:15:48 +00:00
< tr class = "post_form_captcha_row" >
< th >
Captcha
{% if config.captcha_tor_only %}
< br / >
< small > Tor Only< / small >
{% endif %}
< / th >
< td >
< img name = "captcha-img" id = "captcha-img" src = "/captcha.php" onClick = "this.src='/captcha.php?'+Date.now();document.getElementById('captcha').value = '';" > < br / >
< input type = "text" name = "captcha" id = "captcha" size = "25" maxlength = "10" autocomplete = "off" >
< / td >
< / tr >
{% if config.captcha_tor_only %}
< script >
(() => {
2024-06-07 19:07:25 +00:00
function isHiddenService() {
2024-05-08 21:15:48 +00:00
const hostname = window.location.hostname;
2024-06-07 19:07:25 +00:00
return hostname.endsWith('.onion') || hostname.endsWith('.i2p');
2024-05-08 21:15:48 +00:00
}
function removeCaptchaField() {
document.querySelectorAll('.post_form_captcha_row')
.forEach(e => e.parentNode.removeChild(e));
}
2024-06-07 19:07:25 +00:00
if (!isHiddenService()) {
2024-05-08 21:15:48 +00:00
removeCaptchaField();
}
})();
< / script >
{% endif %}
2021-05-05 12:29:06 +00:00
{% endif %}
2014-04-19 12:56:59 +00:00
{% if config.user_flag %}
< tr >
< th > {% trans %}Flag{% endtrans %}< / th >
< td >
2021-05-31 19:30:44 +00:00
< select name = "user_flag" id = "user_flag" style = "float:left" >
2014-04-19 12:56:59 +00:00
< option value = "" > {% trans %}None{% endtrans %}< / option >
{% for flag, text in config.user_flags %}
< option value = "{{ flag }}" > {{ text }}< / option >
{% endfor %}
< / select >
2021-05-31 19:30:44 +00:00
{% if config.flag_preview %}
2021-06-16 04:25:20 +00:00
< img name = "flag_preview" id = "flag_preview" style = "vertical-align:middle; margin: 0px 3px;" >
2021-05-31 19:30:44 +00:00
{% endif %}
2014-04-19 12:56:59 +00:00
< / td >
< / tr >
{% endif %}
2015-04-22 03:54:48 +00:00
{% if config.allowed_tags and not id %}
< tr >
< th > {% trans %}Tag{% endtrans %}< / th >
< td >
< select name = "tag" >
{% for id, tag in config.allowed_tags %}
2015-04-23 01:45:08 +00:00
< option value = "{{ id|e }}" > {{ tag|e }}< / option >
2015-04-22 03:54:48 +00:00
{% endfor %}
< / select >
< / td >
< / tr >
{% endif %}
2013-08-17 20:37:15 +00:00
< tr id = "upload" >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}File{% endtrans %}
< / th >
2021-07-11 14:00:39 +00:00
< td class = "upload-area" >
2013-08-17 20:37:15 +00:00
< input type = "file" name = "file" id = "upload_file" >
2015-03-18 10:44:47 +00:00
2013-08-12 12:51:46 +00:00
{% if config.allow_upload_by_url %}
2013-08-17 20:37:15 +00:00
< div style = "float:none;text-align:left" id = "upload_url" >
2013-08-12 12:51:46 +00:00
< label for = "file_url" > {% trans %}Or URL{% endtrans %}< / label > :
2017-03-20 11:19:03 +00:00
{% for counter in 1..config.max_images %}
< input style = "display:inline" type = "text" id = "file_url{{ counter }}" name = "file_url{{ counter }}" size = "35" >
< / br >
{% endfor %}
2013-08-12 12:51:46 +00:00
< / div >
{% endif %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / td >
< / tr >
{% if config.enable_embedding %}
2013-08-17 20:37:15 +00:00
< tr id = "upload_embed" >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}Embed{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2014-04-10 09:01:37 +00:00
< input type = "text" name = "embed" value = "" size = "30" maxlength = "120" autocomplete = "off" >
2011-11-23 10:18:06 +00:00
< / td >
< / tr >
{% endif %}
2013-07-31 03:36:46 +00:00
{% if mod and ((not id and post.mod|hasPermission(config.mod.sticky, board.uri)) or (not id and post.mod|hasPermission(config.mod.lock, board.uri)) or post.mod|hasPermission(config.mod.rawhtml, board.uri)) %}
2011-11-23 10:18:06 +00:00
< tr >
< th >
{% trans %}Flags{% endtrans %}
< / th >
< td >
2014-02-01 20:53:46 +00:00
{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}< div class = "center" >
2011-11-23 10:18:06 +00:00
< label for = "sticky" > {% trans %}Sticky{% endtrans %}< / label >
2012-04-12 07:20:49 +00:00
< input title = "{% trans %}Sticky{% endtrans %}" type = "checkbox" name = "sticky" id = "sticky" > < br >
2011-11-23 10:18:06 +00:00
< / div > {% endif %}
2014-02-01 20:53:46 +00:00
{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}< div class = "center" >
2012-04-12 07:20:49 +00:00
< label for = "lock" > {% trans %}Lock{% endtrans %}< / label > < br >
< input title = "{% trans %}Lock{% endtrans %}" type = "checkbox" name = "lock" id = "lock" >
2011-11-23 10:18:06 +00:00
< / div > {% endif %}
2014-02-01 20:53:46 +00:00
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}< div class = "center" >
2012-04-12 07:20:49 +00:00
< label for = "raw" > {% trans %}Raw HTML{% endtrans %}< / label > < br >
< input title = "{% trans %}Raw HTML{% endtrans %}" type = "checkbox" name = "raw" id = "raw" >
2011-11-23 10:18:06 +00:00
< / div > {% endif %}
< / td >
< / tr >
{% endif %}
2012-02-17 05:20:58 +00:00
{% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 10:18:06 +00:00
< th >
{% trans %}Password{% endtrans %}
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / th >
< td >
2015-03-31 05:01:51 +00:00
< input type = "text" name = "password" value = "" size = "12" maxlength = "18" autocomplete = "off" >
2011-11-23 10:18:06 +00:00
< span class = "unimportant" > {% trans %}(For file deletion.){% endtrans %}< / span >
2012-04-12 11:56:01 +00:00
{{ antibot.html() }}
2011-11-23 10:18:06 +00:00
< / td >
2011-11-23 10:24:06 +00:00
< / tr > {% endif %}
2011-11-23 10:18:06 +00:00
< / table >
2012-04-12 11:56:01 +00:00
< input type = "hidden" name = "hash" value = "{{ antibot.hash() }}" >
2011-11-23 10:18:06 +00:00
< / form >
2023-08-03 01:31:45 +00:00
< script type = "text/javascript" > { % v e r b a t i m % }
2011-11-23 10:18:06 +00:00
rememberStuff();
2023-08-03 01:31:45 +00:00
{% endverbatim %}< / script >