8 Einträge, 1 Seite |
1
2
[EMAIL=email@domain.de]email@domain.de[/EMAIL]|123456789
[EMAIL=post@xyz.de]post@xyz.de[/EMAIL]|987654321
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sub CheckTempDB
{
# Templist öffnen und einlesen
open (templist, "<$templist") or &error("Unable to open the templist file for reading");
if ($flock eq "y")
{flock templist, 2;}
@templist=<templist>;
close(templist);
# Templist sortieren und auf Strings rausfiltern
foreach $templist(@templist)
{
($LISTOptMail, $LISTOptID) = split (/\|/, $templist);{
$LISTOptID =~ s/\n//g; #Entfehrnt den verwi... Zeilenumbruch!
if (($LISTOptMail eq $LINKOptMail) && ($LISTOptID eq $LINKOptID)) {$OptIDStatus = "ok";}
else {$OptIDStatus = 'error';}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
...
sub CheckTempDB
{
# Templist öffnen und einlesen
open(TL, "< $templist") or &error("Unable to open the templist file for reading");
if($flock eq "y") {flock TL, 2;}
my @templist = <TL>;
close(TL);
# Templist sortieren und auf Strings rausfiltern
foreach (@templist)
{
s/\r?\n//g; #Entfehrnt den verwi... Zeilenumbruch!
my ($LISTOptMail, $LISTOptID) = split (/\|/, $_);
{
if(($LISTOptMail eq $LINKOptMail) && ($LISTOptID eq $LINKOptID)) {$OptIDStatus = "ok";}
else {$OptIDStatus = 'error';}
}
}
}
8 Einträge, 1 Seite |