コード例 #1
0
ファイル: head.php プロジェクト: podstawski/papu
 }
 $txt = $d;
 if (!isset($session[$d])) {
     $session[$d] = 0;
 }
 if ($d == 'users') {
     $plus = $users - $session[$d];
     $session[$d] = $users;
     $txt .= ' ' . $users;
     if ($plus) {
         $txt .= ' (+' . $plus . ')';
     }
 }
 if ($d == 'moneytransfer') {
     $event = new eventModel();
     $events = $event->getEventsToTransferMoney() ?: [];
     $txt .= ' ' . count($events);
 }
 if ($d == 'events') {
     $plus = $events - $session[$d];
     $session[$d] = $events;
     $txt .= ' ' . $events;
     if ($plus) {
         if ($plus > 0) {
             $plus = "+{$plus}";
         }
         $txt .= ' (' . $plus . ')';
     }
     if (!isset($session['guests'])) {
         $session['guests'] = 0;
     }