tried to fix bug #494564 - No Sql Query!

This commit is contained in:
Loïc Chapeaux
2002-02-10 17:53:31 +00:00
parent 8c609690eb
commit 42f489150a
3 changed files with 13 additions and 8 deletions

View File

@@ -681,6 +681,10 @@ echo "\n";
/**
* Work on the table
*/
// loic1: defines wether file upload is available or not
$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')))
: (intval(@get_cfg_var('upload_max_filesize')));
?>
<!-- TABLE WORK -->
<ul>
@@ -693,7 +697,7 @@ echo "\n";
<!-- Query box and bookmark support -->
<li>
<a name="querybox"></a>
<form method="post" action="read_dump.php3" enctype="multipart/form-data"
<form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>
onsubmit="return checkSqlQuery(this)">
<input type="hidden" name="is_js_confirmed" value="0" />
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
@@ -714,9 +718,6 @@ echo "\n";
</div>
<?php
// loic1: displays import dump feature only if file upload available
$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')))
: (intval(@get_cfg_var('upload_max_filesize')));
if ($is_upload) {
echo ' <i>' . $strOr . '</i> ' . $strLocationTextfile . '&nbsp;:<br />' . "\n";
?>