| 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/inetd/ |
Upload File : |
#!/usr/bin/perl
# delete_rpc.cgi
# Delete an RPC program
require './inetd-lib.pl';
&ReadParse();
&lock_inetd_files();
@rpcs = &list_rpcs();
@rpc = @{$rpcs[$in{'rpos'}]};
&delete_rpc($rpc[0]);
if ($in{'ipos'} =~ /\d/) {
@inets = &list_inets();
@inet = @{$inets[$in{'ipos'}]};
&delete_inet($inet[0], $inet[10]);
}
&unlock_inetd_files();
&webmin_log("delete", "rpc", $rpc[1],
{ 'name' => $rpc[1], 'number' => $rpc[2],
'active' => $inet[1],
'user' => $inet[7], 'wait' => $inet[6],
'prog' => join(" ", @inet[8..@inet-1]) } );
&redirect("");