mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 03:46:25 +00:00
15 lines
469 B
PHP
15 lines
469 B
PHP
<?php
|
|
|
|
ini_set('display_errors', '1');
|
|
authorize();
|
|
|
|
$ForumID = db_string($_GET['forumid']);
|
|
if ($_GET['perform'] == 'add') {
|
|
$DB->query("INSERT IGNORE INTO subscribed_forums (ForumID, SubscriberID) VALUES ('$ForumID', '$LoggedUser[ID]')");
|
|
} elseif ($_GET['perform'] == 'remove') {
|
|
$DB->query("DELETE FROM subscribed_forums WHERE ForumID = '$ForumID' AND SubscriberID = '$LoggedUser[ID]'");
|
|
}
|
|
header('Location: forums.php?action=viewforum&forumid=' . $ForumID);
|
|
?>
|
|
|