Vergleich editpost.php - 1.2.2 - 1.2.3

  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 2385 2006-11-06 23:40:55Z Tikitiki $

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

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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

			}
}
else

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 240Zeile 234
	else
{
error($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")
{
$posticons = get_post_icons();

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

Zeile 387Zeile 381
		if($mybb->usergroup['attachquota'] == 0)
{
$friendlyquota = $lang->unlimited;

		if($mybb->usergroup['attachquota'] == 0)
{
$friendlyquota = $lang->unlimited;

		}
else

		}
else

		{
$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1000);

		{
$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1000);

		}

		}

		$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);
if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['maxattachments'] != 0 && $attachcount <= $mybb->settings['maxattachments']) && !$noshowattach)

		$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);
if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['maxattachments'] != 0 && $attachcount <= $mybb->settings['maxattachments']) && !$noshowattach)

Zeile 404Zeile 398
	{
$message = $post['message'];
$subject = $post['subject'];

	{
$message = $post['message'];
$subject = $post['subject'];

	}

	}

	else
{
$message = $mybb->input['message'];
$subject = $mybb->input['subject'];

	else
{
$message = $mybb->input['message'];
$subject = $mybb->input['subject'];

	}

	}


$query = $db->simple_select(TABLE_PREFIX."posts", "*", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline", "order_dir" => "asc"));
$firstcheck = $db->fetch_array($query);


$query = $db->simple_select(TABLE_PREFIX."posts", "*", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline", "order_dir" => "asc"));
$firstcheck = $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);


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


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

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

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

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