phpBB

Code Changes

File: includes/acp/auth.php

  Unmodified   Added   Modified   Removed
Line 460Line 460
					'S_GROUP_MODE'	=> ($user_mode == 'group') ? true : false)
);


					'S_GROUP_MODE'	=> ($user_mode == 'group') ? true : false)
);


				@reset($content_array);
while (list($ug_id, $ug_array) = each($content_array))

				foreach ($content_array as $ug_id => $ug_array)


				{
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;

				{
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;

Line 471Line 470
					$s_role_options = '';
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;


					$s_role_options = '';
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;


					@reset($roles);
while (list($role_id, $role_row) = each($roles))

					foreach ($roles as $role_id => $role_row)


					{
$role_description = (!empty($user->lang[$role_row['role_description']])) ? $user->lang[$role_row['role_description']] : nl2br($role_row['role_description']);
$role_name = (!empty($user->lang[$role_row['role_name']])) ? $user->lang[$role_row['role_name']] : $role_row['role_name'];

					{
$role_description = (!empty($user->lang[$role_row['role_description']])) ? $user->lang[$role_row['role_description']] : nl2br($role_row['role_description']);
$role_name = (!empty($user->lang[$role_row['role_name']])) ? $user->lang[$role_row['role_name']] : $role_row['role_name'];

Line 559Line 557
					'S_GROUP_MODE'	=> ($user_mode == 'group') ? true : false)
);


					'S_GROUP_MODE'	=> ($user_mode == 'group') ? true : false)
);


				@reset($content_array);
while (list($forum_id, $forum_array) = each($content_array))

				foreach ($content_array as $forum_id => $forum_array)


				{
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;

				{
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;

Line 570Line 567
					$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;
$s_role_options = '';


					$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;
$s_role_options = '';


					@reset($roles);
while (list($role_id, $role_row) = each($roles))

					foreach ($roles as $role_id => $role_row)


					{
$role_description = (!empty($user->lang[$role_row['role_description']])) ? $user->lang[$role_row['role_description']] : nl2br($role_row['role_description']);
$role_name = (!empty($user->lang[$role_row['role_name']])) ? $user->lang[$role_row['role_name']] : $role_row['role_name'];

					{
$role_description = (!empty($user->lang[$role_row['role_description']])) ? $user->lang[$role_row['role_description']] : nl2br($role_row['role_description']);
$role_name = (!empty($user->lang[$role_row['role_name']])) ? $user->lang[$role_row['role_name']] : $role_row['role_name'];

Line 1138Line 1134
		/* @var $phpbb_permissions \phpbb\permissions */
$phpbb_permissions = $phpbb_container->get('acl.permissions');


		/* @var $phpbb_permissions \phpbb\permissions */
$phpbb_permissions = $phpbb_container->get('acl.permissions');


		@reset($category_array);
while (list($cat, $cat_array) = each($category_array))

		foreach ($category_array as $cat => $cat_array)


		{
if (!$phpbb_permissions->category_defined($cat))
{

		{
if (!$phpbb_permissions->category_defined($cat))
{

Line 1169Line 1164
			}
unset($key_array, $values_array);
*/

			}
unset($key_array, $values_array);
*/

			@reset($cat_array['permissions']);
while (list($permission, $allowed) = each($cat_array['permissions']))

			foreach ($cat_array['permissions'] as $permission => $allowed)


			{
if (!$phpbb_permissions->permission_defined($permission))
{

			{
if (!$phpbb_permissions->permission_defined($permission))
{

Line 1237Line 1231
			$permissions = $permission_row[$forum_id];
ksort($permissions);


			$permissions = $permission_row[$forum_id];
ksort($permissions);


			@reset($permissions);
while (list($permission, $auth_setting) = each($permissions))

			foreach ($permissions as $permission => $auth_setting)


			{
$cat = $phpbb_permissions->get_permission_category($permission);


			{
$cat = $phpbb_permissions->get_permission_category($permission);