misc
This commit is contained in:
@ -94,6 +94,11 @@ switch ($mode) {
|
|||||||
) or die('Could not prepare query');
|
) or die('Could not prepare query');
|
||||||
$query->execute() or die('Could not execute query:<br>'.mysqli_error($db));
|
$query->execute() or die('Could not execute query:<br>'.mysqli_error($db));
|
||||||
$query->close();
|
$query->close();
|
||||||
|
|
||||||
|
//Debugging I think?
|
||||||
|
$variables['debug'] = $_SESSION['results'];
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'results':
|
case 'results':
|
||||||
$download = isset($_GET['download']);
|
$download = isset($_GET['download']);
|
||||||
@ -165,5 +170,5 @@ if (!empty ($template)) {
|
|||||||
echo $twig->render($template, $variables);
|
echo $twig->render($template, $variables);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//header('HTTP/1.0 404 Not Found');
|
header('HTTP/1.0 404 Not Found');
|
||||||
}
|
}
|
@ -6,4 +6,6 @@
|
|||||||
</header>
|
</header>
|
||||||
<p>Thank you for your participation.</p>
|
<p>Thank you for your participation.</p>
|
||||||
<p><a href="start" class="btn btn-large btn-primary">Return to homepage »</a></p>
|
<p><a href="start" class="btn btn-large btn-primary">Return to homepage »</a></p>
|
||||||
|
|
||||||
|
<!-- <pre>{{ dump(debug) }}</pre> -->
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<!--Doing some debugging.
|
<!--Doing some debugging.
|
||||||
<pre>{{ dump(stats) }}</pre>
|
<pre>{{ dump(stats) }}</pre>
|
||||||
<pre>{{ dump(data) }}</pre> -->
|
<pre>{{ dump(debug) }}</pre> -->
|
||||||
|
|
||||||
<h2 id="raw-results">Raw results</h2>
|
<h2 id="raw-results">Raw results</h2>
|
||||||
<p><a class="btn" href="index.php?mode=result&download=1"><i class="icon-download-alt"></i> Download results</a></p>
|
<p><a class="btn" href="index.php?mode=result&download=1"><i class="icon-download-alt"></i> Download results</a></p>
|
||||||
|
Reference in New Issue
Block a user