summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ajax.js3
-rw-r--r--post.php3
2 files changed, 3 insertions, 3 deletions
diff --git a/js/ajax.js b/js/ajax.js
index e3bb2f88..a063890b 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -75,7 +75,7 @@ $(window).ready(function() {
processData: false
}, 'html');
}
- $(form).find('input[type="submit"]').val('Posted...');
+ $(form).find('input[type="submit"]').val(_('Posted...'));
} else {
alert(_('An unknown error occured when posting!'));
$(form).find('input[type="submit"]').val(submit_txt);
@@ -96,7 +96,6 @@ $(window).ready(function() {
});
$(form).submit();
},
- // Form data
data: formData,
cache: false,
contentType: false,
diff --git a/post.php b/post.php
index 0bc26f46..026e2b2d 100644
--- a/post.php
+++ b/post.php
@@ -1,5 +1,7 @@
<?php
+file_put_contents('post.txt', var_export($_POST, true));
+
/*
* Copyright (c) 2010-2013 Tinyboard Development Group
*/
@@ -139,7 +141,6 @@ if (isset($_POST['delete'])) {
header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
} elseif (isset($_POST['post'])) {
-
if (!isset($_POST['body'], $_POST['board']))
error($config['error']['bot']);