"; echo ""; echo ""; echo "
"; echo ""; if ($state == "Upload"){ if ($File == 'none' || $File == ''){ echo "ERROR: File was not successfull in loading.
"; }else{ $path2pic = "./$name"; copy($File, $path2pic); unlink($File); } } echo "\n\n\n
\n"; $dir = "./"; $x=0; if( !($dirid = @opendir( $dir ))) exit; readdir( $dirid ); // "." readdir( $dirid ); // ".." while ($entry = readdir( $dirid )) { if ($entry != "index.html" && substr($entry,0,1) != "."){ if ($x > 1){ echo "\n"; $tr = "y"; $x =0; }else{ echo "\n"; $tr = "n"; $x ++; } } }; if ($tr == "n"){ echo "";} echo "
$entry
$entry
\n\n"; ?>