From 1db4b1fc4412a696fb2833bd2590c982925c222b Mon Sep 17 00:00:00 2001 From: the_systech Date: Tue, 12 Mar 2002 21:12:00 +0000 Subject: Ok one last attempt on my part to fix file upload bugs.. Might actually work (Hey it could happen, even I get one right occasionally) git-svn-id: file:///svn/phpbb/trunk@2296 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'phpBB/profile.php') diff --git a/phpBB/profile.php b/phpBB/profile.php index 34745ac5ec..b0a584b6c3 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -1493,7 +1493,14 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) // Let's do an overall check for settings/versions which would prevent // us from doing file uploads.... // - $file_uploads = get_cfg_var('file_uploads'); + if( phpversion() >= '4.0.0 ) + { + $file_uploads = ini_get('file_uploads'); + } + else + { + $file_uploads = get_cfg_var('file_uploads'); + } if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off')|| (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) ) { $form_enctype = ''; -- cgit v1.2.1