Vergleich newreply.php - 1.8.7 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'newreply.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'newreply.php');


$templatelist = "newreply,previewpost,loginbox,changeuserbox,posticons,newreply_threadreview,newreply_threadreview_post,forumdisplay_rules_link,newreply_multiquote_external,post_attachments_add,post_subscription_method,postbit_warninglevel_formatted";
$templatelist .= ",smilieinsert,smilieinsert_getmore,smilieinsert_smilie,smilieinsert_smilie_empty,codebuttons,post_attachments_new,post_attachments,post_savedraftbutton,newreply_modoptions,newreply_threadreview_more,newreply_disablesmilies,postbit_online";
$templatelist .= ",postbit_www,postbit_email,postbit_reputation,postbit_warninglevel,postbit_author_user,postbit_edit,postbit_quickdelete,postbit_inlinecheck,postbit_posturl,postbit_quote,postbit_multiquote,postbit_report,postbit_ignored,postbit,postbit_userstar";
$templatelist .= ",post_attachments_attachment_postinsert,post_attachments_attachment_remove,post_attachments_attachment_unapproved,post_attachments_attachment,postbit_attachments_attachment,postbit_attachments,newreply_options_signature,postbit_find";
$templatelist .= ",member_register_regimage,member_register_regimage_recaptcha,post_captcha_hidden,post_captcha,post_captcha_recaptcha,post_captcha_nocaptcha,postbit_groupimage,postbit_away,postbit_offline,postbit_avatar,postbit_icon";
$templatelist .= ",postbit_rep_button,postbit_warn,postbit_author_guest,postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnailpostbit_attachments_images_image,postbit_attachments_attachment_unapproved,postbit_pm,post_attachments_update";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_gotopost,forumdisplay_password_wrongpass,forumdisplay_password,posticons_icon,attachment_icon,postbit_reputation_formatted_link,newreply_disablesmilies_hidden,forumdisplay_rules,global_moderation_notice";


$templatelist = "newreply,previewpost,loginbox,changeuserbox,posticons,newreply_threadreview,newreply_threadreview_post,forumdisplay_rules_link,newreply_multiquote_external,post_attachments_add,post_subscription_method";
$templatelist .= ",codebuttons,post_attachments_new,post_attachments,post_savedraftbutton,newreply_modoptions,newreply_threadreview_more,postbit_online,postbit_pm,newreply_disablesmilies_hidden,post_attachments_update,postbit_icon";
$templatelist .= ",postbit_email,postbit_warninglevel,postbit_author_user,postbit_edit,postbit_quickdelete,postbit_inlinecheck,postbit_posturl,postbit_quote,postbit_multiquote,newreply_modoptions_close,newreply_modoptions_stick";
$templatelist .= ",post_attachments_attachment_postinsert,post_attachments_attachment_remove,post_attachments_attachment_unapproved,post_attachments_attachment,postbit_attachments_attachment,newreply_signature,postbit_report";
$templatelist .= ",member_register_regimage,member_register_regimage_recaptcha,post_captcha_hidden,post_captcha,post_captcha_recaptcha,post_captcha_nocaptcha,postbit_groupimage,postbit_attachments,newreply_postoptions,postbit_reputation";
$templatelist .= ",postbit_rep_button,postbit_warn,postbit_author_guest,postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnailpostbit_attachments_images_image,postbit_attachments_attachment_unapproved,postbit_www";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_gotopost,forumdisplay_password_wrongpass,forumdisplay_password,posticons_icon,attachment_icon,postbit_reputation_formatted_link,postbit_away";
$templatelist .= ",global_moderation_notice,newreply_disablesmilies,postbit_userstar,newreply_draftinput,postbit_avatar,forumdisplay_rules,postbit_offline,postbit_find,postbit_warninglevel_formatted,postbit_ignored,postbit";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 56Zeile 57
	}
$pid = $post['pid'];
$tid = $post['tid'];

	}
$pid = $post['pid'];
$tid = $post['tid'];

	$editdraftpid = "<input type=\"hidden\" name=\"pid\" value=\"$pid\" />";

	eval("\$editdraftpid = \"".$templates->get("newreply_draftinput")."\";");

}

// Set up $thread and $forum for later use.

}

// Set up $thread and $forum for later use.

Zeile 156Zeile 157
// Display a login box or change user box?
if($mybb->user['uid'] != 0)
{

// Display a login box or change user box?
if($mybb->user['uid'] != 0)
{

 
	$mybb->user['username'] = htmlspecialchars_uni($mybb->user['username']);

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

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

Zeile 255Zeile 257

if(!$mybb->get_input('submit'))
{


if(!$mybb->get_input('submit'))
{

		$editdraftpid = "<input type=\"hidden\" name=\"pid\" value=\"$pid\" />";

		eval("\$editdraftpid = \"".$templates->get("newreply_draftinput")."\";");

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

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

Zeile 270Zeile 272
	remove_attachment($pid, $mybb->get_input('posthash'), $mybb->get_input('attachmentaid', MyBB::INPUT_INT));
if(!$mybb->get_input('submit'))
{

	remove_attachment($pid, $mybb->get_input('posthash'), $mybb->get_input('attachmentaid', MyBB::INPUT_INT));
if(!$mybb->get_input('submit'))
{

		$editdraftpid = "<input type=\"hidden\" name=\"pid\" value=\"$pid\" />";

		eval("\$editdraftpid = \"".$templates->get("newreply_draftinput")."\";");

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


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


$reply_errors = $quoted_ids = '';


$reply_errors = '';
$quoted_ids = array();

$hide_captcha = false;

// Check the maximum posts per day for this user

$hide_captcha = false;

// Check the maximum posts per day for this user

Zeile 768Zeile 771
			$group_permissions = forum_permissions();
$onlyusfids = array();
$onlyusforums = '';

			$group_permissions = forum_permissions();
$onlyusfids = array();
$onlyusforums = '';

			foreach($group_permissions as $fid => $forum_permissions)

			foreach($group_permissions as $gpfid => $forum_permissions)

			{
if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1)
{

			{
if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1)
{

					$onlyusfids[] = $fid;

					$onlyusfids[] = $gpfid;

				}
}
if(!empty($onlyusfids))

				}
}
if(!empty($onlyusfids))

Zeile 1353Zeile 1356
			{
$parser_options['allow_videocode'] = 0;
}

			{
$parser_options['allow_videocode'] = 0;
}

 

$post['username'] = htmlspecialchars_uni($post['username']);


if($post['visible'] != 1)
{


if($post['visible'] != 1)
{

Zeile 1373Zeile 1378
			}
}
eval("\$threadreview = \"".$templates->get("newreply_threadreview")."\";");

			}
}
eval("\$threadreview = \"".$templates->get("newreply_threadreview")."\";");

 
	}

// Hide signature option if no permission
$signature = '';
if($mybb->usergroup['canusesig'] == 1 && !$mybb->user['suspendsignature'])
{
eval("\$signature = \"".$templates->get('newreply_signature')."\";");

	}

// Can we disable smilies or are they disabled already?
$disablesmilies = '';
if($forum['allowsmilies'] != 0)

	}

// Can we disable smilies or are they disabled already?
$disablesmilies = '';
if($forum['allowsmilies'] != 0)

	{

	{

		eval("\$disablesmilies = \"".$templates->get("newreply_disablesmilies")."\";");

		eval("\$disablesmilies = \"".$templates->get("newreply_disablesmilies")."\";");

 
	}

$postoptions = '';
if(!empty($signature) || !empty($disablesmilies))
{
eval("\$postoptions = \"".$templates->get("newreply_postoptions")."\";");
$bgcolor = "trow2";

	}
else
{

	}
else
{

		eval("\$disablesmilies = \"".$templates->get("newreply_disablesmilies_hidden")."\";");

		$bgcolor = "trow1";

	}

$modoptions = '';

	}

$modoptions = '';

Zeile 1391Zeile 1410
	if(is_moderator($fid))
{
if($mybb->get_input('processed', MyBB::INPUT_INT))

	if(is_moderator($fid))
{
if($mybb->get_input('processed', MyBB::INPUT_INT))

		{

		{

			$mybb->input['modoptions'] = $mybb->get_input('modoptions', MyBB::INPUT_ARRAY);
if(!isset($mybb->input['modoptions']['closethread']))
{

			$mybb->input['modoptions'] = $mybb->get_input('modoptions', MyBB::INPUT_ARRAY);
if(!isset($mybb->input['modoptions']['closethread']))
{

Zeile 1428Zeile 1447
			$stickycheck = '';
}


			$stickycheck = '';
}


		eval("\$modoptions = \"".$templates->get("newreply_modoptions")."\";");
$bgcolor = "trow1";




















		$closeoption = '';
if(is_moderator($thread['fid'], "canopenclosethreads"))
{
eval("\$closeoption = \"".$templates->get("newreply_modoptions_close")."\";");
}

$stickoption = '';
if(is_moderator($thread['fid'], "canstickunstickthreads"))
{
eval("\$stickoption = \"".$templates->get("newreply_modoptions_stick")."\";");
}

if(!empty($closeoption) || !empty($stickoption))
{
eval("\$modoptions = \"".$templates->get("newreply_modoptions")."\";");
$bgcolor = "trow1";
}
else
{
$bgcolor = "trow2";
}

	}
else
{

	}
else
{