Present information and allow auto download
This commit is contained in:
parent
24f620cab7
commit
a65778060e
1 changed files with 12 additions and 0 deletions
12
index.php
12
index.php
|
@ -13,3 +13,15 @@ header("Content Type: text/html");
|
||||||
<link rel=stylesheet type=text/css href="style.css"/>
|
<link rel=stylesheet type=text/css href="style.css"/>
|
||||||
<?php yandex_meta($properties["yandex transparency"]) ?>
|
<?php yandex_meta($properties["yandex transparency"]) ?>
|
||||||
</head>
|
</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>
|
Reference in a new issue