Download directory not being updated, spotted by Terediye Berg on his first post.

Add this around line 409

$download = $_POST['download'];

Complete Package.

More...