| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/jabber/ |
Upload File : |
#!/usr/bin/perl
# save_modules.cgi
# Save server modules and shared libraries
require './jabber-lib.pl';
&ReadParse();
&error_setup($text{'modules_err'});
$conf = &get_jabber_config();
$session = &find_by_tag("service", "id", "sessions", $conf);
$load = &find("load", $session);
$newload = [ "load", [ $load->[1]->[0] ] ];
for($n=0; defined($mod = $in{"mod_$n"}); $n++) {
next if (!$mod);
$so = $in{"so_$n"};
$mod =~ /^\S+$/ || &error(&text('modules_emod', $mod));
$sopath = $so =~ /^\// ? $so : "$config{'jabber_dir'}/$so";
-r $sopath || &error(&text('modules_eso', $so));
&save_directive($newload, $mod, [ [ $mod, [ { }, 0, $so ] ] ] );
}
&save_directive($session, [ $load ], [ $newload ] );
&save_jabber_config($conf);
&redirect("");