Vergleich misc.php - 1.8.12 - 1.8.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 16Zeile 16
$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,misc_imcenter_error";

$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,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";

$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,misc_whoposted_page";


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 333Zeile 333
			'allow_imgcode' => 0,
'filter_badwords' => 1
);

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

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

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


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


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

Zeile 490Zeile 490
						$expcolimage = "collapse_collapsed.png";
$expdisplay = "display: none;";
$expthead = " thead_collapsed";

						$expcolimage = "collapse_collapsed.png";
$expdisplay = "display: none;";
$expthead = " thead_collapsed";

 
						$expaltext = "[+]";

					}
else
{
$expcolimage = "collapse.png";
$expthead = "";

					}
else
{
$expcolimage = "collapse.png";
$expthead = "";

 
						$expaltext = "[-]";

					}
}
eval("\$sections .= \"".$templates->get("misc_help_section")."\";");

					}
}
eval("\$sections .= \"".$templates->get("misc_help_section")."\";");

Zeile 621Zeile 623
	$whoposted = '';
$tid = $mybb->get_input('tid', MyBB::INPUT_INT);
$thread = get_thread($tid);

	$whoposted = '';
$tid = $mybb->get_input('tid', MyBB::INPUT_INT);
$thread = get_thread($tid);

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


// Make sure we are looking at a real thread here.
if(!$thread)


// Make sure we are looking at a real thread here.
if(!$thread)

Zeile 698Zeile 701
		$poster['username'] = htmlspecialchars_uni($poster['username']);
$poster['postusername'] = htmlspecialchars_uni($poster['postusername']);
$poster_name = format_name($poster['username'], $poster['usergroup'], $poster['displaygroup']);

		$poster['username'] = htmlspecialchars_uni($poster['username']);
$poster['postusername'] = htmlspecialchars_uni($poster['postusername']);
$poster_name = format_name($poster['username'], $poster['usergroup'], $poster['displaygroup']);

		if($poster['uid'])

		if($modal)

		{

		{

			$onclick = "opener.location.href='".get_profile_link($poster['uid'])."'; return false;";










			$onclick = '';
if($poster['uid'])
{
$onclick = "opener.location.href='".get_profile_link($poster['uid'])."'; return false;";
}
$profile_link = build_profile_link($poster_name, $poster['uid'], '_blank', $onclick);
}
else
{
$profile_link = build_profile_link($poster_name, $poster['uid']);

		}

		}

		$profile_link = build_profile_link($poster_name, $poster['uid'], '_blank', $onclick);

 
		$numposts += $poster['posts'];
eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();
}
$numposts = my_number_format($numposts);
$poster['posts'] = my_number_format($poster['posts']);

		$numposts += $poster['posts'];
eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();
}
$numposts = my_number_format($numposts);
$poster['posts'] = my_number_format($poster['posts']);

	eval("\$whop = \"".$templates->get("misc_whoposted", 1, 0)."\";");
echo $whop;
exit;































	if($modal)
{
eval("\$whop = \"".$templates->get("misc_whoposted", 1, 0)."\";");
echo $whop;
exit;
}
else
{
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

// Get thread prefix
$breadcrumbprefix = '';
$threadprefix = array('prefix' => '');
if($thread['prefix'])
{
$threadprefix = build_prefixes($thread['prefix']);
if(!empty($threadprefix['displaystyle']))
{
$breadcrumbprefix = $threadprefix['displaystyle'].' ';
}
}

$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));

// Build the navigation.
build_forum_breadcrumb($forum['fid']);
add_breadcrumb($breadcrumbprefix.$thread['subject'], get_thread_link($thread['tid']));
add_breadcrumb($lang->who_posted);

eval("\$whoposted = \"".$templates->get("misc_whoposted_page")."\";");
output_page($whoposted);
}

}
elseif($mybb->input['action'] == "smilies")
{

}
elseif($mybb->input['action'] == "smilies")
{

Zeile 729Zeile 770
			$extra_class = ' smilie_pointer';
foreach($smilies_cache as $smilie)
{

			$extra_class = ' smilie_pointer';
foreach($smilies_cache as $smilie)
{

 
				if($smilie['showclickable'] != 1)
{
continue;
}

				$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']);
$smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image']));

				$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']);
$smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image']));

				$smilie['name'] = htmlspecialchars_uni($smilie['name']);				


				$smilie['name'] = htmlspecialchars_uni($smilie['name']);


				// Only show the first text to replace in the box
$temp = explode("\n", $smilie['find']); // use temporary variable for php 5.3 compatibility
$smilie['find'] = $temp[0];

				// Only show the first text to replace in the box
$temp = explode("\n", $smilie['find']); // use temporary variable for php 5.3 compatibility
$smilie['find'] = $temp[0];

Zeile 749Zeile 794
					$smile_icons = '';
$e = 1;
$class = alt_trow();

					$smile_icons = '';
$e = 1;
$class = alt_trow();

				}

				}

				else
{
$e = 2;

				else
{
$e = 2;

				}
}
}

				}
}
}


if($e == 2)


if($e == 2)

		{
eval("\$smilies .= \"".$templates->get("misc_smilies_popup_empty")."\";");
}

		{
eval("\$smilies .= \"".$templates->get("misc_smilies_popup_empty")."\";");
}


if(!$smilies)
{
eval("\$smilies = \"".$templates->get("misc_smilies_popup_no_smilies")."\";");


if(!$smilies)
{
eval("\$smilies = \"".$templates->get("misc_smilies_popup_no_smilies")."\";");

		}


		}


		eval("\$smiliespage = \"".$templates->get("misc_smilies_popup", 1, 0)."\";");
output_page($smiliespage);
}

		eval("\$smiliespage = \"".$templates->get("misc_smilies_popup", 1, 0)."\";");
output_page($smiliespage);
}

Zeile 777Zeile 822
		$smilies_cache = $cache->read("smilies");

if(is_array($smilies_cache))

		$smilies_cache = $cache->read("smilies");

if(is_array($smilies_cache))

		{

		{

			$extra_class = $onclick = '';
foreach($smilies_cache as $smilie)
{

			$extra_class = $onclick = '';
foreach($smilies_cache as $smilie)
{

 
				if($smilie['showclickable'] != 1)
{
continue;
}

				$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']);
$smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image']));

				$smilie['image'] = str_replace("{theme}", $theme['imgdir'], $smilie['image']);
$smilie['image'] = htmlspecialchars_uni($mybb->get_asset_url($smilie['image']));

				$smilie['name'] = htmlspecialchars_uni($smilie['name']);				


				$smilie['name'] = htmlspecialchars_uni($smilie['name']);


				$smilie['find'] = nl2br(htmlspecialchars_uni($smilie['find']));
eval('$smilie_image = "'.$templates->get('smilie').'";');
eval("\$smilies .= \"".$templates->get("misc_smilies_smilie")."\";");

				$smilie['find'] = nl2br(htmlspecialchars_uni($smilie['find']));
eval('$smilie_image = "'.$templates->get('smilie').'";');
eval("\$smilies .= \"".$templates->get("misc_smilies_smilie")."\";");

Zeile 795Zeile 844
		if(!$smilies)
{
eval("\$smilies = \"".$templates->get("misc_smilies_no_smilies")."\";");

		if(!$smilies)
{
eval("\$smilies = \"".$templates->get("misc_smilies_no_smilies")."\";");

		}

		}


eval("\$smiliespage = \"".$templates->get("misc_smilies")."\";");
output_page($smiliespage);


eval("\$smiliespage = \"".$templates->get("misc_smilies")."\";");
output_page($smiliespage);

Zeile 804Zeile 853
elseif($mybb->input['action'] == "imcenter")
{
$mybb->input['imtype'] = $mybb->get_input('imtype');

elseif($mybb->input['action'] == "imcenter")
{
$mybb->input['imtype'] = $mybb->get_input('imtype');

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

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

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

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

Zeile 842Zeile 891

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


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

	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 = ' - ';
}

 
	if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield'], array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['additionalgroups'])))
{
$imtype = "skype";
$imtype_lang = $lang->skype;

	if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield'], array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['additionalgroups'])))
{
$imtype = "skype";
$imtype_lang = $lang->skype;

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

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

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

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

Zeile 862Zeile 904
		$imtype_lang = $lang->yahoo_im;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");
}

		$imtype_lang = $lang->yahoo_im;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")."\";");
}

	



	$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);

	$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);

	$user['aim'] = htmlspecialchars_uni($user['aim']);

 

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



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


Zeile 889Zeile 930
	if(!empty($new_limit) && $new_limit != $limit)
{
$limit = $new_limit;

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

	}

	}

	$feedurl = '';
$add = false;

	$feedurl = '';
$add = false;





	add_breadcrumb($lang->nav_syndication);
$unviewable = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$unexp1 = explode(',', $unviewable);
$unexp2 = explode(',', $inactiveforums);
$unexp = array_merge($unexp1, $unexp2);

	add_breadcrumb($lang->nav_syndication);
$unviewable = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$unexp1 = explode(',', $unviewable);
$unexp2 = explode(',', $inactiveforums);
$unexp = array_merge($unexp1, $unexp2);

	



	if(is_array($forums))
{
foreach($unexp as $fid)

	if(is_array($forums))
{
foreach($unexp as $fid)

Zeile 978Zeile 1019
		$rss2check = '';
}
else

		$rss2check = '';
}
else

	{

	{

		$atom1check = '';
$rss2check = "checked=\"checked\"";
}

		$atom1check = '';
$rss2check = "checked=\"checked\"";
}

Zeile 1017Zeile 1058
function makesyndicateforums($pid=0, $selitem="", $addselect=true, $depth="")
{
global $db, $forumcache, $permissioncache, $mybb, $forumlist, $forumlistbits, $flist, $lang, $unexp, $templates;

function makesyndicateforums($pid=0, $selitem="", $addselect=true, $depth="")
{
global $db, $forumcache, $permissioncache, $mybb, $forumlist, $forumlistbits, $flist, $lang, $unexp, $templates;





	$pid = (int)$pid;
$forumlist = '';

if(!is_array($forumcache))

	$pid = (int)$pid;
$forumlist = '';

if(!is_array($forumcache))

	{

	{

		// Get Forums
$query = $db->simple_select("forums", "*", "linkto = '' AND active!=0", array('order_by' => 'pid, disporder'));
while($forum = $db->fetch_array($query))
{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

		// Get Forums
$query = $db->simple_select("forums", "*", "linkto = '' AND active!=0", array('order_by' => 'pid, disporder'));
while($forum = $db->fetch_array($query))
{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

		}

		}

	}

if(!is_array($permissioncache))

	}

if(!is_array($permissioncache))

Zeile 1055Zeile 1096
					if($forum['password'] == '' && !in_array($forum['fid'], $unexp) || $forum['password'] && isset($mybb->cookies['forumpass'][$forum['fid']]) && $mybb->cookies['forumpass'][$forum['fid']] === md5($mybb->user['uid'].$forum['password']))
{
eval("\$forumlistbits .= \"".$templates->get("misc_syndication_forumlist_forum")."\";");

					if($forum['password'] == '' && !in_array($forum['fid'], $unexp) || $forum['password'] && isset($mybb->cookies['forumpass'][$forum['fid']]) && $mybb->cookies['forumpass'][$forum['fid']] === md5($mybb->user['uid'].$forum['password']))
{
eval("\$forumlistbits .= \"".$templates->get("misc_syndication_forumlist_forum")."\";");

					}

					}


if(!empty($forumcache[$forum['fid']]))
{


if(!empty($forumcache[$forum['fid']]))
{

Zeile 1066Zeile 1107
			}
}
}

			}
}
}

	



	if($addselect)
{
$addsel = '';

	if($addselect)
{
$addsel = '';