emptiness of $_POST["dir"] now checking correctly. Some style fixes"
removed unused image