aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/index.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-02 01:05:34 +0100
committerNils Adermann <naderman@naderman.de>2010-03-02 01:05:34 +0100
commit517f25353246f06eec7d1fdef90a04119a45bbbf (patch)
tree7837b0e54fcd05f2f49a22a078b0f12cad864b30 /phpBB/install/index.php
parent89b37954f994a7cd517553d2d16686f91dcaae72 (diff)
parent7068d8b462e388ea87883c5203a28fa6a8e4b6dc (diff)
downloadforums-517f25353246f06eec7d1fdef90a04119a45bbbf.tar
forums-517f25353246f06eec7d1fdef90a04119a45bbbf.tar.gz
forums-517f25353246f06eec7d1fdef90a04119a45bbbf.tar.bz2
forums-517f25353246f06eec7d1fdef90a04119a45bbbf.tar.xz
forums-517f25353246f06eec7d1fdef90a04119a45bbbf.zip
Merge commit 'release-3.0-B5'
Diffstat (limited to 'phpBB/install/index.php')
-rwxr-xr-xphpBB/install/index.php28
1 files changed, 22 insertions, 6 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index bd8ae095a3..0a8a45b771 100755
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -102,7 +102,7 @@ else
define('STRIP', (get_magic_quotes_gpc()) ? true : false);
}
-@set_time_limit(120);
+@set_time_limit(0);
// Include essential scripts
require($phpbb_root_path . 'includes/functions.' . $phpEx);
@@ -148,6 +148,13 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language)
if (!$language)
{
$dir = @opendir($phpbb_root_path . 'language');
+
+ if (!$dir)
+ {
+ die('Unable to access the language directory');
+ exit;
+ }
+
while (($file = readdir($dir)) !== false)
{
$path = $phpbb_root_path . 'language/' . $file;
@@ -158,6 +165,7 @@ if (!$language)
break;
}
}
+ closedir($dir);
}
// And finally, load the relevant language files
@@ -222,6 +230,11 @@ class module
// Grab module information using Bart's "neat-o-module" system (tm)
$dir = @opendir('.');
+ if (!$dir)
+ {
+ $this->error('Unable to access the installation directory', __LINE__, __FILE__);
+ }
+
$setmodules = 1;
while (($file = readdir($dir)) !== false)
{
@@ -230,7 +243,7 @@ class module
include($file);
}
}
- @closedir($dir);
+ closedir($dir);
unset($setmodules);
@@ -324,8 +337,6 @@ class module
'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
'S_CONTENT_ENCODING' => 'UTF-8',
- 'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
- 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
'S_USER_LANG' => $lang['USER_LANG'],
)
);
@@ -589,7 +600,7 @@ class module
}
/**
- * Generate the relevant HTML for an input field and the assosciated label and explanatory text
+ * Generate the relevant HTML for an input field and the associated label and explanatory text
*/
function input_field($name, $type, $value='', $options='')
{
@@ -652,6 +663,11 @@ class module
$dir = @opendir($phpbb_root_path . 'language');
+ if (!$dir)
+ {
+ $this->error('Unable to access the language directory', __LINE__, __FILE__);
+ }
+
while ($file = readdir($dir))
{
$path = $phpbb_root_path . 'language/' . $file;
@@ -667,7 +683,7 @@ class module
$lang[$localname] = $file;
}
}
- @closedir($dir);
+ closedir($dir);
@asort($lang);
@reset($lang);