|< 1 2 >| | 20 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/perl
$parameter = $ENV{QUERY_STRING};
$ip_adresse = $ENV{'REMOTE_ADDR'};
($was,$url) = split(/\|/ , $parameter);
$file = $url;
$file =~ s/http|\/|:|www|-|\.|\?|\=//g;
$datei = $file . ".txt";
$log = $file . ".log";
if ($was eq "count") {&count;};
if ($was eq "show"){&show;};
sub einlesen{
open (DATA, "<$log");
$ip = <DATA>;
close (DATA);
open (CLICKDATA,"<$datei");
$clicks = <CLICKDATA>;
close (CLICKDATA);
if ($clicks eq ""){$clicks = "0";};
if ($clicks eq "555"){$clicks = "0";};
$clicks++;
}
sub show {
&einlesen;
print "Content-type: text/html\n\n";
print "document.write('$clicks ');";
if ($clicks eq "555") {
print "document.write(' <a href=http://www.meinedomain.de/gewinn-id3464442578 target=main><img src=http://www.meinedomain.de/images/gewinn.gif width=80 height=25 border=0 align=absmiddle></a>');";
};
exit;
}
sub ausgeben{
open (CLICKDATA,">$datei");
print CLICKDATA "$clicks";
close (CLICKDATA);
open (DATA,">$log");
print DATA "$ip_adresse";
close (DATA);
}
sub count {
&einlesen;
if ($ip ne $ip_adresse){
&ausgeben;
}
print "Location: $url\n\n";
exit;
}
QuoteCode: (dl )open (CLICKDATA,">$datei");
QuoteCode: (dl )$datei = $file . ".txt";
Quote
|< 1 2 >| | 20 Einträge, 2 Seiten |