diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php index ad4f4454d74..75c198560f8 100644 --- a/htdocs/ftp/index.php +++ b/htdocs/ftp/index.php @@ -361,6 +361,21 @@ if ($_REQUEST['action'] == 'download') llxHeader(); +// Add logic to shoow/hide buttons +if ($conf->use_javascript_ajax) +{ +?> + +'; + print ''; // Name print ''; $newsection=$section.(preg_match('@[\\\/]$@',$section)?'':'/').$file; @@ -561,14 +576,11 @@ else { print ''.img_file().''; print '   '; + print ''; + print '   '; print ''.img_delete().''; print ''; print ''; - if ($conf->use_javascript_ajax) - { - print '   '; - print '   '; - } } print ''; print ''."\n"; @@ -593,16 +605,10 @@ else else print ' '; */ - if ($conf->use_javascript_ajax) - { - print '
'; - print ''; - print ''; - } + print '
'; + print '
'; + print ''; + print '
'; print ""; }