Vergleich editpost.php - 1.8.19 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 16Zeile 16
$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,posticons";
$templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved";
$templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_single,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_approve,post_attachments_attachment_unapproved";

$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,posticons";
$templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved";
$templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_single,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_approve,post_attachments_attachment_unapproved";

$templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_link,editpost_signature,attachment_icon,post_attachments_attachment,post_attachments_add,post_attachments,editpost_postoptions";

$templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_link,editpost_signature,attachment_icon,post_attachments_attachment,post_attachments_add,post_attachments,editpost_postoptions,post_attachments_viewlink";

$templatelist .= ",postbit_attachments_images,global_moderation_notice,post_attachments_new,postbit_attachments,postbit_online,postbit_away,postbit_offline,postbit_gotopost,postbit_userstar,postbit_icon";

require_once "./global.php";

$templatelist .= ",postbit_attachments_images,global_moderation_notice,post_attachments_new,postbit_attachments,postbit_online,postbit_away,postbit_offline,postbit_gotopost,postbit_userstar,postbit_icon";

require_once "./global.php";

Zeile 71Zeile 71

if($thread['visible'] == 0 && !is_moderator($fid, "canviewunapprove") || $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted") || ($thread['visible'] < -1 && $thread['uid'] != $mybb->user['uid']))
{


if($thread['visible'] == 0 && !is_moderator($fid, "canviewunapprove") || $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted") || ($thread['visible'] < -1 && $thread['uid'] != $mybb->user['uid']))
{

	error($lang->error_invalidthread);




	if($thread['visible'] == 0 && !($mybb->settings['showownunapproved'] && $thread['uid'] == $mybb->user['uid']))
{
error($lang->error_invalidthread);
}

}
if(!$forum || $forum['type'] != "f")
{

}
if(!$forum || $forum['type'] != "f")
{

Zeile 118Zeile 121
if($mybb->input['action'] == "deletepost" && $mybb->request_method == "post")
{
if(!is_moderator($fid, "candeleteposts") && !is_moderator($fid, "cansoftdeleteposts") && $pid != $thread['firstpost'] || !is_moderator($fid, "candeletethreads") && !is_moderator($fid, "cansoftdeletethreads") && $pid == $thread['firstpost'])

if($mybb->input['action'] == "deletepost" && $mybb->request_method == "post")
{
if(!is_moderator($fid, "candeleteposts") && !is_moderator($fid, "cansoftdeleteposts") && $pid != $thread['firstpost'] || !is_moderator($fid, "candeletethreads") && !is_moderator($fid, "cansoftdeletethreads") && $pid == $thread['firstpost'])

	{
if($thread['closed'] == 1)
{
error($lang->redirect_threadclosed);
}

	{
if($thread['closed'] == 1)
{
error($lang->redirect_threadclosed);
}

		if($forumpermissions['candeleteposts'] == 0 && $pid != $thread['firstpost'] || $forumpermissions['candeletethreads'] == 0 && $pid == $thread['firstpost'])
{
error_no_permission();

		if($forumpermissions['candeleteposts'] == 0 && $pid != $thread['firstpost'] || $forumpermissions['candeletethreads'] == 0 && $pid == $thread['firstpost'])
{
error_no_permission();

Zeile 131Zeile 134
		{
error_no_permission();
}

		{
error_no_permission();
}

		// User can't delete unapproved post
if($post['visible'] == 0)

		// User can't delete unapproved post unless allowed for own
if($post['visible'] == 0 && !($mybb->settings['showownunapproved'] && $post['uid'] == $mybb->user['uid']))

		{
error_no_permission();
}

		{
error_no_permission();
}

Zeile 162Zeile 165
			error_no_permission();
}
if($mybb->user['uid'] != $post['uid'])

			error_no_permission();
}
if($mybb->user['uid'] != $post['uid'])

		{
error_no_permission();

		{
error_no_permission();

		}
// Edit time limit
$time = TIME_NOW;
if($mybb->usergroup['edittimelimit'] != 0 && $post['dateline'] < ($time-($mybb->usergroup['edittimelimit']*60)))

		}
// Edit time limit
$time = TIME_NOW;
if($mybb->usergroup['edittimelimit'] != 0 && $post['dateline'] < ($time-($mybb->usergroup['edittimelimit']*60)))

		{

		{

			$lang->edit_time_limit = $lang->sprintf($lang->edit_time_limit, $mybb->usergroup['edittimelimit']);
error($lang->edit_time_limit);
}
// User can't edit unapproved post

			$lang->edit_time_limit = $lang->sprintf($lang->edit_time_limit, $mybb->usergroup['edittimelimit']);
error($lang->edit_time_limit);
}
// User can't edit unapproved post

		if($post['visible'] == 0 || $post['visible'] == -1)

		if(($post['visible'] == 0 && !($mybb->settings['showownunapproved'] && $post['uid'] == $mybb->user['uid'])) || $post['visible'] == -1)

		{
error_no_permission();

		{
error_no_permission();

		}

		}

	}

	}

}

}


// Check if this forum is password protected and we have a valid password
check_forum_password($forum['fid']);


// Check if this forum is password protected and we have a valid password
check_forum_password($forum['fid']);

Zeile 189Zeile 192
}

$attacherror = '';

}

$attacherror = '';

if($mybb->settings['enableattachments'] == 1 && !$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && ($mybb->get_input('newattachment') || $mybb->get_input('updateattachment') || ($mybb->input['action'] == "do_editpost" && isset($mybb->input['submit']) && $_FILES['attachment'])))
{

if($mybb->settings['enableattachments'] == 1 && ($mybb->get_input('newattachment') || $mybb->get_input('updateattachment') || ((($mybb->input['action'] == "do_editpost" && isset($mybb->input['submitbutton'])) || ($mybb->input['action'] == "editpost" && isset($mybb->input['previewpost']))) && $_FILES['attachments'])))
{

	// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

if($pid)

	// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

if($pid)

	{

	{

		$attachwhere = "pid='{$pid}'";
}
else
{
$attachwhere = "posthash='".$db->escape_string($mybb->get_input('posthash'))."'";

		$attachwhere = "pid='{$pid}'";
}
else
{
$attachwhere = "posthash='".$db->escape_string($mybb->get_input('posthash'))."'";

	}

$ret = add_attachments($pid, $forumpermissions, $attachwhere, "editpost");






























	}

$ret = add_attachments($pid, $forumpermissions, $attachwhere, "editpost");

if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)
{
if(isset($ret['success']))
{
$attachment = array('aid'=>'{1}', 'icon'=>'{2}', 'filename'=>'{3}', 'size'=>'{4}');
if($mybb->settings['bbcodeinserter'] != 0 && $forum['allowmycode'] != 0 && $mybb->user['showcodebuttons'] != 0)
{
eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");
}
// Moderating options
$attach_mod_options = '';
if(is_moderator($fid))
{
eval("\$attach_mod_options = \"".$templates->get("post_attachments_attachment_mod_unapprove")."\";");
}
eval("\$attach_rem_options = \"".$templates->get("post_attachments_attachment_remove")."\";");
eval("\$attemplate = \"".$templates->get("post_attachments_attachment")."\";");
$ret['template'] = $attemplate;

$query = $db->simple_select("attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'");
$usage = $db->fetch_array($query);
$ret['usage'] = get_friendly_size($usage['ausage']);
}

header("Content-type: application/json; charset={$lang->settings['charset']}");
echo json_encode($ret);
exit();
}


if(!empty($ret['errors']))
{


if(!empty($ret['errors']))
{

Zeile 217Zeile 249
	}

// If we were dealing with an attachment but didn't click 'Update Post', force the post edit page again.

	}

// If we were dealing with an attachment but didn't click 'Update Post', force the post edit page again.

	if(!isset($mybb->input['submit']))

	if(!isset($mybb->input['submitbutton']))

	{
$mybb->input['action'] = "editpost";
}
}

	{
$mybb->input['action'] = "editpost";
}
}

 

detect_attachmentact();


if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && isset($mybb->input['attachmentact']) && $mybb->input['action'] == "do_editpost" && $mybb->request_method == "post") // Lets remove/approve/unapprove the attachment
{


if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && isset($mybb->input['attachmentact']) && $mybb->input['action'] == "do_editpost" && $mybb->request_method == "post") // Lets remove/approve/unapprove the attachment
{

Zeile 230Zeile 264

$mybb->input['attachmentaid'] = $mybb->get_input('attachmentaid', MyBB::INPUT_INT);
if($mybb->input['attachmentact'] == "remove")


$mybb->input['attachmentaid'] = $mybb->get_input('attachmentaid', MyBB::INPUT_INT);
if($mybb->input['attachmentact'] == "remove")

	{

	{

		remove_attachment($pid, "", $mybb->input['attachmentaid']);
}
elseif($mybb->get_input('attachmentact') == "approve" && is_moderator($fid, 'canapproveunapproveattachs'))

		remove_attachment($pid, "", $mybb->input['attachmentaid']);
}
elseif($mybb->get_input('attachmentact') == "approve" && is_moderator($fid, 'canapproveunapproveattachs'))

Zeile 245Zeile 279
		$db->update_query("attachments", $update_sql, "aid='{$mybb->input['attachmentaid']}'");
update_thread_counters($post['tid'], array('attachmentcount' => "-1"));
}

		$db->update_query("attachments", $update_sql, "aid='{$mybb->input['attachmentaid']}'");
update_thread_counters($post['tid'], array('attachmentcount' => "-1"));
}

	if(!isset($mybb->input['submit']))













if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)
{
$query = $db->simple_select("attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'");
$usage = $db->fetch_array($query);

header("Content-type: application/json; charset={$lang->settings['charset']}");
echo json_encode(array("success" => true, "usage" => get_friendly_size($usage['ausage'])));
exit();
}

if(!isset($mybb->input['submitbutton']))

	{
$mybb->input['action'] = "editpost";
}
}

	{
$mybb->input['action'] = "editpost";
}
}





if($mybb->input['action'] == "deletepost" && $mybb->request_method == "post")
{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

$plugins->run_hooks("editpost_deletepost");

if($mybb->input['action'] == "deletepost" && $mybb->request_method == "post")
{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

$plugins->run_hooks("editpost_deletepost");





	if($mybb->get_input('delete', MyBB::INPUT_INT) == 1)
{

	if($mybb->get_input('delete', MyBB::INPUT_INT) == 1)
{

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

		$query = $db->simple_select("posts", "pid", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline, pid"));

		$firstcheck = $db->fetch_array($query);
if($firstcheck['pid'] == $pid)
{

		$firstcheck = $db->fetch_array($query);
if($firstcheck['pid'] == $pid)
{

Zeile 281Zeile 326
				$moderation = new Moderation;

if($mybb->settings['soft_delete'] == 1 || is_moderator($fid, "cansoftdeletethreads"))

				$moderation = new Moderation;

if($mybb->settings['soft_delete'] == 1 || is_moderator($fid, "cansoftdeletethreads"))

				{
$modlogdata['pid'] = $pid;


				{
$modlogdata['pid'] = $pid;


					$moderation->soft_delete_threads(array($tid));
log_moderator_action($modlogdata, $lang->thread_soft_deleted);
}

					$moderation->soft_delete_threads(array($tid));
log_moderator_action($modlogdata, $lang->thread_soft_deleted);
}

Zeile 292Zeile 337
					$moderation->delete_thread($tid);
mark_reports($tid, "thread");
log_moderator_action($modlogdata, $lang->thread_deleted);

					$moderation->delete_thread($tid);
mark_reports($tid, "thread");
log_moderator_action($modlogdata, $lang->thread_deleted);

				}

				}


if($mybb->input['ajax'] == 1)
{


if($mybb->input['ajax'] == 1)
{

Zeile 300Zeile 345
					if(is_moderator($fid, "canviewdeleted"))
{
echo json_encode(array("data" => '1', "first" => '1'));

					if(is_moderator($fid, "canviewdeleted"))
{
echo json_encode(array("data" => '1', "first" => '1'));

					}

					}

					else
{
echo json_encode(array("data" => '3', "url" => get_forum_link($fid)));

					else
{
echo json_encode(array("data" => '3', "url" => get_forum_link($fid)));

Zeile 330Zeile 375

$moderation->soft_delete_posts(array($pid));
log_moderator_action($modlogdata, $lang->post_soft_deleted);


$moderation->soft_delete_posts(array($pid));
log_moderator_action($modlogdata, $lang->post_soft_deleted);

				}
else
{

				}
else
{

					$moderation->delete_post($pid);
mark_reports($pid, "post");
log_moderator_action($modlogdata, $lang->post_deleted);
}


					$moderation->delete_post($pid);
mark_reports($pid, "post");
log_moderator_action($modlogdata, $lang->post_deleted);
}


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

				$query = $db->simple_select("posts", "pid", "tid='{$tid}' AND dateline <= '{$post['dateline']}'", array("limit" => 1, "order_by" => "dateline DESC, pid DESC"));

				$next_post = $db->fetch_array($query);
if($next_post['pid'])

				$next_post = $db->fetch_array($query);
if($next_post['pid'])

				{

				{

					$redirect = get_post_link($next_post['pid'], $tid)."#pid{$next_post['pid']}";

					$redirect = get_post_link($next_post['pid'], $tid)."#pid{$next_post['pid']}";

				}

				}

				else
{
$redirect = get_thread_link($tid);
}


				else
{
$redirect = get_thread_link($tid);
}


				if($mybb->input['ajax'] == 1)

				if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)

				{
header("Content-type: application/json; charset={$lang->settings['charset']}");
if(is_moderator($fid, "canviewdeleted"))

				{
header("Content-type: application/json; charset={$lang->settings['charset']}");
if(is_moderator($fid, "canviewdeleted"))

Zeile 387Zeile 432

if($mybb->get_input('restore', MyBB::INPUT_INT) == 1)
{


if($mybb->get_input('restore', MyBB::INPUT_INT) == 1)
{

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

		$query = $db->simple_select("posts", "pid", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline, pid"));

		$firstcheck = $db->fetch_array($query);
if($firstcheck['pid'] == $pid)
{

		$firstcheck = $db->fetch_array($query);
if($firstcheck['pid'] == $pid)
{

Zeile 456Zeile 501
		error($lang->redirect_norestore);
}
}

		error($lang->redirect_norestore);
}
}

 

$postoptions = array();


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


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

Zeile 555Zeile 602
{
$plugins->run_hooks("editpost_action_start");


{
$plugins->run_hooks("editpost_action_start");


 
	$preview = '';

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

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

Zeile 569Zeile 617
	eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");

$deletebox = '';

	eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");

$deletebox = '';

	// Can we delete posts?
if($post['visible'] != -1 && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))

	
if(isset($post['visible']) && $post['visible'] != -1 && (($thread['firstpost'] == $pid && (is_moderator($fid, "candeletethreads") || $forumpermissions['candeletethreads'] == 1 && $mybb->user['uid'] == $post['uid'])) || ($thread['firstpost'] != $pid && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))))

	{
eval("\$deletebox = \"".$templates->get("editpost_delete")."\";");
}

	{
eval("\$deletebox = \"".$templates->get("editpost_delete")."\";");
}

Zeile 596Zeile 644
			if(is_moderator($fid))
{
if($attachment['visible'] == 1)

			if(is_moderator($fid))
{
if($attachment['visible'] == 1)

				{

				{

					eval("\$attach_mod_options = \"".$templates->get("post_attachments_attachment_mod_unapprove")."\";");
}
else

					eval("\$attach_mod_options = \"".$templates->get("post_attachments_attachment_mod_unapprove")."\";");
}
else

Zeile 636Zeile 684
		{
$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1024);
}

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

		$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = $lang->sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);


















$lang->attach_quota = $lang->sprintf($lang->attach_quota, $friendlyquota);

$link_viewattachments = '';

if($usage['ausage'] !== NULL)
{
$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_usage = $lang->sprintf($lang->attach_usage, $friendlyusage);
eval("\$link_viewattachments = \"".$templates->get("post_attachments_viewlink")."\";");
}
else
{
$lang->attach_usage = "";
}

$attach_update_options = '';


		if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['maxattachments'] != 0 && $attachcount < $mybb->settings['maxattachments']) && !$noshowattach)
{
eval("\$attach_add_options = \"".$templates->get("post_attachments_add")."\";");

		if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['maxattachments'] != 0 && $attachcount < $mybb->settings['maxattachments']) && !$noshowattach)
{
eval("\$attach_add_options = \"".$templates->get("post_attachments_add")."\";");

Zeile 653Zeile 717
			eval("\$newattach = \"".$templates->get("post_attachments_new")."\";");
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");

			eval("\$newattach = \"".$templates->get("post_attachments_new")."\";");
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");

 
	}
else
{
$attachbox = '';

	}
if(!$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment') && !isset($mybb->input['previewpost']))
{

	}
if(!$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment') && !isset($mybb->input['previewpost']))
{

Zeile 666Zeile 734
		$subject = $mybb->get_input('subject');
$reason = htmlspecialchars_uni($mybb->get_input('editreason'));
}

		$subject = $mybb->get_input('subject');
$reason = htmlspecialchars_uni($mybb->get_input('editreason'));
}

 

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


if(!isset($post_errors))
{


if(!isset($post_errors))
{

Zeile 727Zeile 800
		}
else
{

		}
else
{

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

 

$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY);



$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY);


Zeile 793Zeile 862
	}
else if(!$post_errors)
{

	}
else if(!$post_errors)
{

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


 
		$preview = '';

		$preview = '';





		if($post['includesig'] != 0)

		if($post['includesig'] != 0)

		{

		{

			$postoptionschecked['signature'] = " checked=\"checked\"";

			$postoptionschecked['signature'] = " checked=\"checked\"";

		}


		}


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

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

Zeile 810Zeile 876

$subscription_method = get_subscription_method($tid, $postoptions);
${$subscription_method.'subscribe'} = "checked=\"checked\" ";


$subscription_method = get_subscription_method($tid, $postoptions);
${$subscription_method.'subscribe'} = "checked=\"checked\" ";

	}

	}


// Generate thread prefix selector if this is the first post of the thread
if($thread['firstpost'] == $pid)


// Generate thread prefix selector if this is the first post of the thread
if($thread['firstpost'] == $pid)

Zeile 821Zeile 887
		}

$prefixselect = build_prefix_select($forum['fid'], $mybb->get_input('threadprefix', MyBB::INPUT_INT), 0, $thread['prefix']);

		}

$prefixselect = build_prefix_select($forum['fid'], $mybb->get_input('threadprefix', MyBB::INPUT_INT), 0, $thread['prefix']);

	}

	}

	else

	else

	{

	{

		$prefixselect = "";

		$prefixselect = "";

	}

	}


$editreason = '';
if($mybb->settings['alloweditreason'] == 1)


$editreason = '';
if($mybb->settings['alloweditreason'] == 1)

Zeile 833Zeile 899
		eval("\$editreason = \"".$templates->get("editpost_reason")."\";");
$bgcolor = "trow2";
$bgcolor2 = "trow1";

		eval("\$editreason = \"".$templates->get("editpost_reason")."\";");
$bgcolor = "trow2";
$bgcolor2 = "trow1";

	}

	}

	else
{
$bgcolor = "trow1";

	else
{
$bgcolor = "trow1";

Zeile 843Zeile 909
	// Fetch subscription select box
eval("\$subscriptionmethod = \"".$templates->get("post_subscription_method")."\";");


	// Fetch subscription select box
eval("\$subscriptionmethod = \"".$templates->get("post_subscription_method")."\";");


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

	$query = $db->simple_select("posts", "*", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline, pid"));

	$firstcheck = $db->fetch_array($query);

$time = TIME_NOW;

	$firstcheck = $db->fetch_array($query);

$time = TIME_NOW;

Zeile 882Zeile 948
	if($forum['allowsmilies'] != 0)
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");

	if($forum['allowsmilies'] != 0)
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");

	}


	}


	$postoptions = '';
if(!empty($signature) || !empty($disablesmilies))

	$postoptions = '';
if(!empty($signature) || !empty($disablesmilies))

	{

	{

		eval("\$postoptions = \"".$templates->get("editpost_postoptions")."\";");
}


		eval("\$postoptions = \"".$templates->get("editpost_postoptions")."\";");
}


Zeile 894Zeile 960
	if(!is_moderator($forum['fid'], "canapproveunapproveattachs"))
{
if($forumpermissions['modattachments'] == 1 && $forumpermissions['canpostattachments'] != 0)

	if(!is_moderator($forum['fid'], "canapproveunapproveattachs"))
{
if($forumpermissions['modattachments'] == 1 && $forumpermissions['canpostattachments'] != 0)

		{

		{

			$moderation_text = $lang->moderation_forum_attachments;

			$moderation_text = $lang->moderation_forum_attachments;

			eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
}
}


			eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
}
}


	if(!is_moderator($forum['fid'], "canapproveunapproveposts"))
{
if($forumpermissions['mod_edit_posts'] == 1)

	if(!is_moderator($forum['fid'], "canapproveunapproveposts"))
{
if($forumpermissions['mod_edit_posts'] == 1)

Zeile 909Zeile 975
		}
}


		}
}


	$php_max_upload_filesize = return_bytes(ini_get('max_upload_filesize'));
$php_post_max_size = return_bytes(ini_get('post_max_size'));

if ($php_max_upload_filesize != 0 && $php_post_max_size != 0)
{
$php_max_upload_size = min($php_max_upload_filesize, $php_post_max_size);
}
else
{
$php_max_upload_size = max($php_max_upload_filesize, $php_post_max_size);
}


	$php_max_upload_size = get_php_upload_limit();












	$php_max_file_uploads = (int)ini_get('max_file_uploads');
eval("\$post_javascript = \"".$templates->get("post_javascript")."\";");


	$php_max_file_uploads = (int)ini_get('max_file_uploads');
eval("\$post_javascript = \"".$templates->get("post_javascript")."\";");