diff --git a/phpBB/adm/style/acp_attachments.html b/phpBB/adm/style/acp_attachments.html
index 950e9bb6f9..ee3f8ec354 100644
--- a/phpBB/adm/style/acp_attachments.html
+++ b/phpBB/adm/style/acp_attachments.html
@@ -16,7 +16,7 @@
{L_NOTIFY}
@@ -216,7 +216,7 @@
-
+ {S_FORM_TOKEN}
@@ -258,6 +258,7 @@
+ {S_FORM_TOKEN}
@@ -280,7 +281,7 @@
-
+ {S_FORM_TOKEN}
@@ -320,7 +321,7 @@
-
+ {S_FORM_TOKEN}
@@ -368,7 +369,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_bbcodes.html b/phpBB/adm/style/acp_bbcodes.html
index 8d9827b672..48b117cfc9 100644
--- a/phpBB/adm/style/acp_bbcodes.html
+++ b/phpBB/adm/style/acp_bbcodes.html
@@ -77,7 +77,7 @@
-
+ {S_FORM_TOKEN}
@@ -111,7 +111,7 @@
-
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_board.html b/phpBB/adm/style/acp_board.html
index c7501ce088..2569b162ca 100644
--- a/phpBB/adm/style/acp_board.html
+++ b/phpBB/adm/style/acp_board.html
@@ -45,6 +45,7 @@
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_bots.html b/phpBB/adm/style/acp_bots.html
index 2f65a0fbec..92778472d8 100644
--- a/phpBB/adm/style/acp_bots.html
+++ b/phpBB/adm/style/acp_bots.html
@@ -51,7 +51,7 @@
-
+ {S_FORM_TOKEN}
@@ -94,7 +94,7 @@
{L_MARK_ALL} • {L_UNMARK_ALL}
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_captcha.html b/phpBB/adm/style/acp_captcha.html
index b5c12f29b1..ecb60e4b59 100644
--- a/phpBB/adm/style/acp_captcha.html
+++ b/phpBB/adm/style/acp_captcha.html
@@ -64,7 +64,7 @@
-
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_database.html b/phpBB/adm/style/acp_database.html
index fcb79920fc..dc24b55bb1 100644
--- a/phpBB/adm/style/acp_database.html
+++ b/phpBB/adm/style/acp_database.html
@@ -25,6 +25,7 @@
+ {S_FORM_TOKEN}
@@ -85,7 +86,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_disallow.html b/phpBB/adm/style/acp_disallow.html
index e9d6cb6c51..020135e227 100644
--- a/phpBB/adm/style/acp_disallow.html
+++ b/phpBB/adm/style/acp_disallow.html
@@ -39,7 +39,7 @@
{L_NO_DISALLOWED}
-
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_email.html b/phpBB/adm/style/acp_email.html
index b2c12c944d..bb891de0b4 100644
--- a/phpBB/adm/style/acp_email.html
+++ b/phpBB/adm/style/acp_email.html
@@ -48,7 +48,7 @@
-
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_forums.html b/phpBB/adm/style/acp_forums.html
index 802cd81815..ee83beacf3 100644
--- a/phpBB/adm/style/acp_forums.html
+++ b/phpBB/adm/style/acp_forums.html
@@ -312,7 +312,7 @@
-
+ {S_FORM_TOKEN}
@@ -361,7 +361,7 @@
-
+ {S_FORM_TOKEN}
@@ -470,7 +470,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_groups.html b/phpBB/adm/style/acp_groups.html
index f1b4c4ecaa..b615099b7c 100644
--- a/phpBB/adm/style/acp_groups.html
+++ b/phpBB/adm/style/acp_groups.html
@@ -155,7 +155,7 @@
-
+ {S_FORM_TOKEN}
@@ -261,7 +261,7 @@
-
+ {S_FORM_TOKEN}
@@ -310,7 +310,7 @@
-
+ {S_FORM_TOKEN}
{L_SPECIAL_GROUPS}
diff --git a/phpBB/adm/style/acp_icons.html b/phpBB/adm/style/acp_icons.html
index 6a8db53f08..e02840f1c5 100644
--- a/phpBB/adm/style/acp_icons.html
+++ b/phpBB/adm/style/acp_icons.html
@@ -160,7 +160,7 @@
-
+ {S_FORM_TOKEN}
@@ -195,7 +195,7 @@
-
+ {S_FORM_TOKEN}
@@ -257,7 +257,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_inactive.html b/phpBB/adm/style/acp_inactive.html
index dc447d00fc..b5a05ec799 100755
--- a/phpBB/adm/style/acp_inactive.html
+++ b/phpBB/adm/style/acp_inactive.html
@@ -65,7 +65,7 @@
-
+{S_FORM_TOKEN}
\ No newline at end of file
diff --git a/phpBB/adm/style/acp_jabber.html b/phpBB/adm/style/acp_jabber.html
index 43f7f51375..b57ad59af5 100644
--- a/phpBB/adm/style/acp_jabber.html
+++ b/phpBB/adm/style/acp_jabber.html
@@ -59,7 +59,7 @@
-
+{S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_language.html b/phpBB/adm/style/acp_language.html
index c016251d38..a6f99c2b56 100644
--- a/phpBB/adm/style/acp_language.html
+++ b/phpBB/adm/style/acp_language.html
@@ -55,7 +55,7 @@
-
+ {S_FORM_TOKEN}
@@ -92,7 +92,7 @@
-
+ {S_FORM_TOKEN}
@@ -161,7 +161,7 @@
-
+ {S_FORM_TOKEN}
@@ -201,7 +201,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_logs.html b/phpBB/adm/style/acp_logs.html
index e18c4882c5..cc1765e2a4 100644
--- a/phpBB/adm/style/acp_logs.html
+++ b/phpBB/adm/style/acp_logs.html
@@ -79,7 +79,7 @@
-
+{S_FORM_TOKEN}
\ No newline at end of file
diff --git a/phpBB/adm/style/acp_modules.html b/phpBB/adm/style/acp_modules.html
index cae5781c8d..729ac56c5e 100644
--- a/phpBB/adm/style/acp_modules.html
+++ b/phpBB/adm/style/acp_modules.html
@@ -116,7 +116,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_permission_roles.html b/phpBB/adm/style/acp_permission_roles.html
index 80b1003003..f6ca6081aa 100644
--- a/phpBB/adm/style/acp_permission_roles.html
+++ b/phpBB/adm/style/acp_permission_roles.html
@@ -125,7 +125,7 @@
-
+ {S_FORM_TOKEN}
» {L_BACK_TO_TOP}
@@ -179,7 +179,7 @@
-
+ {S_FORM_TOKEN}
diff --git a/phpBB/adm/style/acp_permissions.html b/phpBB/adm/style/acp_permissions.html
index d30a38e697..a4797fcc4f 100644
--- a/phpBB/adm/style/acp_permissions.html
+++ b/phpBB/adm/style/acp_permissions.html
@@ -39,7 +39,7 @@
-
+ {S_FORM_TOKEN}
@@ -60,7 +60,7 @@
-
+ {S_FORM_TOKEN}
@@ -83,7 +83,7 @@
-
+ {S_FORM_TOKEN}
@@ -103,7 +103,7 @@
-
+ {S_FORM_TOKEN}
@@ -128,7 +128,7 @@
{S_HIDDEN_FIELDS}
-
+ {S_FORM_TOKEN}
@@ -173,7 +173,7 @@
{S_HIDDEN_FIELDS}
-
+ {S_FORM_TOKEN}
@@ -216,6 +217,7 @@
+ {S_FORM_TOKEN}
@@ -257,6 +259,7 @@