Changeset 369 for binary-improvements/MapRendering/Web/Web.cs
- Timestamp:
- Nov 9, 2021, 6:28:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Web.cs
r367 r369 59 59 RegisterPathHandler ("/itemicons/", new ItemIconHandler (true)); 60 60 RegisterPathHandler ("/map/", new StaticHandler ( 61 Game Utils.GetSaveGameDir () + "/map",61 GameIO.GetSaveGameDir () + "/map", 62 62 MapRendering.MapRendering.GetTileCache (), 63 63 false, … … 111 111 } 112 112 113 public void SendLog (string _ text, string _trace, LogType _type) {113 public void SendLog (string _formattedMessage, string _plainMessage, string _trace, LogType _type, DateTime _timestamp, long _uptime) { 114 114 // Do nothing, handled by LogBuffer internally 115 115 } … … 248 248 if (con != null) { 249 249 _con = con; 250 return GameManager.Instance.adminTools.GetUserPermissionLevel (_con. SteamID.ToString ());250 return GameManager.Instance.adminTools.GetUserPermissionLevel (_con.UserId); 251 251 } 252 252 } … … 270 270 WebConnection con = connectionHandler.LogIn (id, _req.RemoteEndPoint.Address); 271 271 _con = con; 272 int level = GameManager.Instance.adminTools.GetUserPermissionLevel ( id.ToString ());272 int level = GameManager.Instance.adminTools.GetUserPermissionLevel (con.UserId); 273 273 Log.Out ("Steam OpenID login from {0} with ID {1}, permission level {2}", 274 remoteEndpointString, con. SteamID, level);274 remoteEndpointString, con.UserId, level); 275 275 return level; 276 276 }
Note:
See TracChangeset
for help on using the changeset viewer.