edittedd file index.php

editted the file so it checks on folders!