1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

-webfront now displays player info and link to repz account

-fixed time span issue in webfront
-fixed crash when RCON stops responding and removing a player
-version on footer
This commit is contained in:
RaidMax
2015-04-12 23:25:34 -05:00
parent 8e31cbe138
commit 65b65716d2
18 changed files with 339 additions and 81 deletions

View File

@ -334,6 +334,12 @@ namespace IW4MAdmin
String Query = String.Format("DELETE FROM BANS WHERE npID = '{0}'", GUID);
ExecuteNonQuery(Query);
}
public void removeBan(String GUID, String IP)
{
String Query = String.Format("DELETE FROM BANS WHERE npID = '{0}' or IP= '%{1}%'", GUID, IP);
ExecuteNonQuery(Query);
}
}
@ -522,6 +528,22 @@ namespace IW4MAdmin
return players;
}
public List<Aliases> findPlayers(String name)
{
String Query = String.Format("SELECT * FROM ALIASES WHERE NAMES LIKE '%{0}%' LIMIT 8", name);
DataTable Result = GetDataTable(Query);
List<Aliases> players = new List<Aliases>();
if (Result != null && Result.Rows.Count > 0)
{
foreach (DataRow p in Result.Rows)
players.Add(new Aliases(Convert.ToInt32(p["Number"]), p["NAMES"].ToString(), p["IPS"].ToString()));
}
return players;
}
public void addPlayer(Aliases Alias)
{
Dictionary<String, object> newPlayer = new Dictionary<String, object>();