mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
git-svn-id: file:///svn/phpbb/trunk@6676 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -129,7 +129,7 @@ class install_install extends module
|
||||
'BODY' => $lang['REQUIREMENTS_EXPLAIN'],
|
||||
));
|
||||
|
||||
$passed = array('php' => false, 'db' => false, 'files' => false);
|
||||
$passed = array('php' => false, 'db' => false, 'files' => false, 'pcre' => false);
|
||||
|
||||
// Test for basic PHP settings
|
||||
$template->assign_block_vars('checks', array(
|
||||
@@ -186,6 +186,26 @@ class install_install extends module
|
||||
'S_LEGEND' => false,
|
||||
));
|
||||
|
||||
// Check for PCRE UTF-8 support
|
||||
if (preg_match('//u', ''))
|
||||
{
|
||||
$passed['pcre'] = true;
|
||||
$result = '<b style="color:green">' . $lang['YES'] . '</b>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = '<b style="color:red">' . $lang['NO'] . '</b>';
|
||||
}
|
||||
|
||||
$template->assign_block_vars('checks', array(
|
||||
'TITLE' => $lang['PCRE_UTF_SUPPORT'],
|
||||
'TITLE_EXPLAIN' => $lang['PCRE_UTF_SUPPORT_EXPLAIN'],
|
||||
'RESULT' => $result,
|
||||
|
||||
'S_EXPLAIN' => true,
|
||||
'S_LEGEND' => false,
|
||||
));
|
||||
|
||||
// Test for available database modules
|
||||
$template->assign_block_vars('checks', array(
|
||||
'S_LEGEND' => true,
|
||||
@@ -395,8 +415,8 @@ class install_install extends module
|
||||
// And finally where do we want to go next (well today is taken isn't it :P)
|
||||
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
|
||||
|
||||
$url = ($passed['php'] && $passed['db'] && $passed['files']) ? $this->p_master->module_url . "?mode=$mode&sub=database&language=$language" : $this->p_master->module_url . "?mode=$mode&sub=requirements&language=$language ";
|
||||
$submit = ($passed['php'] && $passed['db'] && $passed['files']) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
|
||||
$url = ($passed['php'] && $passed['db'] && $passed['files'] && $passed['pcre']) ? $this->p_master->module_url . "?mode=$mode&sub=database&language=$language" : $this->p_master->module_url . "?mode=$mode&sub=requirements&language=$language ";
|
||||
$submit = ($passed['php'] && $passed['db'] && $passed['files'] && $passed['pcre']) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
|
||||
|
||||
|
||||
$template->assign_vars(array(
|
||||
|
Reference in New Issue
Block a user