?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
#
# exim.pl
#
sub checklimit {
my ($gid, $recipients_count) = @_;
my $group = getgrgid($gid);
my $limit = 0;
# get limit
open LIMITS, '/etc/exim.limits' or return 'no';
while () {
next if (/^#/);
if (/^(\S+):\s*(\d+)/o) {
$limit = $2 if ((! $limit) && $1 eq 'default_limit') || ($1 eq $group);
}
}
close LIMITS;
# if no limit
return 'no' if (!$limit);
#
my (undef, undef, $hour, $mday, $mon, $year) = localtime();
my $now = sprintf('%d-%02d-%02d %02d', $year + 1900, $mon + 1, $mday, $hour);
my $count = 0;
my $date = '';
if (-e '/var/spool/exim/mem/counters/' . $group) {
open C, '/var/spool/exim/mem/counters/' . $group;
($date, $count) = split (/:\s/, );
close C;
$count = 0 if ($date ne $now);
}
$count += $recipients_count;
open C, '>', '/var/spool/exim/mem/counters/' . $group;
print C $now . ': ' . $count;
close C;
return 'yes' if $count >= $limit;
return 'no';
}
1;