Mark all as read

Mark all as read
This commit is contained in:
novgorodschi catalin
2026-08-18 10:10:22 +03:00
parent 971bb56efe
commit 8f14ed7647
8 changed files with 97 additions and 0 deletions
+17
View File
@@ -201,6 +201,9 @@ class Message
if (isset($post['start_x'])) {
$this->unarchiveNotice($post);
}
if (isset($post['readall'])) {
$this->readAllNotices();
}
}
public function quoteMessage($id)
@@ -415,6 +418,20 @@ class Message
exit;
}
/**
* Buton "Read All" (cerut de Catalin): marcheaza toate rapoartele
* necitite ale userului ca citite dintr-o singura actiune, indiferent
* de tab/filtru curent - la fel ca removeNotice/archiveNotice/
* unarchiveNotice de mai sus (POST + redirect la lista de baza).
*/
private function readAllNotices()
{
global $database, $session;
$database->noticeViewedAll((int) $session->uid);
header("Location: berichte.php");
exit;
}
private function getReadNotice($id)
{
global $database, $session;