Better fix for bug #523408
This commit is contained in:
@@ -528,9 +528,8 @@ if ($num_tables > 0) {
|
|||||||
// loic1: defines wether file upload is available or not
|
// loic1: defines wether file upload is available or not
|
||||||
$is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
|
$is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
|
||||||
? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize')))
|
? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize')))
|
||||||
// loic1: php3.0.15 bug -> always enabled with php3
|
// loic1: php 3.0.15 and lower bug -> always enabled
|
||||||
// : (intval(@get_cfg_var('upload_max_filesize')));
|
: (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize')));
|
||||||
: 1;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Query box, sql file loader and bookmark support -->
|
<!-- Query box, sql file loader and bookmark support -->
|
||||||
|
@@ -688,9 +688,8 @@ echo "\n";
|
|||||||
// loic1: defines wether file upload is available or not
|
// loic1: defines wether file upload is available or not
|
||||||
$is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
|
$is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
|
||||||
? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize')))
|
? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize')))
|
||||||
// loic1: php3.0.15 bug -> always enabled with php3
|
// loic1: php 3.0.15 and lower bug -> always enabled
|
||||||
// : (intval(@get_cfg_var('upload_max_filesize')));
|
: (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize')));
|
||||||
: 1;
|
|
||||||
?>
|
?>
|
||||||
<!-- TABLE WORK -->
|
<!-- TABLE WORK -->
|
||||||
<ul>
|
<ul>
|
||||||
|
Reference in New Issue
Block a user