mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +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:
@@ -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&sub=database&language=$language" : $this->p_master->module_url . "?mode=$mode&sub=requirements&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&sub=database&language=$language" : $this->p_master->module_url . "?mode=$mode&sub=requirements&language=$language ";
|
||||
$submit = (!in_array(false, $passed)) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
|
||||
|
||||
|
||||
$template->assign_vars(array(
|
||||
|
Reference in New Issue
Block a user