getUserArray($session->uid, 1); // cache username (reduce SQL calls) $userCache = []; function getCachedUsername($uid, $database, &$cache) { $uid = (int)$uid; if (!isset($cache[$uid])) { $cache[$uid] = $database->getUserField($uid, 'username', 0); } return $cache[$uid]; } ?>

reply['topic'], $c)) { $c = $c[1] + 1; echo strip_tags(preg_replace("/re[0-9]+/i", "re" . ($c), $message->reply['topic'])); } else { echo "re1:" . strip_tags($message->reply['topic']); } } ?>" maxlength="35" tabindex="2" />
<?php echo ADDRESSBOOK; ?>

access == ADMIN && ADMIN_RECEIVE_SUPPORT_MESSAGES && !empty($_GET['mid'])) { ?>
/> Send as Support access == MULTIHUNTER) { ?>
/> Send as Multihunter

"; echo ''; if ($i % 2 != 0) echo ""; } elseif ($waitId == 0) { if ($i % 2 == 0) echo ""; $username = getCachedUsername($friendId, $database, $userCache); $friend = $database->getUserArray($friendId, 1); echo ''; // ONLINE STATUS (logică identică) $time = time() - $friend['timestamp']; if ($time < 600) { echo ""; } elseif ($time < 86400) { echo ""; } elseif ($time < 259200) { echo ""; } elseif ($time < 604800) { echo ""; } else { echo ""; } if ($i % 2 != 0) echo ""; } else { // WAIT / CONFIRM logic (neatinsă) $friend = $database->getUserArray($waitId, 1); if ($i % 2 == 0) echo ""; echo ''; if ($i % 2 != 0) echo ""; } } ?>
'.DELETE.' '.$username.'
' . getCachedUsername($waitId, $database, $userCache) . '

<?php echo TZ_CLOSE_ADRESSBOOK; ?>

[message] [/message]