Leser: 1
|< 1 2 3 >| | 30 Einträge, 3 Seiten |
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
[E|B,24.08.2003, 23:11]Oder schau dir einfach den Code von meinem Uploadscript an:
CGI-World.de > Eriks Upload Script
1
2
3
4
<tr>
<td width="44%"><small>$language{field61}:</small></td>
<td width="56%"><small><input type="file" name="upload" size=28 maxlength=80></small></td>
</tr>
1 2 3 4 5 6 7 8
open(DAT,">$ENV{DOCUMENT_ROOT}/images/$read[0].gif") || die $!; binmode DAT; binmode $form{upload}; my $data; while(read $form{upload}, $data, 1024) { print DAT $data; } close(DAT);
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
if($checksuffix eq "0") { open(F, "data/suffixfiles.txt") || die "Cant't open data: 'data/suffixfiles.txt'!\n$!"; flock(F,2) if($flock); @suffix = <F>; flock(F,8) if($flock); close(F); foreach $i (@suffix){ chomp($i); $i =~ s/[\n\r]//g; if($FILE{'uploaddata01'} =~ m/\.$i$/i){ $x = "1"; } } &index("Datei besitzt ungültige Endung!") if($x ne "1"); }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
if($checksuffix eq "0") { open(F, "data/suffixfiles.txt") || die "Cant't open data: 'data/suffixfiles.txt'!\n$!"; flock(F,2) if($flock); while(<F>) { chomp; s/[\n\r]//g; if($FILE{'uploaddata01'} =~ m/\.$_$/i){ $x = "1"; } } # flock(F,8) if($flock); //unflock ist nicht nötig close(F); &index("Datei besitzt ungültige Endung!") if($x ne "1"); }
|< 1 2 3 >| | 30 Einträge, 3 Seiten |