Update download.php

Lines 472 & 485 modified.