|< 1 2 >| | 17 Einträge, 2 Seiten |
print check_date("$day","$month","$year");
1
2
3
4
5
6
7
8
9
10
11
12
# Checkt das Datum
sub check_date{
return 0 if scalar @_ != 3;
my ($day, $month, $year) = @_;
my $zahl = "$day$month$year";
if($zahl =~ /[^0-9]/){return 0}
if($month > 12 or $month <= 0 or $day <= 0 and $year < 1582){return 0}
if($day > &days_of_month($month,$year)){return 0}
if($month < 10 and $year < 1582){return 0} # 15.10.1582 Gregorian Day
# over!
return 1;
}
my $var = check_date($day,$month,$year);
my $var = login.cgi;
1
2
if ($username =~ $inusername && $inuser_passwd eq crypt($user_passwd, $inuser_passwd)){
return 1;
1
2
3
4
5
use strict;
sub schagmichtot ($) {return 1 if $_[0] eq 'ok';}
1;# Damit unser require/do sein true bekommt.
1
2
3
4
my $var = do 'script.cgi';
unless (defined ($var)) {
die "Error: couldn't include script.cgi: $!\n";
}
|< 1 2 >| | 17 Einträge, 2 Seiten |