local function ShowUsersTable() local Content = "

Users

" local UsersIni = cIniFile("users.ini") if( UsersIni:ReadFile() == false ) then return "Could not read users.ini!" end local NumUsers = UsersIni:GetNumKeys() Content = Content .. "" if( NumUsers > 0 ) then Content = Content .. "" for i=0, NumUsers-1 do local UserName = UsersIni:GetKeyName( i ) Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" end else Content = Content .. "" end Content = Content .. "
UserGroups
" .. i .. "." .. UserName .. "" Content = Content .. UsersIni:GetValue( UserName, "Groups", "-" ) Content = Content .. "
None
" return Content end local function ShowGroupsTable() local Content = "

Groups

" local GroupsIni = cIniFile("groups.ini") if( GroupsIni:ReadFile() == false ) then return "Could not read groups.ini!" end local NumGroups = GroupsIni:GetNumKeys() Content = Content .. "" if( NumGroups > 0 ) then Content = Content .. "" for i=0, NumGroups-1 do local GroupName = GroupsIni:GetKeyName( i ) Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" end else Content = Content .. "" end Content = Content .. "
NamePermissionsColor
" .. i .. "." .. GroupName .. "" Content = Content .. GroupsIni:GetValue( GroupName, "Permissions", "-" ) Content = Content .. "" Content = Content .. GroupsIni:GetValue( GroupName, "Color", "-" ) Content = Content .. "
None
" return Content end function HandleRequest_Permissions( Request ) local Content = "" Content = Content .. ShowGroupsTable() Content = Content .. ShowUsersTable() return Content end