summaryrefslogtreecommitdiff
path: root/dash/headless.php
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2017-03-11 01:29:13 -0800
committerCarson Fleming <cflems@cflems.net>2017-03-11 01:29:13 -0800
commit3d0d3a86106ece4ea298ab2f262b3af5ff8a7728 (patch)
treeb75b297d980f5b061595cea8b29fe42503907684 /dash/headless.php
parenta44a0e047a7582fe7e31743e1b03a17cf2987f73 (diff)
downloadbulletin-3d0d3a86106ece4ea298ab2f262b3af5ff8a7728.tar.gz
Almost there...
Diffstat (limited to 'dash/headless.php')
-rw-r--r--dash/headless.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/dash/headless.php b/dash/headless.php
index d85a66a..516cfd5 100644
--- a/dash/headless.php
+++ b/dash/headless.php
@@ -23,7 +23,11 @@ if (isset($_GET['clicks'])) {
$result->free();
$db->query('UPDATE responses, ads SET responses.matched = 1, ads.closed = 1 WHERE ads.id = responses.adid AND responses.id = '.intval($_GET['hire'])) or die('ERR');
if ($db->affected_rows < 1) die('NOK');
- hire_trigger(intval($_GET['hire']);
+ hire_trigger(intval($_GET['hire']));
+ die('OK');
+} else if (isset($_GET['rmad'])) {
+ $db->query('DELETE FROM ads WHERE ads.id = '.intval($_GET['rmad']).' AND ads.uid = '.$b_user['id']) or die('ERR');
+ if ($db->affected_rows < 1) die('NOK');
die('OK');
}
$db->close();