The "upload dump file" feature is no long displayed if upload is disabled in the php configuration file
This commit is contained in:
@@ -475,11 +475,20 @@ if ($num_tables > 0) {
|
||||
<input type="checkbox" name="show_query" value="y" checked="checked" />
|
||||
<?php echo $strShowThisQuery; ?><br />
|
||||
</div>
|
||||
<?php echo "<i>$strOr</i> $strLocationTextfile"; ?> :<br />
|
||||
<?php
|
||||
// loic1: displays import dump feature only if file upload available
|
||||
$is_upload = (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 . ' :<br />' . "\n";
|
||||
?>
|
||||
<div style="margin-bottom: 5px">
|
||||
<input type="file" name="sql_file" /><br />
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
} // end if
|
||||
echo "\n";
|
||||
|
||||
// Bookmark Support
|
||||
if ($cfgBookmark['db'] && $cfgBookmark['table']) {
|
||||
if (($bookmark_list = list_bookmarks($db, $cfgBookmark)) && count($bookmark_list) > 0) {
|
||||
|
Reference in New Issue
Block a user