1
Fork 0

Present information and allow auto download

This commit is contained in:
Jake Howard 2015-06-14 18:14:34 +01:00
parent 24f620cab7
commit a65778060e
1 changed files with 12 additions and 0 deletions

View File

@ -13,3 +13,15 @@ header("Content Type: text/html");
<link rel=stylesheet type=text/css href="style.css"/>
<?php yandex_meta($properties["yandex transparency"]) ?>
</head>
<body><center>
<h1>File Information</h1><table border=1>
<tr><td>File Name:</td><td><?php echo $file["file name"];?></td></tr>
<tr><td>Description:</td><td><?php echo $file["description"]; ?></td></tr>
</table>
<?php echo "<a id='downloadButton' href='" . $file["file name"] . "' download='" . $file["file name"] . "' >Download File</a>"; ?>
</center>
<?php
if (isset($_GET['auto'])){
echo "<script>document.getElementById('downloadButton').click();</script>";
}
?></body></html>