From 317f4fb579d6978607e83ca1a64d973e89a5c45e Mon Sep 17 00:00:00 2001 From: mattbk Date: Fri, 30 Oct 2015 08:45:51 -0500 Subject: [PATCH] misc --- index.php | 7 ++++++- views/finish.html.twig | 2 ++ views/results.html.twig | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index e979ff0..8493b6b 100755 --- a/index.php +++ b/index.php @@ -94,6 +94,11 @@ switch ($mode) { ) or die('Could not prepare query'); $query->execute() or die('Could not execute query:
'.mysqli_error($db)); $query->close(); + + //Debugging I think? + $variables['debug'] = $_SESSION['results']; + + break; case 'results': $download = isset($_GET['download']); @@ -165,5 +170,5 @@ if (!empty ($template)) { echo $twig->render($template, $variables); } else { - //header('HTTP/1.0 404 Not Found'); + header('HTTP/1.0 404 Not Found'); } \ No newline at end of file diff --git a/views/finish.html.twig b/views/finish.html.twig index 8285ab9..86c095c 100644 --- a/views/finish.html.twig +++ b/views/finish.html.twig @@ -6,4 +6,6 @@

Thank you for your participation.

Return to homepage »

+ + {% endblock %} \ No newline at end of file diff --git a/views/results.html.twig b/views/results.html.twig index 46031a5..dc42f33 100644 --- a/views/results.html.twig +++ b/views/results.html.twig @@ -35,8 +35,8 @@ +
{{ dump(stats) }}
+
{{ dump(debug) }}
-->

Raw results

Download results