10 Einträge, 1 Seite |
002: # Pfad zu Prel
021: my $os = "UNIX";
my $osname = $^O;
027: my @email_list = ("info\@chedapinta.com", "webmaster\@chedapinta.com");
035: $FORM{'recipient'} = my $recipient;
$text =~ tr/\r\n//d
061: (my $sec, my $min, my $hour, my $mday, my $mon, my $year, my $wday, my $yday, my $isdst) = localtime(time);
my($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
1
2
3
4
5
6
7
067: my $countfile = 'kontaktcount.txt';
068: my $count = `cat $countfile`;
069: chop($count);
070: $count = $count + 1;
071: open (INF, ">$countfile") || die "Kann Countfile nicht öffnen: $!";
072: print INF "$count\n";
073: close (INF);
1
2
3
4
5
6
7
8
9
my $countfile = 'kontaktcount.txt';
my $count;
open(COUNT, '<', $countfile) or die $!;
my $count = <COUNT>;
close(COUNT);
chomp($count);
open(COUNT, '>', $countfile) or die $!;
print ++$count;
close(COUNT);
1
2
3
4
5
6
7
8
9
10
11
12
13
my $countfile = 'kontaktcount.txt';
my $count;
open(COUNT, '<', $countfile) or die $!;
flock(COUNT, 2) or die $!;
my $count = <COUNT> || 0;
flock(COUNT, 8) or die $!;
close(COUNT);
chomp($count);
open(COUNT, '>', $countfile) or die $!;
flock(COUNT, 2) or die $!;
print ++$count;
flock(COUNT, 8) or die $!;
close(COUNT);
1
2
3
4
5
6
7
8
9
10
11
use Fcntl;
my $countfile = 'kontaktcount.txt';
sysopen(COUNT, $countfile, O_RDWR|O_CREATE) or die $!;
flock(COUNT, 2) or die $!;
my $count = <COUNT> || 0;
chomp($count);
seek(COUNT, 0, 0) or die $!;
truncate(COUNT, 0, 0) or die $!;
print COUNT ++$count;
close(COUNT);
089: &falsch('Fehler 04: Bitte einen gueltigen Namen eingeben !<br>') unless ($name =~ m/\D/);
&falsch('...') unless $name =~ /^[-A-Za-z\s]+$/; # Bindestrich, Buchstaben, Leerzeichen
1
2
3
4
5
6
7
8
9
05: open (MAIL, "|$mailprog -oi -t") || die "Kann Sendmail nicht starten: $!";
106: print MAIL "From: $email\n";
107: print MAIL "To: $email_list[0]\n";
108: print MAIL "Subject: $subject\n\n";
109: print MAIL "===========================================\n";
110: print MAIL "====== KUNDENANFRAGE via WebFormular ======\n";
[...]
127: print MAIL "<<< Dies ist ein Service des Webmasters: Nils Meiser >>>";
128: close (MAIL);
1
2
3
4
5
6
7
8
9
10
print MAIL <<"EOMAIL";
From: $email
To: $email_list[0]
Subject: $subject
===========================================
====== KUNDENANFRAGE via WebFormular ======
[...]
<<< Dies ist ein Service des Webmasters: Nils Meiser >>>
EOMAIL
1
2
3
4
5
Links 2 the needs:
http://www.geocities.com/Area51/Shuttle/5695/kontakt.html
http://www.geocities.com/Area51/Shuttle/5695/kontakt.pl
Quote
&falsch('Fehler 05: Bitte eine gueltige eMail Adresse eingeben !<br>') unless (Email::Valid->address($email));
close(MAIL) or die "Error in sending mail: $!\n";
10 Einträge, 1 Seite |