| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/home/SERVERWEB/webmin-2.105/software/ |
Upload File : |
#!/usr/bin/perl
# edit_pack.cgi
# Displays the details of an existing package, with links to uninstall and
# other options
require './software-lib.pl';
&ReadParse();
@pinfo = &package_info($in{'package'}, $in{'version'});
$pinfo[0] || &error($text{'edit_egone'});
&ui_print_header(undef, $text{'edit_title'}, "", "edit_pack");
@pinfo = &show_package_info($in{'package'}, $in{'version'}, 1);
print &ui_buttons_start();
# Show button to list files, if supported
if (!$pinfo[8]) {
print &ui_buttons_row("list_pack.cgi",
$text{'edit_list'},
$text{'edit_listdesc'},
&ui_hidden("package", $pinfo[0]).
&ui_hidden("version", $pinfo[4]).
&ui_hidden("search", $in{'search'}));
}
# Show button to un-install (if possible)
if (!$pinfo[7]) {
print &ui_buttons_row("delete_pack.cgi",
$text{'edit_uninst'},
$text{'edit_uninstdesc'},
&ui_hidden("package", $pinfo[0]).
&ui_hidden("version", $pinfo[4]).
&ui_hidden("search", $in{'search'}));
}
print &ui_buttons_end();
if ($in{'search'}) {
&ui_print_footer("search.cgi?search=$in{'search'}", $text{'search_return'});
}
else {
&ui_print_footer("tree.cgi#$pinfo[1]", $text{'index_treturn'});
}