Vergleich misc.php - 1.6.2 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: misc.php 5114 2010-07-25 22:52:44Z RyanGordon $

 * $Id: misc.php 5714 2011-12-08 16:07:00Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 49Zeile 49
}
if($mybb->input['action'] == "markread")
{

}
if($mybb->input['action'] == "markread")
{

 
	if($mybb->user['uid'] && verify_post_check($mybb->input['my_post_key'], true) !== true)
{
// Protect our user's unread forums from CSRF
error($lang->invalid_post_code);
}


	if($mybb->input['fid'])

	if($mybb->input['fid'])

	{

	{

		$mybb->input['fid'] = intval($mybb->input['fid']);
$validforum = get_forum($mybb->input['fid']);
if(!$validforum)

		$mybb->input['fid'] = intval($mybb->input['fid']);
$validforum = get_forum($mybb->input['fid']);
if(!$validforum)

		{

		{

			if(!$mybb->input['ajax'])
{
error($lang->error_invalidforum);

			if(!$mybb->input['ajax'])
{
error($lang->error_invalidforum);

			}

			}

			else
{
echo 0;

			else
{
echo 0;

Zeile 70Zeile 76
		mark_forum_read($mybb->input['fid']);

$plugins->run_hooks("misc_markread_forum");

		mark_forum_read($mybb->input['fid']);

$plugins->run_hooks("misc_markread_forum");





		if(!$mybb->input['ajax'])
{
redirect(get_forum_link($mybb->input['fid']), $lang->redirect_markforumread);

		if(!$mybb->input['ajax'])
{
redirect(get_forum_link($mybb->input['fid']), $lang->redirect_markforumread);

		}

		}

		else
{
echo 1;
exit;

		else
{
echo 1;
exit;

		}
}
else
{


		}
}
else
{


		$plugins->run_hooks("misc_markread_end");
require_once MYBB_ROOT."/inc/functions_indicators.php";
mark_all_forums_read();

		$plugins->run_hooks("misc_markread_end");
require_once MYBB_ROOT."/inc/functions_indicators.php";
mark_all_forums_read();

Zeile 96Zeile 102

if($mybb->input['fid'])
{


if($mybb->input['fid'])
{

 
		if(!verify_post_check($mybb->input['my_post_key']))
{
error($lang->invalid_post_code);
}


		my_unsetcookie("forumpass[".intval($mybb->input['fid'])."]");
redirect("index.php", $lang->redirect_forumpasscleared);
}

		my_unsetcookie("forumpass[".intval($mybb->input['fid'])."]");
redirect("index.php", $lang->redirect_forumpasscleared);
}

Zeile 288Zeile 299

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


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

	}

	}

}
elseif($mybb->input['action'] == "buddypopup")
{
$plugins->run_hooks("misc_buddypopup_start");

}
elseif($mybb->input['action'] == "buddypopup")
{
$plugins->run_hooks("misc_buddypopup_start");





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

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

	}
if($mybb->input['removebuddy'])

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

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

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

Zeile 320Zeile 331
	if($mybb->user['buddylist'] != "")
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

	if($mybb->user['buddylist'] != "")
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

		$query = $db->query("
SELECT u.*, g.canusepms
FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
WHERE u.uid IN ({$mybb->user['buddylist']})
ORDER BY u.lastactive
");

		$query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array('order_by' => 'lastactive'));







		while($buddy = $db->fetch_array($query))
{
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']);
$profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank', 'if(window.opener) { window.opener.location = this.href; return false; }');

		while($buddy = $db->fetch_array($query))
{
$buddy_name = format_name($buddy['username'], $buddy['usergroup'], $buddy['displaygroup']);
$profile_link = build_profile_link($buddy_name, $buddy['uid'], '_blank', 'if(window.opener) { window.opener.location = this.href; return false; }');

			if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $buddy['canusepms'] != 0)



if($mybb->user['receivepms'] != 0 && $buddy['receivepms'] != 0 && $groupscache[$buddy['usergroup']]['canusepms'] != 0)

			{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");
}

			{
eval("\$send_pm = \"".$templates->get("misc_buddypopup_user_sendpm")."\";");
}

Zeile 350Zeile 357

if($buddy['avatar'])
{


if($buddy['avatar'])
{

 
				$buddy['avatar'] = htmlspecialchars_uni($buddy['avatar']);

				if($buddy['avatardimensions'])
{
require_once MYBB_ROOT."inc/functions_image.php";

				if($buddy['avatardimensions'])
{
require_once MYBB_ROOT."inc/functions_image.php";