/usr/share/usermin/authentic-theme/extensions/file-manager
NameSizeModeActions
acls.cgi23370755editdlrm
bookmark.cgi9530755editdlrm
chattr.cgi12180755editdlrm
chcon.cgi10820755editdlrm
chmod.cgi33050755editdlrm
chown.cgi15400755editdlrm
compress.cgi47990755editdlrm
copy.cgi6180755editdlrm
create_file.cgi14380755editdlrm
create_folder.cgi14290755editdlrm
create_symlink.cgi12800755editdlrm
cut.cgi6170755editdlrm
delete.cgi36920755editdlrm
download.cgi36120755editdlrm
extract.cgi78580755editdlrm
fetcher.cgi13110755editdlrm
file-manager-lib.pl492700644editdlrm
file-manager-reinit.min.js16280644editdlrm
file-manager-reinit.min.js.gz8050644editdlrm
file-manager.min.js2352190644editdlrm
file-manager.min.js.gz503250644editdlrm
gpg.cgi39690755editdlrm
http_download.cgi15840755editdlrm
list-images.cgi76810755editdlrm
list.cgi3450755editdlrm
paste.cgi20960755editdlrm
purge_trash.cgi14890755editdlrm
rename.cgi15190755editdlrm
search.cgi3450755editdlrm
tree.cgi6100755editdlrm
Edit: /usr/share/usermin/authentic-theme/extensions/file-manager/http_download.cgi (1584B)
#!/usr/bin/perl # # Authentic Theme (https://github.com/authentic-theme/authentic-theme) # Copyright Ilia Rostovtsev # Copyright Alexandr Bezenkov (https://github.com/real-gecko/filemin) # Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) # use strict; our (%in, %text, $cwd, $path); require($ENV{'THEME_ROOT'} . "/extensions/file-manager/file-manager-lib.pl"); if (!$in{'link'}) { redirect_local('list.cgi?path=' . urlize($path) . '&module=filemin' . extra_query()); return; } my ($host, $port, $page, $ssl) = parse_http_url($in{'link'}); if (!$host) { print_error($text{'error_invalid_uri'}); } else { my $file = $page; my $full; $file =~ s/^.*\///; $file ||= "index.html"; $full = "$cwd/$file"; if (-e $full) { print_error(text('filemanager_rename_exists', $file, $path, $text{'theme_xhred_global_file'}) . "."); } else { my $success; my @st = stat($cwd); if ($ssl == 0 || $ssl == 1) { http_download($host, $port, $page, $full, undef, undef, $ssl, $in{'username'}, $in{'password'}); } else { ftp_download($host, $page, $full, undef, undef, $in{'username'}, $in{'password'}, $port); } set_ownership_permissions($st[4], $st[5], undef, $full); @st = stat($cwd); $success .= text('http_done', nice_size($st[7]), "" . html_escape($full) . ""); redirect_local('list.cgi?path=' . urlize($path) . '&module=filemin' . '&success=' . $success . extra_query()); } }