Vergleich misc.php - 1.6.1 - 1.6.5

  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 5641 2011-10-26 09:36:44Z 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 320Zeile 326
	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 352

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