Using mysqli* functions instead of mysql* deprecated in php 5.5. Fixing $description and php tags.
Updating the download.php as well as some code formatting