Vergleich misc.php - 1.8.9 - 1.8.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
define("IGNORE_CLEAN_VARS", "sid");
define('THIS_SCRIPT', 'misc.php');


define("IGNORE_CLEAN_VARS", "sid");
define('THIS_SCRIPT', 'misc.php');


$templatelist = "misc_rules_forum,misc_help_helpdoc,misc_whoposted_poster,misc_whoposted,misc_smilies_popup_smilie,misc_smilies_popup,misc_smilies_popup_empty,misc_smilies_popup_row";

$templatelist = "misc_rules_forum,misc_help_helpdoc,misc_whoposted_poster,misc_whoposted,misc_smilies_popup_smilie,misc_smilies_popup,misc_smilies_popup_empty,misc_smilies_popup_row,multipage_start";

$templatelist .= ",misc_buddypopup,misc_buddypopup_user,misc_buddypopup_user_none,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm,misc_syndication_forumlist";
$templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_help_section,misc_help,forumdisplay_password_wrongpass,forumdisplay_password,misc_helpresults,misc_helpresults_bit";

$templatelist .= ",misc_buddypopup,misc_buddypopup_user,misc_buddypopup_user_none,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_sendpm,misc_syndication_forumlist";
$templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_help_section,misc_help,forumdisplay_password_wrongpass,forumdisplay_password,misc_helpresults,misc_helpresults_bit";

$templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";

$templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,misc_imcenter_error";

$templatelist .= ",misc_smilies_popup_no_smilies,misc_smilies_no_smilies,misc_syndication,misc_help_search,misc_helpresults_noresults,misc_syndication_forumlist_forum,misc_syndication_feedurl";

require_once "./global.php";

$templatelist .= ",misc_smilies_popup_no_smilies,misc_smilies_no_smilies,misc_syndication,misc_help_search,misc_helpresults_noresults,misc_syndication_forumlist_forum,misc_syndication_feedurl";

require_once "./global.php";

Zeile 333Zeile 333
			'allow_imgcode' => 0,
'filter_badwords' => 1
);

			'allow_imgcode' => 0,
'filter_badwords' => 1
);

		$helpdoc['helpdoc'] = strip_tags($parser->parse_message($helpdoc['document'], $parser_options));

		$helpdoc['helpdoc'] = my_strip_tags($parser->parse_message($helpdoc['document'], $parser_options));


if(my_strlen($helpdoc['helpdoc']) > 350)
{


if(my_strlen($helpdoc['helpdoc']) > 350)
{

Zeile 806Zeile 806
	$mybb->input['imtype'] = $mybb->get_input('imtype');
if($mybb->input['imtype'] != "aim" && $mybb->input['imtype'] != "skype" && $mybb->input['imtype'] != "yahoo")
{

	$mybb->input['imtype'] = $mybb->get_input('imtype');
if($mybb->input['imtype'] != "aim" && $mybb->input['imtype'] != "skype" && $mybb->input['imtype'] != "yahoo")
{

		error($lang->error_invalidimtype);
}





		$message = $lang->error_invalidimtype;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0)."\";");
echo $error;
exit;
}


	$uid = $mybb->get_input('uid', MyBB::INPUT_INT);
$user = get_user($uid);

	$uid = $mybb->get_input('uid', MyBB::INPUT_INT);
$user = get_user($uid);





	if(!$user)

	if(!$user)

	{
error($lang->error_invaliduser);
}





	{
$message = $lang->error_invaliduser;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0)."\";");
echo $error;
exit;
}


	if(empty($user[$mybb->input['imtype']]))
{

	if(empty($user[$mybb->input['imtype']]))
{

		error($lang->error_invalidimtype);




		$message = $lang->error_invalidimtype;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0)."\";");
echo $error;
exit;

	}

$settingkey = 'allow'.$mybb->input['imtype'].'field';
if(!is_member($mybb->settings[$settingkey], $user))

	}

$settingkey = 'allow'.$mybb->input['imtype'].'field';
if(!is_member($mybb->settings[$settingkey], $user))

	{
error_no_permission();




	{
$message = $lang->error_nopermission_user_ajax;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0)."\";");
echo $error;
exit;

	}

// Build IM navigation bar
$navigationbar = $navsep = $imtype = $imtype_lang = '';

	}

// Build IM navigation bar
$navigationbar = $navsep = $imtype = $imtype_lang = '';

	if($user['aim'])

	if(!empty($user['aim']) && is_member($mybb->settings['allowaimfield'], array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['additionalgroups'])))

	{
$imtype = "aim";
$imtype_lang = $lang->aol_im;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");
$navsep = ' - ';
}

	{
$imtype = "aim";
$imtype_lang = $lang->aol_im;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");
$navsep = ' - ';
}

	if($user['skype'])

	if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield'], array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['additionalgroups'])))

	{
$imtype = "skype";
$imtype_lang = $lang->skype;

	{
$imtype = "skype";
$imtype_lang = $lang->skype;

		eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");

		eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");

		$navsep = ' - ';
}

		$navsep = ' - ';
}

	if($user['yahoo'])

	if(!empty($user['yahoo']) && is_member($mybb->settings['allowyahoofield'], array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['additionalgroups'])))

	{
$imtype = "yahoo";
$imtype_lang = $lang->yahoo_im;

	{
$imtype = "yahoo";
$imtype_lang = $lang->yahoo_im;

Zeile 858Zeile 871

$lang->chat_on_skype = $lang->sprintf($lang->chat_on_skype, $user['username']);
$lang->call_on_skype = $lang->sprintf($lang->call_on_skype, $user['username']);


$lang->chat_on_skype = $lang->sprintf($lang->chat_on_skype, $user['username']);
$lang->call_on_skype = $lang->sprintf($lang->call_on_skype, $user['username']);

	$lang->send_y_message = $lang->sprintf($lang->send_y_message, $user['username']);
$lang->view_y_profile = $lang->sprintf($lang->view_y_profile, $user['username']);

 

$imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate, 1, 0)."\";");


$imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate, 1, 0)."\";");

Zeile 872Zeile 883

$fid = $mybb->get_input('fid', MyBB::INPUT_INT);
$version = $mybb->get_input('version');


$fid = $mybb->get_input('fid', MyBB::INPUT_INT);
$version = $mybb->get_input('version');

	$limit = $mybb->get_input('limit', MyBB::INPUT_INT);

	$new_limit = $mybb->get_input('limit', MyBB::INPUT_INT);

	$forums = $mybb->get_input('forums', MyBB::INPUT_ARRAY);
$limit = 15;

	$forums = $mybb->get_input('forums', MyBB::INPUT_ARRAY);
$limit = 15;

 
	if(!empty($new_limit) && $new_limit != $limit)
{
$limit = $new_limit;
}

	$feedurl = '';
$add = false;


	$feedurl = '';
$add = false;


Zeile 902Zeile 917
				$all = true;
break;
}

				$all = true;
break;
}

			elseif(is_numeric($fid))

			elseif(ctype_digit($fid))

			{
if(!isset($unview[$fid]))
{

			{
if(!isset($unview[$fid]))
{

Zeile 935Zeile 950
		}
if((int)$limit > 0)
{

		}
if((int)$limit > 0)
{

			if($limit > 100)

			if($limit > 50)

			{

			{

				$limit = 100;

				$limit = 50;

			}
if(!$add)
{

			}
if(!$add)
{