Vergleich misc.php - 1.8.15 - 1.8.19

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 268Zeile 268
	{
$mybb->settings['threadsperpage'] = 20;
}

	{
$mybb->settings['threadsperpage'] = 20;
}

 

$query = $db->simple_select("helpdocs", "COUNT(*) AS total", "hid IN(".$db->escape_string($search['querycache']).")");
$helpcount = $db->fetch_field($query, "total");


// Work out pagination, which page we're at, as well as the limits.
$perpage = $mybb->settings['threadsperpage'];


// Work out pagination, which page we're at, as well as the limits.
$perpage = $mybb->settings['threadsperpage'];

Zeile 275Zeile 278
	if($page > 0)
{
$start = ($page-1) * $perpage;

	if($page > 0)
{
$start = ($page-1) * $perpage;

	}







		$pages = ceil($helpcount / $perpage);
if($pages > $page)
{
$start = 0;
$page = 1;
}
}

	else
{
$start = 0;

	else
{
$start = 0;

Zeile 293Zeile 302
	}

// Do Multi Pages

	}

// Do Multi Pages

	$query = $db->simple_select("helpdocs", "COUNT(*) AS total", "hid IN(".$db->escape_string($search['querycache']).")");
$helpcount = $db->fetch_array($query);


 
	if($upper > $helpcount)
{
$upper = $helpcount;
}

	if($upper > $helpcount)
{
$upper = $helpcount;
}

	$multipage = multipage($helpcount['total'], $perpage, $page, "misc.php?action=helpresults&sid='".htmlspecialchars_uni($mybb->get_input('sid'))."'");

	$multipage = multipage($helpcount, $perpage, $page, "misc.php?action=helpresults&sid='".htmlspecialchars_uni($mybb->get_input('sid'))."'");

	$helpdoclist = '';

require_once MYBB_ROOT."inc/class_parser.php";

	$helpdoclist = '';

require_once MYBB_ROOT."inc/class_parser.php";

Zeile 333Zeile 339
			'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 496
						$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")."\";");

			}
}


			}
}


		if($mybb->settings['helpsearch'] == 1)
{
eval("\$search = \"".$templates->get("misc_help_search")."\";");

		if($mybb->settings['helpsearch'] == 1)
{
eval("\$search = \"".$templates->get("misc_help_search")."\";");

		}

$plugins->run_hooks("misc_help_section_end");


		}

$plugins->run_hooks("misc_help_section_end");


		eval("\$help = \"".$templates->get("misc_help")."\";");
output_page($help);
}

		eval("\$help = \"".$templates->get("misc_help")."\";");
output_page($help);
}

Zeile 574Zeile 582
			$buddy['avatar'] = format_avatar($buddy['avatar'], $buddy['avatardimensions'], '44x44');

if($buddy['lastactive'] > $timecut && ($buddy['invisible'] == 0 || $mybb->user['usergroup'] == 4) && $buddy['lastvisit'] != $buddy['lastactive'])

			$buddy['avatar'] = format_avatar($buddy['avatar'], $buddy['avatardimensions'], '44x44');

if($buddy['lastactive'] > $timecut && ($buddy['invisible'] == 0 || $mybb->user['usergroup'] == 4) && $buddy['lastvisit'] != $buddy['lastactive'])

			{

			{

				$bonline_alt = alt_trow();
eval("\$buddys['online'] .= \"".$templates->get("misc_buddypopup_user_online")."\";");

				$bonline_alt = alt_trow();
eval("\$buddys['online'] .= \"".$templates->get("misc_buddypopup_user_online")."\";");

			}

			}

			else
{
$boffline_alt = alt_trow();
eval("\$buddys['offline'] .= \"".$templates->get("misc_buddypopup_user_offline")."\";");
}

			else
{
$boffline_alt = alt_trow();
eval("\$buddys['offline'] .= \"".$templates->get("misc_buddypopup_user_offline")."\";");
}

		}

		}


$colspan = ' colspan="2"';
if(empty($buddys['online']))


$colspan = ' colspan="2"';
if(empty($buddys['online']))

Zeile 599Zeile 607
		}

eval("\$buddies = \"".$templates->get("misc_buddypopup_user")."\";");

		}

eval("\$buddies = \"".$templates->get("misc_buddypopup_user")."\";");

	}
else
{

	}
else
{

		// No buddies? :(
$colspan = '';
$error = $lang->no_buddies;

		// No buddies? :(
$colspan = '';
$error = $lang->no_buddies;

Zeile 638Zeile 646
	if(is_moderator($thread['fid'], "canviewdeleted") || is_moderator($thread['fid'], "canviewunapprove"))
{
if(is_moderator($thread['fid'], "canviewunapprove") && !is_moderator($thread['fid'], "canviewdeleted"))

	if(is_moderator($thread['fid'], "canviewdeleted") || is_moderator($thread['fid'], "canviewunapprove"))
{
if(is_moderator($thread['fid'], "canviewunapprove") && !is_moderator($thread['fid'], "canviewdeleted"))

		{

		{

			$show_posts = "p.visible IN (0,1)";

			$show_posts = "p.visible IN (0,1)";

		}

		}

		elseif(is_moderator($thread['fid'], "canviewdeleted") && !is_moderator($thread['fid'], "canviewunapprove"))

		elseif(is_moderator($thread['fid'], "canviewdeleted") && !is_moderator($thread['fid'], "canviewunapprove"))

		{

		{

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

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

		}

		}

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

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

		}
}
else
{

		}
}
else
{

		$show_posts = "p.visible = 1";
}


		$show_posts = "p.visible = 1";
}


Zeile 843Zeile 851
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 881Zeile 889

// 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";

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

Zeile 904Zeile 905

$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 1091Zeile 1091
						$selecteddone = "1";
}


						$selecteddone = "1";
}


					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']))

					if($forum['password'] == '' && !in_array($forum['fid'], $unexp) || $forum['password'] && isset($mybb->cookies['forumpass'][$forum['fid']]) && my_hash_equals($mybb->cookies['forumpass'][$forum['fid']], md5($mybb->user['uid'].$forum['password'])))

					{
eval("\$forumlistbits .= \"".$templates->get("misc_syndication_forumlist_forum")."\";");
}

					{
eval("\$forumlistbits .= \"".$templates->get("misc_syndication_forumlist_forum")."\";");
}