Vergleich inc/functions_modcp.php - 1.4.0 - 1.4.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: functions_modcp.php 4024 2008-07-18 02:37:49Z Tikitiki $

 * $Id: functions_modcp.php 4304 2009-01-02 01:11:56Z chris $

 */

/**

 */

/**

Zeile 23Zeile 23
	$user_permissions = user_permissions($uid);

// Current user is only a local moderator or use with ModCP permissions, cannot manage super mods or admins

	$user_permissions = user_permissions($uid);

// Current user is only a local moderator or use with ModCP permissions, cannot manage super mods or admins

	if($mybb->usergroup['issupermod'] == 0 && ($user_permissions['issupermod'] == 1 || $user_permissions['canadmincp'] == 1))

	if($mybb->usergroup['issupermod'] == 0 && ($user_permissions['issupermod'] == 1 || $user_permissions['cancp'] == 1))

	{
return false;
}
// Current user is a super mod or is an administrator

	{
return false;
}
// Current user is a super mod or is an administrator

	else if($mybb->usergroup['issupermod'] == 1 && $user_permissions['canadmincp'] == 1 || (is_super_admin($uid) && !is_super_admin($mybb->user['uid'])))

	else if($user_permissions['cancp'] == 1 && ($mybb->usergroup['cancp'] != 1 || (is_super_admin($uid) && !is_super_admin($mybb->user['uid'])))) 

	{
return false;
}

	{
return false;
}

Zeile 57Zeile 57
	{
foreach($forum_cache as $forum)
{

	{
foreach($forum_cache as $forum)
{

			$forums_by_parent[$forum['pid']][$val['disporder']][$forum['fid']] = $forum;

			$forums_by_parent[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

		}
}


		}
}