Vergleich editpost.php - 1.2.0 - 1.2.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: editpost.php 2154 2006-08-27 16:52:47Z Tikitiki $

 * $Id: editpost.php 2749 2007-02-10 13:33:47Z CraKteR $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 88Zeile 88
	{
if($thread['closed'] == "yes")
{

	{
if($thread['closed'] == "yes")
{

			redirect("showthread.php?tid=$tid", $lang->redirect_threadclosed);

			error($lang->redirect_threadclosed);

		}
if($forumpermissions['candeleteposts'] == "no")
{

		}
if($forumpermissions['candeleteposts'] == "no")
{

Zeile 106Zeile 106
	{
if($thread['closed'] == "yes")
{

	{
if($thread['closed'] == "yes")
{

			redirect("showthread.php?tid=$tid", $lang->redirect_threadclosed);

			error($lang->redirect_threadclosed);

		}
if($forumpermissions['caneditposts'] == "no")
{

		}
if($forumpermissions['caneditposts'] == "no")
{

Zeile 195Zeile 195
				delete_thread($tid);
update_forum_count($fid);
mark_reports($tid, "thread");

				delete_thread($tid);
update_forum_count($fid);
mark_reports($tid, "thread");

				if(is_moderator($fid, "candeleteposts") != "yes")
{
log_moderator_action($modlogdata, "Deleted Thread");
}

				log_moderator_action($modlogdata, "Deleted Thread");




				redirect("forumdisplay.php?fid=$fid", $lang->redirect_threaddeleted);

				redirect("forumdisplay.php?fid=$fid", $lang->redirect_threaddeleted);

			}
else
{
error_no_permission();
}
}

			}
else
{
error_no_permission();
}
}

		else
{
if($forumpermissions['candeleteposts'] == "yes")

		else
{
if($forumpermissions['candeleteposts'] == "yes")

Zeile 215Zeile 212
				update_thread_count($tid);
update_forum_count($fid);
mark_reports($pid, "post");

				update_thread_count($tid);
update_forum_count($fid);
mark_reports($pid, "post");

				if(is_moderator($fid, "candeleteposts") != "yes")
{
log_moderator_action($modlogdata, "Deleted Post");
}

				log_moderator_action($modlogdata, "Deleted Post");




				$query = $db->simple_select(TABLE_PREFIX."posts", "pid", "tid='{$tid}' AND dateline <= '{$post['dateline']}'", array("limit" => 1, "order_by" => "dateline", "order_dir" => "desc"));
$next_post = $db->fetch_array($query);
if($next_post['pid'])

				$query = $db->simple_select(TABLE_PREFIX."posts", "pid", "tid='{$tid}' AND dateline <= '{$post['dateline']}'", array("limit" => 1, "order_by" => "dateline", "order_dir" => "desc"));
$next_post = $db->fetch_array($query);
if($next_post['pid'])

Zeile 234Zeile 228
			else
{
error_no_permission();

			else
{
error_no_permission();

			}
}
}
else
{
redirect("showthread.php?tid={$tid}", $lang->redirect_nodelete);
}

			}
}
}
else
{
error($lang->redirect_nodelete);
}

}

if($mybb->input['action'] == "do_editpost" && $mybb->request_method == "post")

}

if($mybb->input['action'] == "do_editpost" && $mybb->request_method == "post")

Zeile 313Zeile 307
	if(!$mybb->input['previewpost'])
{
$icon = $post['icon'];

	if(!$mybb->input['previewpost'])
{
$icon = $post['icon'];

	}

	}


if($forum['allowpicons'] != "no")
{


if($forum['allowpicons'] != "no")
{

Zeile 337Zeile 331
	if($forumpermissions['canpostattachments'] != "no")
{ // Get a listing of the current attachments, if there are any
$attachcount = 0;

	if($forumpermissions['canpostattachments'] != "no")
{ // Get a listing of the current attachments, if there are any
$attachcount = 0;

		if($mybb->input['posthash'])

		if($posthash)

		{

		{

			$posthash = "posthash='{$posthash}' OR ";

			$posthash_query = "posthash='{$posthash}' OR ";

		}
else
{

		}
else
{

			$posthash = "";

			$posthash_query = "";

		}

		}

		$query = $db->simple_select(TABLE_PREFIX."attachments", "*", "{$posthash}pid='{$pid}'");

		$query = $db->simple_select(TABLE_PREFIX."attachments", "*", "{$posthash_query}pid='{$pid}'");

		$attachments = '';
while($attachment = $db->fetch_array($query))
{

		$attachments = '';
while($attachment = $db->fetch_array($query))
{

Zeile 423Zeile 417
	if($mybb->input['previewpost'] || $post_errors)
{
$previewmessage = $message;

	if($mybb->input['previewpost'] || $post_errors)
{
$previewmessage = $message;

		$message = htmlspecialchars_uni($message);
$subject = htmlspecialchars_uni($subject);

$postoptions = $mybb->input['postoptions'];

		$message = htmlspecialchars_uni($message);
$subject = htmlspecialchars_uni($subject);

$postoptions = $mybb->input['postoptions'];


if($postoptions['signature'] == "yes")
{


if($postoptions['signature'] == "yes")
{

Zeile 487Zeile 481
		if($post['smilieoff'] == "yes")
{
$postoptionschecked['disablesmilies'] = "checked=\"checked\"";

		if($post['smilieoff'] == "yes")
{
$postoptionschecked['disablesmilies'] = "checked=\"checked\"";

		}
// Can we disable smilies or are they disabled already?
if($forum['allowsmilies'] != "no")
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");
}
else
{
$disablesmilies = "<input type=\"hidden\" name=\"postoptions[disablesmilies]\" value=\"no\" />";

 
		}
$query = $db->simple_select(TABLE_PREFIX."favorites", "*", "type='s' AND tid='{$tid}' AND uid='{$mybb->user['uid']}'");
$subcheck = $db->fetch_array($query);

		}
$query = $db->simple_select(TABLE_PREFIX."favorites", "*", "type='s' AND tid='{$tid}' AND uid='{$mybb->user['uid']}'");
$subcheck = $db->fetch_array($query);

Zeile 503Zeile 488
		{
$postoptionschecked['emailnotify'] = "checked=\"checked\"";
}

		{
$postoptionschecked['emailnotify'] = "checked=\"checked\"";
}

 
	}

// Can we disable smilies or are they disabled already?
if($forum['allowsmilies'] != "no")
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");
}
else
{
$disablesmilies = "<input type=\"hidden\" name=\"postoptions[disablesmilies]\" value=\"no\" />";

	}

$plugins->run_hooks("editpost_end");

	}

$plugins->run_hooks("editpost_end");