summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/config.php3
-rw-r--r--js/quick-reply-old.js49
-rw-r--r--post.php3
-rw-r--r--templates/index.html3
4 files changed, 0 insertions, 58 deletions
diff --git a/inc/config.php b/inc/config.php
index 05c4d0f5..bb9a2390 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -934,9 +934,6 @@
// Minify Javascript using http://code.google.com/p/minify/.
$config['minify_js'] = false;
- // Allows js/quick-reply-old.js to work. This could make your imageboard more vulnerable to flood attacks.
- $config['quick_reply'] = false;
-
/*
* ====================
* Video embedding
diff --git a/js/quick-reply-old.js b/js/quick-reply-old.js
deleted file mode 100644
index 662ba62a..00000000
--- a/js/quick-reply-old.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * quick-reply.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/quick-reply.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Ɓabanowski <marcin@6irc.net>
- * Copyright (c) 2013 lancee <lancee@55ch.org>
- *
- * Usage:
- * $config['quick_reply'] = true;
- * $config['additional_javascript'][] = 'js/jquery.min.js';
- * $config['additional_javascript'][] = 'js/quick-reply.js';
- *
- */
-
-if (active_page == 'index') {
-$(document).ready(function(){
- if($('div.banner').length != 0)
- return; // not index
-
- txt_new_topic = $('form[name=post] input[type=submit]').val();
- txt_new_reply = txt_new_topic == _('Submit') ? txt_new_topic : new_reply_string;
-
- undo_quick_reply = function() {
- $('div.banner').remove();
- $('form[name=post] input[type=submit]').val(txt_new_topic);
- $('form[name=post] input[name=quick-reply]').remove();
- }
-
- $('div.post.op').each(function() {
- var id = $(this).children('p.intro').children('a.post_no:eq(1)').text();
- $('<a href="#">['+_("Quick reply")+']</a>').insertAfter($(this).children('p.intro').children('a:last')).click(function() {
- $('div.banner').remove();
- $('<div class="banner">'+fmt(_("Posting mode: Replying to <small>&gt;&gt;{0}</small>"), [id])+' <a class="unimportant" onclick="undo_quick_reply()" href="javascript:void(0)">['+_("Return")+']</a></div>')
- .insertBefore('form[name=post]');
- $('form[name=post] input[type=submit]').val(txt_new_reply);
-
- $('<input type="hidden" name="quick-reply" value="' + id + '">').appendTo($('form[name=post]'));
-
- $('form[name=post] textarea').select();
-
- window.scrollTo(0, 0);
-
- return false;
- });
- });
-});
-}
diff --git a/post.php b/post.php
index 3420f7f4..907bd433 100644
--- a/post.php
+++ b/post.php
@@ -171,9 +171,6 @@ if (isset($_POST['delete'])) {
if (isset($_POST['thread'])) {
$post['op'] = false;
$post['thread'] = round($_POST['thread']);
- } elseif ($config['quick_reply'] && isset($_POST['quick-reply'])) {
- $post['op'] = false;
- $post['thread'] = round($_POST['quick-reply']);
} else
$post['op'] = true;
diff --git a/templates/index.html b/templates/index.html
index 530247f7..52328675 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,9 +4,6 @@
<meta charset="utf-8">
<script type="text/javascript">
- {% if config.quick_reply %}
- var new_reply_string = "{{ config.button_reply }}";
- {% endif %}
{% if not no_post_form %}
var active_page = "index";
{% else %}