mirror of
https://github.com/itflow-org/itflow
synced 2026-11-11 07:01:16 +00:00
- Bell opens a dropdown panel instead of a modal: Unread/All tabs, grouped by day, type icons, relative times, click-through marks read, per-row read/unread, mark all as read - Unread badge refreshes every minute while the tab is visible - Notifications page rebuilt on the same backend: search, type filter, date range, read/unread toggles, proper empty states - Hide notifications for clients/modules the user cannot access - Normalise relative notification links so they work from /admin pages - Remove the old notifications modal and dismiss handlers
32 lines
1.4 KiB
PHP
32 lines
1.4 KiB
PHP
<?php
|
|
|
|
// Role check failed wording
|
|
DEFINE("WORDING_ROLECHECK_FAILED", "You are not permitted to do that!");
|
|
|
|
// Ceiling on what the mail queue will attach to a single message. Uploads are
|
|
// allowed up to 500 MB, which no mail server will accept - anything over this is
|
|
// left on the ticket for the recipient to download instead of being emailed.
|
|
DEFINE("MAX_EMAIL_ATTACHMENT_BYTES", 10 * 1024 * 1024);
|
|
|
|
// functions.php is now a loader. Helper functions live in topical files
|
|
// under functions/ - see each file's header comment for scope.
|
|
|
|
require_once __DIR__ . '/functions/security.php';
|
|
require_once __DIR__ . '/functions/sanitize.php';
|
|
require_once __DIR__ . '/functions/format.php';
|
|
require_once __DIR__ . '/functions/request.php';
|
|
require_once __DIR__ . '/functions/files.php';
|
|
require_once __DIR__ . '/functions/domain.php';
|
|
require_once __DIR__ . '/functions/network.php';
|
|
require_once __DIR__ . '/functions/auth.php';
|
|
require_once __DIR__ . '/functions/logging.php';
|
|
require_once __DIR__ . '/functions/app.php';
|
|
require_once __DIR__ . '/functions/payments.php';
|
|
require_once __DIR__ . '/functions/sla.php';
|
|
require_once __DIR__ . '/functions/ai.php';
|
|
require_once __DIR__ . '/functions/export.php';
|
|
require_once __DIR__ . '/functions/calendar.php';
|
|
require_once __DIR__ . '/functions/backup.php';
|
|
require_once __DIR__ . '/functions/search.php';
|
|
require_once __DIR__ . '/functions/notifications.php';
|