Vergleich xmlhttp.php - 1.4.2 - 1.4.8

  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: xmlhttp.php 4179 2008-09-06 16:51:09Z Tikitiki $

 * $Id: xmlhttp.php 4379 2009-06-10 10:13:44Z Tomm $

 */

/**

 */

/**

Zeile 335Zeile 335
			xmlhttp_error($lang->edit_time_limit);
}
}

			xmlhttp_error($lang->edit_time_limit);
}
}

 

// Forum is closed - no editing allowed (for anyone)
if($forum['open'] == 0)
{
xmlhttp_error($lang->no_permission_edit_post);
}


	if($mybb->input['do'] == "get_post")
{
// Send our headers.

	if($mybb->input['do'] == "get_post")
{
// Send our headers.

Zeile 431Zeile 438
		while($attachment = $db->fetch_array($query))
{
$attachcache[$attachment['pid']][$attachment['aid']] = $attachment;

		while($attachment = $db->fetch_array($query))
{
$attachcache[$attachment['pid']][$attachment['aid']] = $attachment;

		}


		}


		require_once MYBB_ROOT."inc/functions_post.php";

get_post_attachments($post['pid'], $post);

		require_once MYBB_ROOT."inc/functions_post.php";

get_post_attachments($post['pid'], $post);

Zeile 440Zeile 447
		// Figure out if we need to show an "edited by" message
// Only show if at least one of "showeditedby" or "showeditedbyadmin" is enabled
if($mybb->settings['showeditedby'] != 0 && $mybb->settings['showeditedbyadmin'] != 0)

		// Figure out if we need to show an "edited by" message
// Only show if at least one of "showeditedby" or "showeditedbyadmin" is enabled
if($mybb->settings['showeditedby'] != 0 && $mybb->settings['showeditedbyadmin'] != 0)

		{

		{

			$post['editdate'] = my_date($mybb->settings['dateformat'], TIME_NOW);
$post['edittime'] = my_date($mybb->settings['timeformat'], TIME_NOW);
$post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate'], $post['edittime']);

			$post['editdate'] = my_date($mybb->settings['dateformat'], TIME_NOW);
$post['edittime'] = my_date($mybb->settings['timeformat'], TIME_NOW);
$post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate'], $post['edittime']);

Zeile 464Zeile 471
{
// If the cookie does not exist, exit
if(!array_key_exists("multiquote", $mybb->cookies))

{
// If the cookie does not exist, exit
if(!array_key_exists("multiquote", $mybb->cookies))

	{

	{

		exit;
}
// Divide up the cookie using our delimeter
$multiquoted = explode("|", $mybb->cookies['multiquote']);

		exit;
}
// Divide up the cookie using our delimeter
$multiquoted = explode("|", $mybb->cookies['multiquote']);

	

	

	// No values - exit
if(!is_array($multiquoted))
{

	// No values - exit
if(!is_array($multiquoted))
{

Zeile 497Zeile 504
	if(!$mybb->input['load_all'])
{
$from_tid = "p.tid != '".intval($mybb->input['tid'])."' AND ";

	if(!$mybb->input['load_all'])
{
$from_tid = "p.tid != '".intval($mybb->input['tid'])."' AND ";

	}

	}

	else
{
$from_tid = '';

	else
{
$from_tid = '';

Zeile 562Zeile 569
	echo $imagehash;
}
else if($mybb->input['action'] == "validate_captcha")

	echo $imagehash;
}
else if($mybb->input['action'] == "validate_captcha")

{

{

	header("Content-type: text/xml; charset={$charset}");
$imagehash = $db->escape_string($mybb->input['imagehash']);
$query = $db->simple_select("captcha", "imagestring", "imagehash='$imagehash'");
if($db->num_rows($query) == 0)
{
echo "<fail>{$lang->captcha_valid_not_exists}</fail>";

	header("Content-type: text/xml; charset={$charset}");
$imagehash = $db->escape_string($mybb->input['imagehash']);
$query = $db->simple_select("captcha", "imagestring", "imagehash='$imagehash'");
if($db->num_rows($query) == 0)
{
echo "<fail>{$lang->captcha_valid_not_exists}</fail>";

		exit;
}

		exit;
}

	$imagestring = $db->fetch_field($query, 'imagestring');

if(my_strtolower($imagestring) == my_strtolower($mybb->input['value']))

	$imagestring = $db->fetch_field($query, 'imagestring');

if(my_strtolower($imagestring) == my_strtolower($mybb->input['value']))

	{

	{

		echo "<success>{$lang->captcha_matches}</success>";
exit;
}
else
{
echo "<fail>{$lang->captcha_does_not_match}</fail>";

		echo "<success>{$lang->captcha_matches}</success>";
exit;
}
else
{
echo "<fail>{$lang->captcha_does_not_match}</fail>";

		exit;
}

		exit;
}

}
else if($mybb->input['action'] == "username_availability")
{

}
else if($mybb->input['action'] == "username_availability")
{

Zeile 595Zeile 602

// Remove multiple spaces from the username
$username = preg_replace("#\s{2,}#", " ", $username);


// Remove multiple spaces from the username
$username = preg_replace("#\s{2,}#", " ", $username);

 
	
if(empty($username))
{
echo "<fail>{$lang->banned_characters_username}</fail>";
exit;
}


header("Content-type: text/xml; charset={$charset}");



header("Content-type: text/xml; charset={$charset}");