From 61f00628f111c8f70ab5870d2ec3542429680ed8 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Wed, 28 May 2014 10:43:05 +0400 Subject: [PATCH] Added new BBCode tags, for tables and NT logo. Removes html support from paper. --- code/modules/paperwork/paper.dm | 17 +++++++++++++++-- html/changelog.html | 11 ++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 4fec2ee842a..3564b928a34 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -192,6 +192,13 @@ t = replacetext(t, "\[/small\]", "") t = replacetext(t, "\[list\]", "") + t = replacetext(t, "\[table\]", "") + t = replacetext(t, "\[/table\]", "
") + t = replacetext(t, "\[grid\]", "") + t = replacetext(t, "\[/grid\]", "
") + t = replacetext(t, "\[row\]", "") + t = replacetext(t, "\[cell\]", "") + t = replacetext(t, "\[logo\]", "") t = "[t]" else // If it is a crayon, and he still tries to use these, make them empty! @@ -201,6 +208,11 @@ t = replacetext(t, "\[/small\]", "") t = replacetext(t, "\[list\]", "") t = replacetext(t, "\[/list\]", "") + t = replacetext(t, "\[table\]", "") + t = replacetext(t, "\[/table\]", "") + t = replacetext(t, "\[row\]", "") + t = replacetext(t, "\[cell\]", "") + t = replacetext(t, "\[logo\]", "") t = "[t]" @@ -284,7 +296,7 @@ if((!in_range(src, usr) && loc != usr && !( istype(loc, /obj/item/weapon/clipboard) ) && loc.loc != usr && usr.get_active_hand() != i)) // Some check to see if he's allowed to write return - +/* t = checkhtml(t) // check for exploits @@ -294,7 +306,8 @@ log_admin("PAPER: [usr] ([usr.ckey]) tried to use forbidden word in [src]: [bad].") message_admins("PAPER: [usr] ([usr.ckey]) tried to use forbidden word in [src]: [bad].") return - +*/ + t = html_encode(t) t = replacetext(t, "\n", "
") t = parsepencode(t, i, usr, iscrayon) // Encode everything from pencode to html diff --git a/html/changelog.html b/html/changelog.html index 00e5e6a5f41..921a3f6300b 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -55,8 +55,17 @@ should be listed in the changelog upon commit though. Thanks. --> - + +
+

28 мая 2014

+

Chinsky updated:

+ +

25 April 2014

Various updated: