Array Declared

Function for file extension mapping edited to avoid Php errors for
improper declared URLs (thanks Brad!)