aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-03-12 21:12:00 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-03-12 21:12:00 +0000
commit1db4b1fc4412a696fb2833bd2590c982925c222b (patch)
tree7e6dbf6b3775be5d7cf35391f55af7e104213ab9 /phpBB/profile.php
parentefc74bc4f0b76321014b0299f3539099e3d57876 (diff)
downloadforums-1db4b1fc4412a696fb2833bd2590c982925c222b.tar
forums-1db4b1fc4412a696fb2833bd2590c982925c222b.tar.gz
forums-1db4b1fc4412a696fb2833bd2590c982925c222b.tar.bz2
forums-1db4b1fc4412a696fb2833bd2590c982925c222b.tar.xz
forums-1db4b1fc4412a696fb2833bd2590c982925c222b.zip
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
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php9
1 files changed, 8 insertions, 1 deletions
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 = '';