credit abis
This commit is contained in:
@@ -122,6 +122,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && $user_id) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Mark all notifications as read
|
||||
if (isset($_POST['mark_all_read'])) {
|
||||
$pdo->prepare("UPDATE notifications SET is_read=1 WHERE user_id=?")->execute([$user_id]);
|
||||
header('Location: ?action=' . ($_POST['redirect_to'] ?? 'dashboard'));
|
||||
exit;
|
||||
}
|
||||
|
||||
// Change password
|
||||
if (isset($_POST['change_password'])) {
|
||||
$cur = trim($_POST['current_password'] ?? '');
|
||||
|
||||
Reference in New Issue
Block a user