Shell File Manager

Current Path : /home/camscanae/.trash/downloads/
Upload File :
Current File : /home/camscanae/.trash/downloads/Downloads copy.php

<link rel="shortcut icon" type="image/x-icon" href="img/vect.jpg">
<title>Error </title>
<?php


$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$match_link = "http://$_SERVER[HTTP_HOST]/CamScan FZCO/Downloads.php?";
// print_r($match_link);
// print_r($actual_link);

if ($actual_link == $match_link) {


    echo '<p style="color:#007580; text-align:center ; font-size: 40px ; padding:50 "> tttttttttttttttttt
    </p>';
}


if (!empty($_GET['file'])) {
    $fileName = basename($_GET['file']);
    $filePath = 'files/' . $fileName;
    if (!empty($fileName) && file_exists($filePath)) {
        // Define headers
        header("Cache-Control: public");
        header("Content-Description: File Transfer");
        header("Content-Disposition: attachment; filename=$fileName");
        header("Content-Type: application/zip");
        header("Content-Transfer-Encoding: binary");


        // Read the file
        readfile($filePath);
        exit;
    } else {

        echo '<p style="color:#007580; text-align:center ; font-size: 40px ; padding:50 "><strong style="color:#fed049"> Sorry !!! </strong><br>
        The file does not exist. </p>';
    }
}

Shell File Manager Version 1.1, Coded By Shell
Email: [email protected]