We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 750e6bd commit 2ad7ecdCopy full SHA for 2ad7ecd
admin/results.php
@@ -41,12 +41,14 @@
41
} else {
42
if (isset($_GET['type']) && $_GET['type'] == 'text') {
43
header('Content-Type: text');
44
+ header('Content-Disposition: attachment; filename="votes.txt"');
45
$query = mysqli_query($DB, "SELECT vote_string from votes WHERE vote_string IS NOT NULL");
46
47
while ($result = $query->fetch_assoc()) {
48
echo $result['vote_string'] . "\n";
49
}
50
- echo 'STV is being followed. To view the plaintext dump, visit <a href="?type=text">results.php?type=text</a>';
51
+ $htmlOutput = 'STV is being followed. To view the plaintext dump, visit <a href="?type=text">results.php?type=text</a>';
52
53
+ include("../template.php");
54
0 commit comments