ich verstehe aber eines noch nicht und darauf habe ich bisher keine Antwort bekommen:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sub tmpl {
my $usrid = get_my_userid();
my $text;
local $/;
local *D;
my ($dat, $hashref) = @_;
open(D, $_[0]) || die $!;
$text = <D>;
close(D);
$hashref->{sid} = $sessionid unless $hashref->{sid};
$hashref->{username} = $usrid;
chop($text);
$text =~ s{ %% ( .*? ) %% }
{ exists( $hashref->{$1} )
? $hashref->{$1}
: ""
}gsex;
return "Content-Type: text/html\n\n$text" if $hashref->{header} == 1;
return $text;
}
print tmpl('/usr/local.../page', {header=>1});
WARUM will Konqueror das Script runterladen wenn angeblich ein Header gesetzt wurde?