I did a little fixing up:
<form method="post" action="<?=MakeHtmlPath(FILE);?>">
<input type="image" src="<?=$thumbdir.'/'.$images[$k][0];?>" name="imPost" value="<?=CutDir($_SERVER['PHP_SELF']).'/'.$images[$k][0];?>">
</form>
But when I test output the lines like:
<?=MakeHtmlPath(FILE);?>
I don't see anything wrong. And I tested all of them. Heeeellllp!