mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-20 10:11:00 +00:00
Mark all as read
Mark all as read
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user