@@ -6,9 +6,11 @@
|
|||||||
$authorised_users = get_subscribers($db, $request);
|
$authorised_users = get_subscribers($db, $request);
|
||||||
$is_authorised = isAuthorised($_SESSION['uuid'], $authorised_users, $request);
|
$is_authorised = isAuthorised($_SESSION['uuid'], $authorised_users, $request);
|
||||||
|
|
||||||
// Add subscriber
|
// Remove subscriber(s)
|
||||||
if ($is_authorised == true) {
|
if ($is_authorised == true) {
|
||||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
|
echo($_POST['addSubSelector']);
|
||||||
|
die();
|
||||||
foreach ($_POST['addSubSelector'] as $sub) {
|
foreach ($_POST['addSubSelector'] as $sub) {
|
||||||
try {
|
try {
|
||||||
$stmt = "DELETE FROM ticket_subscribers WHERE ticket_uuid=:tktuuid AND user_uuid=:usruuid";
|
$stmt = "DELETE FROM ticket_subscribers WHERE ticket_uuid=:tktuuid AND user_uuid=:usruuid";
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<section class="jumbotron text-center">
|
<section class="jumbotron text-center">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Open requests</h1>
|
<h1>Existing requests</h1>
|
||||||
<p class="lead text-muted">
|
<p class="lead text-muted">
|
||||||
Here you can find all of your requests, and other requests that you are subscribed to.
|
Here you can find all of your requests, and other requests that you are subscribed to.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user