1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

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
This commit is contained in:
the_systech
2002-03-12 21:12:00 +00:00
parent efc74bc4f0
commit 1db4b1fc44
3 changed files with 24 additions and 3 deletions

View File

@@ -32,7 +32,14 @@ if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['General']['Backup_DB'] = $filename . "?perform=backup";
$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') )
{
$module['General']['Restore_DB'] = $filename . "?perform=restore";