Updated extension function

As noted by someone else, split is deprecated so I modified the findexts function
Merge branch 'pr/5'

Conflicts:
	index.php