1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Be more explicit regarding the requirements.

Once more, this introduces language variables.


git-svn-id: file:///svn/phpbb/trunk@7583 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof
2007-05-15 13:48:42 +00:00
parent a0a44aeee4
commit 19eebbe456
2 changed files with 51 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ class install_install extends module
'BODY' => $lang['REQUIREMENTS_EXPLAIN'],
));
$passed = array('php' => false, 'db' => false, 'files' => false, 'pcre' => false);
$passed = array('php' => false, 'db' => false, 'files' => false, 'pcre' => false, 'imagesize' => false,);
// Test for basic PHP settings
$template->assign_block_vars('checks', array(
@@ -183,6 +183,47 @@ class install_install extends module
'S_EXPLAIN' => true,
'S_LEGEND' => false,
));
// Check for url_fopen
if (@ini_get('allow_url_fopen') == '1' || strtolower(@ini_get('allow_url_fopen')) == 'on')
{
$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['PHP_URL_FOPEN_SUPPORT'],
'TITLE_EXPLAIN' => $lang['PHP_URL_FOPEN_SUPPORT_EXPLAIN'],
'RESULT' => $result,
'S_EXPLAIN' => true,
'S_LEGEND' => false,
));
// Check for getimagesize
if (@function_exists('getimagesize'))
{
$passed['imagesize'] = 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['PHP_GETIMAGESIZE_SUPPORT'],
'TITLE_EXPLAIN' => $lang['PHP_GETIMAGESIZE_SUPPORT_EXPLAIN'],
'RESULT' => $result,
'S_EXPLAIN' => true,
'S_LEGEND' => false,
));
// Check for PCRE UTF-8 support
if (@preg_match('//u', ''))
@@ -472,8 +513,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'] && $passed['pcre'] && $passed['mbstring']) ? $this->p_master->module_url . "?mode=$mode&amp;sub=database&amp;language=$language" : $this->p_master->module_url . "?mode=$mode&amp;sub=requirements&amp;language=$language ";
$submit = ($passed['php'] && $passed['db'] && $passed['files'] && $passed['pcre'] && $passed['mbstring']) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
$url = (!in_array(false, $passed)) ? $this->p_master->module_url . "?mode=$mode&amp;sub=database&amp;language=$language" : $this->p_master->module_url . "?mode=$mode&amp;sub=requirements&amp;language=$language ";
$submit = (!in_array(false, $passed)) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
$template->assign_vars(array(