Vergleich xmlhttp.php - 1.4.2 - 1.4.9

  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

		exit;
}
// Divide up the cookie using our delimeter

Zeile 591Zeile 598

// Fix bad characters
$username = trim($username);


// Fix bad characters
$username = trim($username);

	$username = str_replace(array(unicode_chr(160), unicode_chr(173), unicode_chr(0xCA), dec_to_utf8(8238), dec_to_utf8(8237)), array(" ", "-", "", "", ""), $username);

	$username = str_replace(array(unicode_chr(160), unicode_chr(173), unicode_chr(0xCA), dec_to_utf8(8238), dec_to_utf8(8237), dec_to_utf8(8203)), array(" ", "-", "", "", "", ""), $username);


// 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}");