Added checks for allow_fopen_url in two more places!

This commit is contained in:
moodler 2005-02-23 15:40:53 +00:00
parent e76ae26489
commit 91099e368b
2 changed files with 11 additions and 7 deletions

View file

@ -262,7 +262,9 @@ if ($INSTALL['stage'] == 3) {
/// If we can open a file then we know that the admin name is correct.
if ($nextstage == 4 or $INSTALL['stage'] == 4) {
if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
if (!ini_get('allow_url_fopen')) {
$nextstage = ($goforward) ? 5 : 3;
} else if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
$nextstage = ($goforward) ? 5 : 3;
fclose($fh);
} else {