403Webshell
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/logrotate/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/home/SERVERWEB/webmin-2.105/logrotate/save_sched.cgi
#!/usr/bin/perl
# save_sched.cgi
# Create, update or delete the rotation cron job

require './logrotate-lib.pl';
&ReadParse();

&foreign_require("cron", "cron-lib.pl");
@jobs = &cron::list_cron_jobs();
if ($in{'idx'} ne "") {
	$oldjob = $job = $jobs[$in{'idx'}];
	}
else {
	$job = { 'user' => 'root',
		 'command' => &has_command($config{'logrotate'})." ".
			      $config{'logrotate_conf'},
		 'active' => 1 };
	}
&lock_file(&cron::cron_file($job));

&error_setup($text{'sched_err'});
&cron::parse_times_input($job, \%in) if ($in{'sched'});

if ($oldjob && $in{'sched'}) {
	# Just update
	&cron::change_cron_job($job);
	$action = "modify";
	}
elsif ($oldjob && !$in{'sched'}) {
	# Delete
	&cron::delete_cron_job($job);
	$action = "delete";
	}
elsif (!$oldjob && $in{'sched'}) {
	# Create new
	&cron::create_cron_job($job);
	$action = "create";
	}

&unlock_file(&cron::cron_file($job));
&webmin_log($action, "sched");

&redirect("");


Youez - 2016 - github.com/yon3zu
LinuXploit