mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
IE Stats (#1028)
Data with which we can determine how widespread actual HTML5 and CSS3 capability is.
This commit is contained in:
@@ -165,6 +165,22 @@
|
||||
if ("webint")
|
||||
src.open_webint()
|
||||
|
||||
if ("logie")
|
||||
if (config.sql_stats && href_list["ie_data"])
|
||||
testing("Data recovered: [href_list["ie_data"]]")
|
||||
var/list/data = json_decode(href_list["ie_data"])
|
||||
data["_ckey"] = src.ckey
|
||||
if (data.len != 7)
|
||||
return
|
||||
|
||||
if (!establish_db_connection(dbcon))
|
||||
return
|
||||
|
||||
var/DBQuery/query = dbcon.NewQuery("INSERT INTO ss13_stats_ie (ckey, IsIE, IsEdge, EdgeHtmlVersion, TrueVersion, ActingVersion, CompatibilityMode, DateUpdated) VALUES (_ckey, _IsIE, _IsEdge, _EdgeHtmlVersion, _TrueVersion, _ActingVersion, _CompatibilityMode, NOW()) ON DUPLICATE KEY UPDATE IsIE = VALUES(IsIe), IsEdge = VALUES(IsEdge), EdgeHtmlVersion = VALUES(EdgeHtmlVersion), TrueVersion = VALUES(TrueVersion), ActingVersion = VALUES(ActingVersion), CompatibilityMode = VALUES(CompatibilityMode), DateUpdated = NOW()")
|
||||
query.Execute(data)
|
||||
|
||||
return
|
||||
|
||||
// Antag contest shit
|
||||
if (href_list["contest_action"] && config.antag_contest_enabled)
|
||||
src.process_contest_topic(href_list)
|
||||
@@ -409,6 +425,8 @@
|
||||
'html/bootstrap/js/html5shiv.min.js',
|
||||
'html/bootstrap/js/respond.min.js',
|
||||
'html/jquery/jquery-2.0.0.min.js',
|
||||
'html/iestats/json2.min.js',
|
||||
'html/iestats/ie-truth.min.js',
|
||||
'icons/pda_icons/pda_atmos.png',
|
||||
'icons/pda_icons/pda_back.png',
|
||||
'icons/pda_icons/pda_bell.png',
|
||||
|
||||
Reference in New Issue
Block a user