Your IP : 10.1.73.149


Current Path : /home/bolconlineco/public_html/aaaaaa/student/
Upload File :
Current File : /home/bolconlineco/public_html/aaaaaa/student/download.php

<?php
ob_start();
if(isset($_GET['spid']))
{
    $file="../sportmaterials/".$_GET['spid'];
    header('Content-Type: application/octet-stream');
    $all=explode('.',$_GET['spid']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);
}
if(isset($_GET['res']))
{

    $file="../studentresult/".$_GET['res'];
    header('Content-Type: application/octet-stream');
    $all=explode('.',$_GET['res']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);

}

if(isset($_GET['download_file']))
{

    $file="../Assignment/".$_GET['download_file'];
    $all=explode('.',$_GET['download_file']);
    $mime=$all[1];
    // header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);

}
if(isset($_GET['sm']))
{


    $file="../StudyMaterials/".$_GET['sm'];
    // header('Content-Type: application/octet-stream');
    $all=explode('.',$_GET['sm']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);

}

if(isset($_GET['uid']))
{
    $file="../combine/coursematerials/".$_GET['uid'];
    $all=explode('.',$_GET['spid']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);
}
if(isset($_GET['vp']))
{
    $file="../combine/coursevideos/".$_GET['vp'];
    $all=explode('.',$_GET['vp']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);
}
if(isset($_GET['zc']))
{
    $file="../combine/coursematerials/".$_GET['zc'];
    $all=explode('.',$_GET['zc']);
    $mime=$all[1];
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header("Content-type: application/'$mime'");
    header('Content-Length: ' . filesize($file));
    readfile($file);
}
?>