Vergleich xmlhttp.php - 1.2.11 - 1.2.13

  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: xmlhttp.php 3517 2007-11-27 15:40:54Z Tikitiki $

 * $Id: xmlhttp.php 3600 2008-01-21 00:08:28Z Tikitiki $

 */

/**

 */

/**

Zeile 138Zeile 138
// This action provides editing of thread/post subjects from within their respective list pages.
else if($mybb->input['action'] == "edit_subject" && $mybb->request_method == "post")
{

// This action provides editing of thread/post subjects from within their respective list pages.
else if($mybb->input['action'] == "edit_subject" && $mybb->request_method == "post")
{

 
	// Verify POST request
if(!verify_post_check($mybb->input['my_post_key'], true))
{
xmlhttp_error($lang->invalid_post_code);
}


	// Editing a post subject.
if($mybb->input['pid'])
{

	// Editing a post subject.
if($mybb->input['pid'])
{

Zeile 167Zeile 173
		);
$query = $db->simple_select(TABLE_PREFIX."posts", "pid,uid,dateline", "tid='".$thread['tid']."'", $query_options);
$post = $db->fetch_array($query);

		);
$query = $db->simple_select(TABLE_PREFIX."posts", "pid,uid,dateline", "tid='".$thread['tid']."'", $query_options);
$post = $db->fetch_array($query);

	}
// Fetch the specific forum this thread/post is in.
$forum = get_forum($thread['fid']);

// Missing thread, invalid forum? Error.
if(!$thread['tid'] || !$forum['fid'] || $forum['type'] != "f")
{
xmlhttp_error($lang->thread_doesnt_exist);
}

// Fetch forum permissions.
$forumpermissions = forum_permissions($forum['fid']);

// If this user is not a moderator with "caneditposts" permissions.
if(is_moderator($forum['fid'], "caneditposts") != "yes")
{
// Thread is closed - no editing allowed.
if($thread['closed'] == "yes")
{

	}
// Fetch the specific forum this thread/post is in.
$forum = get_forum($thread['fid']);

// Missing thread, invalid forum? Error.
if(!$thread['tid'] || !$forum['fid'] || $forum['type'] != "f")
{
xmlhttp_error($lang->thread_doesnt_exist);
}

// Fetch forum permissions.
$forumpermissions = forum_permissions($forum['fid']);

// If this user is not a moderator with "caneditposts" permissions.
if(is_moderator($forum['fid'], "caneditposts") != "yes")
{
// Thread is closed - no editing allowed.
if($thread['closed'] == "yes")
{

			xmlhttp_error($lang->thread_closed_edit_subjects);
}
// Forum is not open, user doesn't have permission to edit, or author doesn't match this user - don't allow editing.

			xmlhttp_error($lang->thread_closed_edit_subjects);
}
// Forum is not open, user doesn't have permission to edit, or author doesn't match this user - don't allow editing.

Zeile 200Zeile 206
			xmlhttp_error($lang->edit_time_limit);
}
$ismod = false;

			xmlhttp_error($lang->edit_time_limit);
}
$ismod = false;

	}

	}

	else
{
$ismod = true;

	else
{
$ismod = true;

Zeile 209Zeile 215
	if(strtolower($charset) != "utf-8")
{
if(function_exists("iconv"))

	if(strtolower($charset) != "utf-8")
{
if(function_exists("iconv"))

		{

		{

			$subject = iconv("UTF-8", $charset, $subject);
}
else if(function_exists("mb_convert_encoding"))

			$subject = iconv("UTF-8", $charset, $subject);
}
else if(function_exists("mb_convert_encoding"))

Zeile 255Zeile 261
				"fid" => $forum['fid']
);
log_moderator_action($modlogdata, "Edited Post");

				"fid" => $forum['fid']
);
log_moderator_action($modlogdata, "Edited Post");

		}
}

		}
}


// Send our headers.
header("Content-type: text/plain; charset={$charset}");


// Send our headers.
header("Content-type: text/plain; charset={$charset}");

Zeile 268Zeile 274
	exit;
}
else if($mybb->input['action'] == "edit_post")

	exit;
}
else if($mybb->input['action'] == "edit_post")

{

{	

	// Fetch the post from the database.
$post = get_post($mybb->input['pid']);


	// Fetch the post from the database.
$post = get_post($mybb->input['pid']);


Zeile 280Zeile 286
	
// Fetch the thread associated with this post.
$thread = get_thread($post['tid']);

	
// Fetch the thread associated with this post.
$thread = get_thread($post['tid']);





	// Fetch the specific forum this thread/post is in.
$forum = get_forum($thread['fid']);


	// Fetch the specific forum this thread/post is in.
$forum = get_forum($thread['fid']);


Zeile 328Zeile 334
	}
else if($mybb->input['do'] == "update_post")
{

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

 
		// Verify POST request
if(!verify_post_check($mybb->input['my_post_key'], true))
{
xmlhttp_error($lang->invalid_post_code);
}


		$message = strval($_POST['value']);
if(strtolower($charset) != "utf-8")
{

		$message = strval($_POST['value']);
if(strtolower($charset) != "utf-8")
{