You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* removes ignore_cid_warning, it ws never used
* Moves guard to preferences datum to make it persistent
* use database instead of savefile for the cid list, adds new admin panels for ip and cid history
* adds cap for cid requests too
* fix
* hide from logless admins
var/DBQuery/query_accesslog= dbcon.NewQuery("INSERT INTO `erro_connection_log`(`id`,`datetime`,`serverip`,`ckey`,`ip`,`computerid`) VALUES(null,Now(),'[serverip]','[sql_ckey]','[sql_ip]','[sql_computerid]');")
559
547
query_accesslog.Execute()
560
548
549
+
query_accesslog = dbcon.NewQuery("SELECT count(DISTINCT computerid) from erro_connection_log where ckey='[sql_ckey]';")
var/DBQuery/query= dbcon.NewQuery("SELECT computerid, MIN(datetime) as first, MAX(datetime) as last from erro_connection_log WHERE ckey='[sql_ckey]' [years_cap_sql] GROUP BY computerid ORDER BY last DESC [hard_cap_sql];")
var/DBQuery/query= dbcon.NewQuery("SELECT ip, MIN(datetime) as first, MAX(datetime) as last from erro_connection_log WHERE ckey='[sql_ckey]' [years_cap_sql] GROUP BY ip ORDER BY last DESC [hard_cap_sql];")
multicid_weight += min(((holder.prefs.cid_list.len- allowed_amount) *0.35), 2) // new account, should not be many. 4 cids in the first hour -> +1 weight
183
+
multicid_weight += min(((holder.prefs.cid_count- allowed_amount) *0.35), 2) // new account, should not be many. 4 cids in the first hour -> +1 weight
0 commit comments