6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my(%AD, %FILE, $template,$catlink);
$template = &ParseCommonCodes($TEMPLATE{image});
%AD = &RetrieveAdDB($FORM{id});
%FILE =
&RetrieveFilesDB($AD{$FORM{file_id}},'[VIEW_URL]');
if($FILE{id}){ $template =~
s/\[FULLSIZE\]/$FILE{code}/iges; }
else{ &
nbsp; $template =~
s/\[FULLSIZE\]//i; }
foreach (keys %FILE){ $template =~
s/\[FILE_$_\]/$FILE{$_}/ig; }
1
2
3
4
5
6
7
8
9
10
my($file, $x, $y);
($file)= @_;
open(FILE, "<$file") or return (0,0);
binmode(FILE);
if ($file =~ /jpe?g$/i){ ($x,$y) = &jpegsize(\*FILE); }
elsif($file =~ /\.gif$/i){ ($x,$y) = &gifsize(\*FILE);; }
elsif($file =~ /\.xbm$/i){ ($x,$y) = &xbmsize(\*FILE); }
elsif($file =~ /\.png$/i) {($x,$y) = &pngsize(\*FILE); }
close(FILE);
return ($x,$y);
<img src="..." style="width: 350px; max-width: 300px" />
6 Einträge, 1 Seite |