summaryrefslogtreecommitdiff
path: root/dash/headless.php
diff options
context:
space:
mode:
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();