Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(-1);
- if (isset($_GET["getit"])) {
- header('Content-type: text/plain');
- header('Content-Disposition: attachment; filename="kesh.txt"');
- print("This file was downloaded using the browser!");
- exit();
- }
- ?>
- <a href="index.php">Go back to index</a>
- | <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
- <h1>Download</h1>
- <p>You can disable ability to download files by setting
- the "enable_downloads" option to false in settings.json.</p>
- <p>
- Download file:
- <a href="download.php?getit=1">kesh.txt</a>
- </p>
Add Comment
Please, Sign In to add comment