Vergleich newreply.php - 1.4.4 - 1.4.11

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: newreply.php 4277 2008-11-23 20:47:16Z Tikitiki $

 * $Id: newreply.php 4322 2009-02-21 23:00:49Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 132Zeile 132
{
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newreply")
{

{
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newreply")
{

		$username = $lang->guest;

		$username = '';

	}
elseif($mybb->input['previewpost'])
{

	}
elseif($mybb->input['previewpost'])
{

Zeile 392Zeile 392
	{
$post_errors = $posthandler->get_friendly_errors();
}

	{
$post_errors = $posthandler->get_friendly_errors();
}

 
	
// Mark thread as read
require_once MYBB_ROOT."inc/functions_indicators.php";
mark_thread_read($tid, $fid);



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


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

Zeile 401Zeile 406
		$query = $db->simple_select("captcha", "*", "imagehash='$imagehash'");
$imgcheck = $db->fetch_array($query);
if(my_strtolower($imgcheck['imagestring']) != my_strtolower($imagestring) || !$imgcheck['imagehash'])

		$query = $db->simple_select("captcha", "*", "imagehash='$imagehash'");
$imgcheck = $db->fetch_array($query);
if(my_strtolower($imgcheck['imagestring']) != my_strtolower($imagestring) || !$imgcheck['imagehash'])

		{

		{

			$post_errors[] = $lang->invalid_captcha;

			$post_errors[] = $lang->invalid_captcha;

		}
else
{

		}
else
{

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

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

Zeile 433Zeile 438

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


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

	{

	{

		$reply_errors = inline_error($post_errors);
$mybb->input['action'] = "newreply";
}

		$reply_errors = inline_error($post_errors);
$mybb->input['action'] = "newreply";
}

Zeile 488Zeile 493
					}
// Still have an array - set the new cookie
if(is_array($multiquote))

					}
// Still have an array - set the new cookie
if(is_array($multiquote))

					{

					{

						$new_multiquote = implode(",", $multiquote);
my_setcookie("multiquote", $new_multiquote);
}

						$new_multiquote = implode(",", $multiquote);
my_setcookie("multiquote", $new_multiquote);
}

Zeile 500Zeile 505
				}
}
}

				}
}
}


// Mark thread as read
require_once MYBB_ROOT."inc/functions_indicators.php";
mark_thread_read($tid, $fid);


		





		$plugins->run_hooks("newreply_do_newreply_end");

// This was a post made via the ajax quick reply - we need to do some special things here

		$plugins->run_hooks("newreply_do_newreply_end");

// This was a post made via the ajax quick reply - we need to do some special things here