|
|
@ -85,7 +85,7 @@ public class BanService { |
|
|
|
.setParameter(4, ban_reason) |
|
|
|
.setParameter(5, admin.getSteamids().steam2) |
|
|
|
.setParameter(6, 1) |
|
|
|
.setParameter(7, user.getPlay_on() != null ? user.getPlay_on().getIp() : "") |
|
|
|
.setParameter(7, user.getPlay_on() != null ? user.getPlay_on().getIp(cryptedCookie) : "") |
|
|
|
.setParameter(8, user.getPlay_on() != null ? user.getPlay_on().getName() : user.getSteam_data().getNickname()) |
|
|
|
.setParameter(9, admin.getSteam_data().getNickname()) |
|
|
|
.executeUpdate(); |
|
|
@ -98,4 +98,12 @@ public class BanService { |
|
|
|
.setParameter(1,1) |
|
|
|
.getResultList(); |
|
|
|
} |
|
|
|
|
|
|
|
public String deCrypt(String crypted) { |
|
|
|
try { |
|
|
|
return cryptedCookie.ReadCh(crypted); |
|
|
|
} catch (Exception e) { |
|
|
|
return crypted; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|