Browse Source

;

pull/40/head
Michael Foster 11 years ago
parent
commit
30fb025eef
  1. 3
      js/ajax.js
  2. 3
      post.php

3
js/ajax.js

@ -75,7 +75,7 @@ $(window).ready(function() {
processData: false processData: false
}, 'html'); }, 'html');
} }
$(form).find('input[type="submit"]').val('Posted...'); $(form).find('input[type="submit"]').val(_('Posted...'));
} else { } else {
alert(_('An unknown error occured when posting!')); alert(_('An unknown error occured when posting!'));
$(form).find('input[type="submit"]').val(submit_txt); $(form).find('input[type="submit"]').val(submit_txt);
@ -96,7 +96,6 @@ $(window).ready(function() {
}); });
$(form).submit(); $(form).submit();
}, },
// Form data
data: formData, data: formData,
cache: false, cache: false,
contentType: false, contentType: false,

3
post.php

@ -1,5 +1,7 @@
<?php <?php
file_put_contents('post.txt', var_export($_POST, true));
/* /*
* Copyright (c) 2010-2013 Tinyboard Development Group * 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']); header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
} elseif (isset($_POST['post'])) { } elseif (isset($_POST['post'])) {
if (!isset($_POST['body'], $_POST['board'])) if (!isset($_POST['body'], $_POST['board']))
error($config['error']['bot']); error($config['error']['bot']);

Loading…
Cancel
Save