diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index b0d41f94e4..96ee629a4d 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -1,10 +1,10 @@
acl_get('a_'))
// We define the admin variables now, because the user is now able to use the admin related features...
define('IN_ADMIN', true);
-$phpbb_admin_path = './';
+$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : './';
// Some oft used variables
$safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false;
@@ -204,11 +204,7 @@ function adm_page_footer($copyright_html = true)
$template->display('body');
garbage_collection();
-
- if (!defined('PHPBB_EMBEDDED'))
- {
- exit;
- }
+ exit_handler();
}
/**
@@ -280,7 +276,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
$size = (int) $tpl_type[1];
$maxlength = (int) $tpl_type[2];
- $tpl = ' x ';
+ $tpl = ' x ';
break;
case 'textarea':
diff --git a/phpBB/adm/style/acp_attachments.html b/phpBB/adm/style/acp_attachments.html
index 36d8f24f32..42ae610545 100644
--- a/phpBB/adm/style/acp_attachments.html
+++ b/phpBB/adm/style/acp_attachments.html
@@ -16,7 +16,7 @@
{L_NOTIFY}
@@ -110,15 +110,14 @@
{L_NO_IPS_DEFINED}
-
+ {S_FORM_TOKEN}
@@ -255,10 +254,11 @@
- {L_CREATE_GROUP}:
+ {L_CREATE_GROUP}:
+ {S_FORM_TOKEN}
@@ -281,9 +281,9 @@
-
+ {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 3fafd1288b..729ac56c5e 100644
--- a/phpBB/adm/style/acp_modules.html
+++ b/phpBB/adm/style/acp_modules.html
@@ -5,8 +5,7 @@
« {L_BACK}
@@ -117,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 e16d7598ab..f6ca6081aa 100644
--- a/phpBB/adm/style/acp_permission_roles.html
+++ b/phpBB/adm/style/acp_permission_roles.html
@@ -5,7 +5,7 @@
@@ -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 5eb9c2eab3..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}
@@ -74,7 +74,7 @@
- - [ {L_FIND_USERNAME} ]
+ - [ {L_FIND_USERNAME} ]
@@ -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 @@