Skip to content

Commit

Permalink
BCCM (#204)
Browse files Browse the repository at this point in the history
Co-authored-by: xTrainx <[email protected]>
  • Loading branch information
tichys and xTrainx authored Sep 22, 2024
1 parent 2bea7dc commit bf40f95
Show file tree
Hide file tree
Showing 12 changed files with 808 additions and 3 deletions.
3 changes: 2 additions & 1 deletion code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
#define INIT_ORDER_PROFILER 100
#define INIT_ORDER_FAIL2TOPIC 99
#define INIT_ORDER_TITLE 98
#define INIT_ORDER_GARBAGE 95
#define INIT_ORDER_GARBAGE 96
#define INIT_ORDER_BCCM 95
#define INIT_ORDER_DBCORE 94
#define INIT_ORDER_STATPANELS 93
#define INIT_ORDER_BLACKBOX 92
Expand Down
17 changes: 17 additions & 0 deletions code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@
/proc/format_table_name(table as text)
return CONFIG_GET(string/feedback_tableprefix) + table

/proc/sql_sanitize_text(text)
text = replacetext(text, "'", "''")
text = replacetext(text, ";", "")
text = replacetext(text, "&", "")
return text

/proc/new_sql_sanitize_text(text)
text = replacetext(text, "'", "")
text = replacetext(text, ";", "")
text = replacetext(text, "&", "")
text = replacetext(text, "`", "")
return text

/proc/remove_all_spaces(text)
text = replacetext(text, " ", "")
return text

/*
* Text sanitization
*/
Expand Down
1 change: 1 addition & 0 deletions code/controllers/configuration/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// var/policy

var/static/regex/ic_filter_regex
var/bccm = TRUE

/datum/controller/configuration/proc/admin_reload()
if(IsAdminAdvancedProcCall())
Expand Down
Loading

0 comments on commit bf40f95

Please sign in to comment.