Vergleich newthread.php - 1.2.13 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: newthread.php 3596 2008-01-20 08:27:39Z Tikitiki $

 * $Id: newthread.php 4005 2008-07-10 17:53:25Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 143Zeile 143
}

// Are we removing an attachment from the thread?

}

// Are we removing an attachment from the thread?

if($mybb->input['attachmentaid'])

if($mybb->input['attachmentaid'] && $mybb->input['posthash'])

{
require_once MYBB_ROOT."inc/functions_upload.php";
remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);

{
require_once MYBB_ROOT."inc/functions_upload.php";
remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);

Zeile 324Zeile 324
	if(!$valid_thread)
{
$post_errors = $posthandler->get_friendly_errors();

	if(!$valid_thread)
{
$post_errors = $posthandler->get_friendly_errors();

	}


	}	


	
// Check captcha image
if($mybb->settings['captchaimage'] == "on" && function_exists("imagepng") && !$mybb->user['uid'])

	
// Check captcha image
if($mybb->settings['captchaimage'] == "on" && function_exists("imagepng") && !$mybb->user['uid'])

Zeile 337Zeile 336
		if(strtolower($imgcheck['imagestring']) != strtolower($imagestring) || !$imgcheck['imagehash'])
{
$post_errors[] = $lang->invalid_captcha;

		if(strtolower($imgcheck['imagestring']) != strtolower($imagestring) || !$imgcheck['imagehash'])
{
$post_errors[] = $lang->invalid_captcha;

		}

		}

		else
{
$db->delete_query(TABLE_PREFIX."captcha", "imagehash='$imagehash'");
$hide_captcha = true;
}
}

		else
{
$db->delete_query(TABLE_PREFIX."captcha", "imagehash='$imagehash'");
$hide_captcha = true;
}
}



 
	
// One or more erors returned, fetch error list and throw to newthread page
if(count($post_errors) > 0)

	
// One or more erors returned, fetch error list and throw to newthread page
if(count($post_errors) > 0)