aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2011-10-18 01:54:17 +0800
committerrxu <rxu@mail.ru>2011-10-18 02:09:08 +0800
commit88b31c2ab3f2fe1e88920b3d3b022ee1355321f7 (patch)
treeab933c127eda6b9fb37553d1c886d86a92605aee /phpBB/includes
parentcfb51358058e30e4303c1fdc10920c98a568871d (diff)
downloadforums-88b31c2ab3f2fe1e88920b3d3b022ee1355321f7.tar
forums-88b31c2ab3f2fe1e88920b3d3b022ee1355321f7.tar.gz
forums-88b31c2ab3f2fe1e88920b3d3b022ee1355321f7.tar.bz2
forums-88b31c2ab3f2fe1e88920b3d3b022ee1355321f7.tar.xz
forums-88b31c2ab3f2fe1e88920b3d3b022ee1355321f7.zip
[ticket/10419] Add mbstring PHP ini parameters checks to ACP
PHPBB3-10419
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_main.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 6d1c02248a..e31acfb7d1 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -600,6 +600,17 @@ class acp_main
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002));
}
+ if (@extension_loaded('mbstring'))
+ {
+ $template->assign_vars(array(
+ 'S_MBSTRING_LOADED' => true,
+ 'S_MBSTRING_FUNC_OVERLOAD_FAIL' => (intval(@ini_get('mbstring.func_overload')) & (MB_OVERLOAD_MAIL|MB_OVERLOAD_STRING)),
+ 'S_MBSTRING_ENCODING_TRANSLATION_FAIL' => (@ini_get('mbstring.encoding_translation') != 0),
+ 'S_MBSTRING_HTTP_INPUT_FAIL' => (@ini_get('mbstring.http_input') != 'pass'),
+ 'S_MBSTRING_HTTP_OUTPUT_FAIL' => (@ini_get('mbstring.http_output') != 'pass'))
+ );
+ }
+
// Fill dbms version if not yet filled
if (empty($config['dbms_version']))
{