new branch windows

This commit is contained in:
Hash Borgir
2021-03-22 05:12:11 -06:00
parent b3d62294e6
commit 49003c236a
29 changed files with 807 additions and 0 deletions

27
download.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
error_reporting(-1);
if (isset($_GET["getit"])) {
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="phpdesktop.txt"');
print("This file was downloaded using the PHP Desktop browser!");
exit();
}
?>
<style type="text/css">@import url("style.css");</style>
<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">phpdesktop.txt</a>
</p>