Init Git Prod Mars 2026
This commit is contained in:
commit
d81efe93b1
362 files changed
+86627
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/includes/init_praticien.php';
|
||||
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
$compteId = (int)($_SESSION['compte_id'] ?? 0);
|
||||
if ($compteId <= 0) {
|
||||
echo json_encode(['total' => 0]);
|
||||
exit;
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare("
|
||||
SELECT rdv_unread
|
||||
FROM push_badge_counters
|
||||
WHERE compte_id = ?
|
||||
");
|
||||
$stmt->execute([$compteId]);
|
||||
$row = $stmt->fetch();
|
||||
|
||||
echo json_encode([
|
||||
'total' => (int)($row['rdv_unread'] ?? 0)
|
||||
]);
|
||||
Reference in new issue
Block a user