aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-15 13:48:42 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-15 13:48:42 +0000
commit19eebbe4564561e31dc68eb6a36ac3bfb8cbce50 (patch)
tree303b8203beffc28c8103335f8aa2dd07e355402c /phpBB/install
parenta0a44aeee4550d3c3bfc7c5d3d62b8e3acb5a35f (diff)
downloadforums-19eebbe4564561e31dc68eb6a36ac3bfb8cbce50.tar
forums-19eebbe4564561e31dc68eb6a36ac3bfb8cbce50.tar.gz
forums-19eebbe4564561e31dc68eb6a36ac3bfb8cbce50.tar.bz2
forums-19eebbe4564561e31dc68eb6a36ac3bfb8cbce50.tar.xz
forums-19eebbe4564561e31dc68eb6a36ac3bfb8cbce50.zip
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
Diffstat (limited to 'phpBB/install')
-rwxr-xr-xphpBB/install/install_install.php47
1 files changed, 44 insertions, 3 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 9f5f5d771a..9635036dee 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -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(