max upload size
This commit is contained in:
@@ -30,8 +30,12 @@ require('./tbl_properties_table_info.php');
|
|||||||
<table cellpadding="5" border="2">
|
<table cellpadding="5" border="2">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $strLocationTextfile; ?></td>
|
<td><?php echo $strLocationTextfile; ?></td>
|
||||||
<td colspan="2"><input type="file" name="textfile" />
|
<td colspan="2"><input type="file" name="textfile" />
|
||||||
<?php
|
<?php
|
||||||
|
echo PMA_displayMaximumUploadSize($max_upload_size);
|
||||||
|
// some browsers should respect this :)
|
||||||
|
echo ' ' . PMA_generateHiddenMaxFileSize($max_upload_size) . "\n";
|
||||||
|
|
||||||
if (!empty($cfg['UploadDir'])) {
|
if (!empty($cfg['UploadDir'])) {
|
||||||
if (substr($cfg['UploadDir'], -1) != '/') {
|
if (substr($cfg['UploadDir'], -1) != '/') {
|
||||||
$cfg['UploadDir'] .= '/';
|
$cfg['UploadDir'] .= '/';
|
||||||
|
@@ -196,8 +196,11 @@ if ($is_upload && (!isset($is_inside_querywindow) ||
|
|||||||
echo ' ' . ((isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && $querydisplay_tab == 'full') || !isset($is_inside_querywindow) ? '<i>' . $strOr . '</i>' : '') . ' ' . $strLocationTextfile . ' :<br />' . "\n";
|
echo ' ' . ((isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && $querydisplay_tab == 'full') || !isset($is_inside_querywindow) ? '<i>' . $strOr . '</i>' : '') . ' ' . $strLocationTextfile . ' :<br />' . "\n";
|
||||||
?>
|
?>
|
||||||
<div style="margin-bottom: 5px">
|
<div style="margin-bottom: 5px">
|
||||||
<input type="file" name="sql_file" class="textfield" /><br />
|
<input type="file" name="sql_file" class="textfield" /> <?php echo PMA_displayMaximumUploadSize($max_upload_size);?><br />
|
||||||
<?php
|
<?php
|
||||||
|
// some browsers should respect this :)
|
||||||
|
echo ' ' . PMA_generateHiddenMaxFileSize($max_upload_size) . "\n";
|
||||||
|
|
||||||
if (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE) {
|
if (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE) {
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="focus_querywindow" value="true" />
|
<input type="hidden" name="focus_querywindow" value="true" />
|
||||||
|
Reference in New Issue
Block a user