Vergleich admin/modules/user/admin_permissions.php - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 37Zeile 37
	);
}


	);
}


$uid = $mybb->get_input('uid', 1);

$uid = $mybb->get_input('uid', MyBB::INPUT_INT);


$plugins->run_hooks("admin_user_admin_permissions_begin");



$plugins->run_hooks("admin_user_admin_permissions_begin");


Zeile 138Zeile 138
		}

// Does an options row exist for this admin already?

		}

// Does an options row exist for this admin already?

		$query = $db->simple_select("adminoptions", "COUNT(uid) AS existing_options", "uid='".$mybb->get_input('uid', 1)."'");

		$query = $db->simple_select("adminoptions", "COUNT(uid) AS existing_options", "uid='".$mybb->get_input('uid', MyBB::INPUT_INT)."'");

		$existing_options = $db->fetch_field($query, "existing_options");
if($existing_options > 0)
{

		$existing_options = $db->fetch_field($query, "existing_options");
if($existing_options > 0)
{

			$db->update_query("adminoptions", array('permissions' => $db->escape_string(serialize($mybb->input['permissions']))), "uid = '".$mybb->get_input('uid', 1)."'");

			$db->update_query("adminoptions", array('permissions' => $db->escape_string(my_serialize($mybb->input['permissions']))), "uid = '".$mybb->get_input('uid', MyBB::INPUT_INT)."'");

		}
else
{
$insert_array = array(

		}
else
{
$insert_array = array(

				"uid" => $mybb->get_input('uid', 1),
"permissions" => $db->escape_string(serialize($mybb->input['permissions'])),

				"uid" => $mybb->get_input('uid', MyBB::INPUT_INT),
"permissions" => $db->escape_string(my_serialize($mybb->input['permissions'])),

				"notes" => '',
"defaultviews" => ''
);

				"notes" => '',
"defaultviews" => ''
);

Zeile 485Zeile 485
				}
}
}

				}
}
}

		$usergroup_list = implode(", ", $usergroup_list);

		$usergroup_list = implode($lang->comma, $usergroup_list);


$table->construct_cell("<div class=\"float_right\"><img src=\"styles/{$page->style}/images/icons/{$perm_type}.png\" title=\"{$lang->perms_type_user}\" alt=\"{$perm_type}\" /></div><div><strong><a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$admin['uid']}\" title=\"{$lang->edit_user}\">{$admin['username']}</a></strong><br /><small>{$usergroup_list}</small></div>");



$table->construct_cell("<div class=\"float_right\"><img src=\"styles/{$page->style}/images/icons/{$perm_type}.png\" title=\"{$lang->perms_type_user}\" alt=\"{$perm_type}\" /></div><div><strong><a href=\"index.php?module=user-admin_permissions&amp;action=edit&amp;uid={$admin['uid']}\" title=\"{$lang->edit_user}\">{$admin['username']}</a></strong><br /><small>{$usergroup_list}</small></div>");