Sindbad~EG File Manager

Current Path : /home/copmadinaarea/www/wp-content__80fcb17/plugins/adorechurch-core/download/
Upload File :
Current File : /home/copmadinaarea/www/wp-content__80fcb17/plugins/adorechurch-core/download/download.php

<?php
$file = $_GET['file'];
$name =pathinfo($file, PATHINFO_BASENAME);
$ext = pathinfo($file, PATHINFO_EXTENSION);
$match_array =array('pdf', 'mp3');
if(in_array($ext,$match_array)){
header("Content-type: application/".$ext);
header("Content-Disposition: attachment; filename=". $name);
readfile($file);
}
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists