Vergleich xmlhttp.php - 1.8.0 - 1.8.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 70Zeile 70
// 1. Check cookies
if(!$mybb->user['uid'] && !empty($mybb->cookies['mybbtheme']))
{

// 1. Check cookies
if(!$mybb->user['uid'] && !empty($mybb->cookies['mybbtheme']))
{

	$mybb->user['style'] = $mybb->cookies['mybbtheme'];

	$mybb->user['style'] = (int)$mybb->cookies['mybbtheme'];

}

// 2. Load style

}

// 2. Load style

Zeile 170Zeile 170
	$theme['imglangdir'] = $mybb->get_asset_url($theme['imglangdir']);
}


	$theme['imglangdir'] = $mybb->get_asset_url($theme['imglangdir']);
}


$templatelist = "postbit_editedby,xmlhttp_inline_post_editor,xmlhttp_buddyselect_online,xmlhttp_buddyselect_offline,xmlhttp_buddyselect";

$templatelist = "postbit_editedby,xmlhttp_buddyselect_online,xmlhttp_buddyselect_offline,xmlhttp_buddyselect";

$templates->cache($db->escape_string($templatelist));

if($lang->settings['charset'])

$templates->cache($db->escape_string($templatelist));

if($lang->settings['charset'])

Zeile 254Zeile 254
		xmlhttp_error($lang->invalid_post_code);
}


		xmlhttp_error($lang->invalid_post_code);
}


	// Editing a post subject.
if($mybb->get_input('pid', 1))
{
// Fetch the post from the database.
$post = get_post($mybb->get_input('pid', 1));

// No result, die.
if(!$post)
{
xmlhttp_error($lang->post_doesnt_exist);
}

// Fetch the thread associated with this post.
$thread = get_thread($post['tid']);
if(!$thread)
{
xmlhttp_error($lang->thread_doesnt_exist);
}
}

 
	// We're editing a thread subject.

	// We're editing a thread subject.

	else if($mybb->get_input('tid', 1))

	if($mybb->get_input('tid', 1))

	{
// Fetch the thread.
$thread = get_thread($mybb->get_input('tid', 1));

	{
// Fetch the thread.
$thread = get_thread($mybb->get_input('tid', 1));

Zeile 398Zeile 379

// Spit the subject back to the browser.
$subject = substr($mybb->input['value'], 0, 120); // 120 is the varchar length for the subject column


// Spit the subject back to the browser.
$subject = substr($mybb->input['value'], 0, 120); // 120 is the varchar length for the subject column

	echo json_encode(array("subject" => htmlspecialchars_uni($subject)));

	echo json_encode(array("subject" => '<a href="'.get_thread_link($thread['tid']).'">'.htmlspecialchars_uni($subject).'</a>'));


// Close the connection.
exit;


// Close the connection.
exit;

Zeile 474Zeile 455
		//$post['message'] = htmlspecialchars_uni($post['message']);

// Send the contents of the post.

		//$post['message'] = htmlspecialchars_uni($post['message']);

// Send the contents of the post.

		/*eval("\$inline_editor = \"".$templates->get("xmlhttp_inline_post_editor")."\";");
echo "<?xml version=\"1.0\" encoding=\"{$charset}\"?".">";
echo "<form>".$inline_editor."</form>";*/

 
		echo $post['message'];
exit;
}

		echo $post['message'];
exit;
}

Zeile 601Zeile 579
			$post['editdate'] = my_date('relative', TIME_NOW);
$post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate']);
$post['editedprofilelink'] = build_profile_link($mybb->user['username'], $mybb->user['uid']);

			$post['editdate'] = my_date('relative', TIME_NOW);
$post['editnote'] = $lang->sprintf($lang->postbit_edited, $post['editdate']);
$post['editedprofilelink'] = build_profile_link($mybb->user['username'], $mybb->user['uid']);

			$post['editreason'] = $editreason;

			$post['editreason'] = trim($editreason);

			$editreason = "";
if($post['editreason'] != "")
{

			$editreason = "";
if($post['editreason'] != "")
{