@@ 126-136 (lines=11) @@ | ||
123 | $timeNow = date('d/m/y H:i:s'); |
|
124 | $basename_chat = 'messages-' . $date_now; |
|
125 | ||
126 | if ($this->groupId && !$friendId) { |
|
127 | $basename_chat = 'messages-' . $date_now . '_gid-' . $this->groupId; |
|
128 | } elseif ($this->sessionId && !$friendId) { |
|
129 | $basename_chat = 'messages-' . $date_now . '_sid-' . $this->sessionId; |
|
130 | } elseif ($friendId) { |
|
131 | if ($this->userId < $friendId) { |
|
132 | $basename_chat = 'messages-' . $date_now . '_uid-' . $this->userId . '-' . $friendId; |
|
133 | } else { |
|
134 | $basename_chat = 'messages-' . $date_now . '_uid-' . $friendId . '-' . $this->userId; |
|
135 | } |
|
136 | } |
|
137 | ||
138 | $message = self::prepareMessage($message); |
|
139 | ||
@@ 1623-1633 (lines=11) @@ | ||
1620 | ||
1621 | $basename_chat = 'messages-' . $date_now; |
|
1622 | ||
1623 | if ($this->groupId && !$friendId) { |
|
1624 | $basename_chat = 'messages-' . $date_now . '_gid-' . $this->groupId; |
|
1625 | } else if ($this->sessionId && !$friendId) { |
|
1626 | $basename_chat = 'messages-' . $date_now . '_sid-' . $this->sessionId; |
|
1627 | } elseif ($friendId) { |
|
1628 | if ($this->userId < $friendId) { |
|
1629 | $basename_chat = 'messages-' . $date_now . '_uid-' . $this->userId . '-' . $friendId; |
|
1630 | } else { |
|
1631 | $basename_chat = 'messages-' . $date_now . '_uid-' . $friendId . '-' . $this->userId; |
|
1632 | } |
|
1633 | } |
|
1634 | ||
1635 | if ($reset && $isMaster) { |
|
1636 |