aboutsummaryrefslogtreecommitdiff
path: root/pages/feedback.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-01 16:57:07 +0100
committerMaZderMind2015-03-01 16:57:07 +0100
commitc094ad5e731ce6d9631d481f3974251af7f2dcc5 (patch)
tree8486b25f03c85c9e8b1832f0cd045d799e136785 /pages/feedback.php
parent601e5c505a7a02537e5e25fed3e8498942c2e719 (diff)
Feedback-System
Diffstat (limited to 'pages/feedback.php')
-rw-r--r--pages/feedback.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/feedback.php b/pages/feedback.php
index 4c214ce..8b87b01 100644
--- a/pages/feedback.php
+++ b/pages/feedback.php
@@ -1,5 +1,7 @@
<?php
+require_once('lib/bootstrap.php');
+
if(
!isset($_POST['datetime']) ||
!isset($_POST['net']) ||
@@ -9,8 +11,6 @@ if(
!isset($_POST['provider']) ||
!isset($_POST['issuetext'])
) {
- require_once('lib/bootstrap.php');
-
echo $tpl->render(array(
'page' => 'feedback',
'title' => 'Give Feedback',
@@ -19,7 +19,7 @@ if(
}
else
{
- $db = new PDO('sqlite:/opt/31c3-streaming-feedback/feedback.sqlite3');
+ $db = new PDO(get('FEEDBACK.DSN'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stm = $db->prepare('