Vergleich misc.php - 1.8.22 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 15Zeile 15
$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_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 .= ",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,misc_whoposted_page";

$templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,misc_whoposted_page";
$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";
require_once MYBB_ROOT."inc/functions_post.php";


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

Zeile 405Zeile 405
				$langnamevar = "d".$helpdoc['hid']."_name";
$langdescvar = "d".$helpdoc['hid']."_desc";
$langdocvar = "d".$helpdoc['hid']."_document";

				$langnamevar = "d".$helpdoc['hid']."_name";
$langdescvar = "d".$helpdoc['hid']."_desc";
$langdocvar = "d".$helpdoc['hid']."_document";

				if($lang->$langnamevar)
{

				if(isset($lang->$langnamevar))
{

					$helpdoc['name'] = $lang->$langnamevar;
}

					$helpdoc['name'] = $lang->$langnamevar;
}

				if($lang->$langdescvar)
{
$helpdoc['description'] = $lang->$langdescvar;
}
if($lang->$langdocvar)

				if(isset($lang->$langdescvar))
{
$helpdoc['description'] = $lang->$langdescvar;
}
if(isset($lang->$langdocvar))

				{
$helpdoc['document'] = $lang->$langdocvar;
}

				{
$helpdoc['document'] = $lang->$langdocvar;
}

Zeile 434Zeile 434
		else
{
error($lang->error_invalidhelpdoc);

		else
{
error($lang->error_invalidhelpdoc);

		}

		}

	}
else
{

	}
else
{

Zeile 455Zeile 455
				$langnamevar = "s".$section['sid']."_name";
$langdescvar = "s".$section['sid']."_desc";
if($lang->$langnamevar)

				$langnamevar = "s".$section['sid']."_name";
$langdescvar = "s".$section['sid']."_desc";
if($lang->$langnamevar)

				{

				{

					$section['name'] = $lang->$langnamevar;

					$section['name'] = $lang->$langnamevar;

				}

				}

				if($lang->$langdescvar)
{
$section['description'] = $lang->$langdescvar;

				if($lang->$langdescvar)
{
$section['description'] = $lang->$langdescvar;

				}

				}

			}
if(is_array($helpdocs[$section['sid']]))
{

			}
if(is_array($helpdocs[$section['sid']]))
{

Zeile 476Zeile 476
							{
$langnamevar = "d".$helpdoc['hid'].'_name';
$langdescvar = "d".$helpdoc['hid'].'_desc';

							{
$langnamevar = "d".$helpdoc['hid'].'_name';
$langdescvar = "d".$helpdoc['hid'].'_desc';

								if($lang->$langnamevar)

								if(isset($lang->$langnamevar))

								{
$helpdoc['name'] = $lang->$langnamevar;
}

								{
$helpdoc['name'] = $lang->$langnamevar;
}

								if($lang->$langdescvar)

								if(isset($lang->$langdescvar))

								{
$helpdoc['description'] = $lang->$langdescvar;
}

								{
$helpdoc['description'] = $lang->$langdescvar;
}

Zeile 490Zeile 490
						}
}
$expdisplay = '';

						}
}
$expdisplay = '';

					$sname = "sid_".$section['sid']."_c";
if(isset($collapsed[$sname]) && $collapsed[$sname] == "display: show;")

					$sname = "sid_".$section['sid']."_e";
if(isset($collapsed[$sname]) && $collapsed[$sname] == "display: none;")

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

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

						$expaltext = "[+]";

						$expaltext = $lang->expcol_expand;

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

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

						$expaltext = "[-]";

						$expaltext = $lang->expcol_collapse;

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

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

		}

		}


if($mybb->settings['helpsearch'] == 1)
{


if($mybb->settings['helpsearch'] == 1)
{

Zeile 521Zeile 521
	}
}
elseif($mybb->input['action'] == "buddypopup")

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

{

{

	$plugins->run_hooks("misc_buddypopup_start");

if($mybb->user['uid'] == 0)

	$plugins->run_hooks("misc_buddypopup_start");

if($mybb->user['uid'] == 0)

Zeile 529Zeile 529
		error_no_permission();
}


		error_no_permission();
}


	if(isset($mybb->input['removebuddy']) && verify_post_check($mybb->input['my_post_key']))

	if(isset($mybb->input['removebuddy']) && verify_post_check($mybb->get_input('my_post_key')))

	{
$buddies = $mybb->user['buddylist'];
$namesarray = explode(",", $buddies);

	{
$buddies = $mybb->user['buddylist'];
$namesarray = explode(",", $buddies);

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

	$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)

	{
error($lang->error_invalidthread);
}


	{
error($lang->error_invalidthread);
}


	// Make sure we are looking at a real thread here.
if(($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted")) || ($thread['visible'] == 0 && !is_moderator($thread['fid'], "canviewunapprove")) || $thread['visible'] > 1)
{

	// Make sure we are looking at a real thread here.
if(($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted")) || ($thread['visible'] == 0 && !is_moderator($thread['fid'], "canviewunapprove")) || $thread['visible'] > 1)
{

Zeile 650Zeile 650
			$show_posts = "p.visible IN (0,1)";
}
elseif(is_moderator($thread['fid'], "canviewdeleted") && !is_moderator($thread['fid'], "canviewunapprove"))

			$show_posts = "p.visible IN (0,1)";
}
elseif(is_moderator($thread['fid'], "canviewdeleted") && !is_moderator($thread['fid'], "canviewunapprove"))

		{

		{

			$show_posts = "p.visible IN (-1,1)";
}
else

			$show_posts = "p.visible IN (-1,1)";
}
else

Zeile 676Zeile 676
	if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
{
error_no_permission();

	if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
{
error_no_permission();

	}


	}


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

if($mybb->get_input('sort') != 'username')
{
$sortsql = ' ORDER BY posts DESC';

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

if($mybb->get_input('sort') != 'username')
{
$sortsql = ' ORDER BY posts DESC';

	}

	}

	else
{
$sortsql = ' ORDER BY p.username ASC';

	else
{
$sortsql = ' ORDER BY p.username ASC';

Zeile 721Zeile 721
			$profile_link = build_profile_link($poster_name, $poster['uid']);
}
$numposts += $poster['posts'];

			$profile_link = build_profile_link($poster_name, $poster['uid']);
}
$numposts += $poster['posts'];

 
		$poster['posts'] = my_number_format($poster['posts']);

		eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();
}
$numposts = my_number_format($numposts);

		eval("\$whoposted .= \"".$templates->get("misc_whoposted_poster")."\";");
$altbg = alt_trow();
}
$numposts = my_number_format($numposts);

	$poster['posts'] = my_number_format($poster['posts']);

 
	if($modal)
{
eval("\$whop = \"".$templates->get("misc_whoposted", 1, 0)."\";");

	if($modal)
{
eval("\$whop = \"".$templates->get("misc_whoposted", 1, 0)."\";");

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

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

}

elseif($mybb->input['action'] == "imcenter")
{
$mybb->input['imtype'] = $mybb->get_input('imtype');
if($mybb->input['imtype'] != "skype")
{
$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);

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

if(empty($user[$mybb->input['imtype']]))
{
$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))
{
$message = $lang->error_nopermission_user_ajax;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0)."\";");
echo $error;
exit;
}

// Build IM navigation bar
$navigationbar = $imtype = $imtype_lang = '';
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")."\";");
}

$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['username'] = htmlspecialchars_uni($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']);

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

 
}

elseif($mybb->input['action'] == "syndication")

}

elseif($mybb->input['action'] == "syndication")