|
From: Jonathan H. <the...@us...> - 2002-03-12 21:12:03
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv28435
Modified Files:
profile.php
Log Message:
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)
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.187
retrieving revision 1.188
diff -C2 -r1.187 -r1.188
*** profile.php 6 Mar 2002 21:23:49 -0000 1.187
--- profile.php 12 Mar 2002 21:11:59 -0000 1.188
***************
*** 1494,1498 ****
// us from doing file uploads....
//
! $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']) )
{
--- 1494,1505 ----
// us from doing 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']) )
{
|