Vergleich misc.php - 1.6.0 - 1.6.3

  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 5440 2011-04-15 10:18:35Z 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'])
{
$mybb->input['fid'] = intval($mybb->input['fid']);

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

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

Zeile 114Zeile 120
		if($forum['type'] != "f" || $forum['rules'] == '')
{
error($lang->error_invalidforum);

		if($forum['type'] != "f" || $forum['rules'] == '')
{
error($lang->error_invalidforum);

		}

		}

		if($forumpermissions['canview'] != 1)
{
error_no_permission();

		if($forumpermissions['canview'] != 1)
{
error_no_permission();

Zeile 135Zeile 141
		);

$forum['rules'] = $parser->parse_message($forum['rules'], $parser_options);

		);

$forum['rules'] = $parser->parse_message($forum['rules'], $parser_options);





		// Make navigation
build_forum_breadcrumb($mybb->input['fid']);
add_breadcrumb($forum['rulestitle']);

		// Make navigation
build_forum_breadcrumb($mybb->input['fid']);
add_breadcrumb($forum['rulestitle']);

Zeile 307Zeile 313
			foreach($namesarray as $key => $buddyid)
{
if($buddyid == $mybb->input['removebuddy'])

			foreach($namesarray as $key => $buddyid)
{
if($buddyid == $mybb->input['removebuddy'])

				{

				{

					unset($namesarray[$key]);
}
}

					unset($namesarray[$key]);
}
}

Zeile 318Zeile 324
	}
// Load Buddies
if($mybb->user['buddylist'] != "")

	}
// Load Buddies
if($mybb->user['buddylist'] != "")

	{

	{

		$timecut = TIME_NOW - $mybb->settings['wolcutoff'];
$query = $db->query("
SELECT u.*, g.canusepms

		$timecut = TIME_NOW - $mybb->settings['wolcutoff'];
$query = $db->query("
SELECT u.*, g.canusepms

Zeile 340Zeile 346
				$send_pm = '';
}
if($buddy['lastactive'])

				$send_pm = '';
}
if($buddy['lastactive'])

			{

			{

				$last_active = $lang->sprintf($lang->last_active, my_date($mybb->settings['dateformat'], $buddy['lastactive']).", ".my_date($mybb->settings['timeformat'], $buddy['lastactive']));
}
else

				$last_active = $lang->sprintf($lang->last_active, my_date($mybb->settings['dateformat'], $buddy['lastactive']).", ".my_date($mybb->settings['timeformat'], $buddy['lastactive']));
}
else

Zeile 393Zeile 399

eval("\$buddylist = \"".$templates->get("misc_buddypopup")."\";");
output_page($buddylist);


eval("\$buddylist = \"".$templates->get("misc_buddypopup")."\";");
output_page($buddylist);

}

}

elseif($mybb->input['action'] == "whoposted")
{
$numposts = 0;

elseif($mybb->input['action'] == "whoposted")
{
$numposts = 0;

	$altbg = "trow1";

	$altbg = alt_trow();

	$whoposted = '';
$tid = intval($mybb->input['tid']);
$thread = get_thread($tid);

	$whoposted = '';
$tid = intval($mybb->input['tid']);
$thread = get_thread($tid);

Zeile 698Zeile 704

function makesyndicateforums($pid="0", $selitem="", $addselect="1", $depth="", $permissions="")
{


function makesyndicateforums($pid="0", $selitem="", $addselect="1", $depth="", $permissions="")
{

	global $db, $forumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $flist, $lang;


	global $db, $forumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $flist, $lang, $unviewable;
static $unviewableforums;


$pid = intval($pid);
if(!$permissions)
{
$permissions = $mybb->usergroup;
}


$pid = intval($pid);
if(!$permissions)
{
$permissions = $mybb->usergroup;
}

 


	if(!is_array($forumcache))
{
// Get Forums

	if(!is_array($forumcache))
{
// Get Forums

Zeile 713Zeile 721
		{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}

		{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}

	}


	}


	if(!is_array($permissioncache))

	if(!is_array($permissioncache))

	{

	{

		$permissioncache = forum_permissions();
}

		$permissioncache = forum_permissions();
}

 

if(!$unviewableforums)
{
// Save our unviewable forums in an array
$unviewableforums = explode(",", str_replace("'", "", $unviewable));
}


	if(is_array($forumcache[$pid]))
{
foreach($forumcache[$pid] as $key => $main)

	if(is_array($forumcache[$pid]))
{
foreach($forumcache[$pid] as $key => $main)

Zeile 731Zeile 747
					{
$optionselected = "selected=\"selected\"";
$selecteddone = "1";

					{
$optionselected = "selected=\"selected\"";
$selecteddone = "1";

					}

					}

					else
{
$optionselected = '';

					else
{
$optionselected = '';

					}

if($forum['password'] == '')

					}

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

					{
$forumlistbits .= "<option value=\"{$forum['fid']}\" $optionselected>$depth {$forum['name']}</option>\n";
}

					{
$forumlistbits .= "<option value=\"{$forum['fid']}\" $optionselected>$depth {$forum['name']}</option>\n";
}

 


					if($forumcache[$forum['fid']])
{
$newdepth = $depth."&nbsp;&nbsp;&nbsp;&nbsp;";

					if($forumcache[$forum['fid']])
{
$newdepth = $depth."&nbsp;&nbsp;&nbsp;&nbsp;";