"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/newthread.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

newthread.php  (mybb_1819):newthread.php  (mybb_1820)
skipping to change at line 202 skipping to change at line 202
{ {
// Verify incoming POST request // Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key')); verify_post_check($mybb->get_input('my_post_key'));
require_once MYBB_ROOT."inc/functions_upload.php"; require_once MYBB_ROOT."inc/functions_upload.php";
remove_attachment($pid, $mybb->get_input('posthash'), $mybb->get_input('a ttachmentaid', MyBB::INPUT_INT)); remove_attachment($pid, $mybb->get_input('posthash'), $mybb->get_input('a ttachmentaid', MyBB::INPUT_INT));
if(!$mybb->get_input('submit')) if(!$mybb->get_input('submit'))
{ {
$mybb->input['action'] = "newthread"; $mybb->input['action'] = "newthread";
} }
if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)
{
header("Content-type: application/json; charset={$lang->settings[
'charset']}");
echo json_encode(array("success" => true));
exit();
}
} }
$thread_errors = ""; $thread_errors = "";
$hide_captcha = false; $hide_captcha = false;
// Check the maximum posts per day for this user // Check the maximum posts per day for this user
if($mybb->usergroup['maxposts'] > 0 && $mybb->usergroup['cancp'] != 1) if($mybb->usergroup['maxposts'] > 0 && $mybb->usergroup['cancp'] != 1)
{ {
$daycut = TIME_NOW-60*60*24; $daycut = TIME_NOW-60*60*24;
$query = $db->simple_select("posts", "COUNT(*) AS posts_today", "uid='{$m ybb->user['uid']}' AND visible='1' AND dateline>{$daycut}"); $query = $db->simple_select("posts", "COUNT(*) AS posts_today", "uid='{$m ybb->user['uid']}' AND visible='1' AND dateline>{$daycut}");
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)