BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clear_user_notification.php 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. #declare(strict_types=1);
  3. $Type = $_POST['type'];
  4. switch ($Type) {
  5. case NotificationsManager::INBOX:
  6. NotificationsManager::clear_inbox();
  7. break;
  8. case NotificationsManager::NEWS:
  9. NotificationsManager::clear_news(false);
  10. break;
  11. case NotificationsManager::BLOG:
  12. NotificationsManager::clear_blog(false);
  13. break;
  14. case NotificationsManager::STAFFPM:
  15. NotificationsManager::clear_staff_pms();
  16. break;
  17. case NotificationsManager::TORRENTS:
  18. NotificationsManager::clear_torrents();
  19. break;
  20. case NotificationsManager::QUOTES:
  21. NotificationsManager::clear_quotes();
  22. break;
  23. case NotificationsManager::SUBSCRIPTIONS:
  24. NotificationsManager::clear_subscriptions();
  25. break;
  26. case NotificationsManager::COLLAGES:
  27. NotificationsManager::clear_collages();
  28. break;
  29. case NotificationsManager::GLOBALNOTICE:
  30. NotificationsManager::clear_global_notification();
  31. break;
  32. default:
  33. break;
  34. }
  35. if (strpos($Type, "oneread_") === 0) {
  36. NotificationsManager::clear_one_read($Type);
  37. }