mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
ban/unban buttons added to profile
several css tweaks changed administratorIPs to PrivilegedClients added time step references to profile page
This commit is contained in:
@ -15,8 +15,18 @@ namespace WebfrontCore.ViewComponents
|
||||
int ip = HttpContext.Connection.RemoteIpAddress
|
||||
.ToString().ConvertToIP();
|
||||
|
||||
bool authed = IW4MAdmin.ApplicationManager.GetInstance()
|
||||
.AdministratorIPs.Contains(ip);
|
||||
bool authed = false;
|
||||
|
||||
try
|
||||
{
|
||||
var a = IW4MAdmin.ApplicationManager.GetInstance()
|
||||
.PrivilegedClients[HttpContext.Connection.RemoteIpAddress.ToString().ConvertToIP()];
|
||||
}
|
||||
|
||||
catch (KeyNotFoundException)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var penalties = await IW4MAdmin.ApplicationManager.GetInstance().GetPenaltyService().GetRecentPenalties(15, offset);
|
||||
var penaltiesDto = penalties.Select(p => new PenaltyInfo()
|
||||
|
Reference in New Issue
Block a user