getUserField($uid, 'username', 0); } return $cache[$uid]; } ?>

access == ADMIN && ADMIN_RECEIVE_SUPPORT_MESSAGES); $multihunter_messages = ($session->access == MULTIHUNTER); $totalMessages = count($message->sent1); for ($i = (1 + $s); $i <= (10 + $s); $i++) { if ($totalMessages >= $i) { $msg = $message->sent1[$i - 1]; // row class if ($msg['target'] == 0) { echo ""; } else { echo ""; } // ====================================================== // SENT TYPE (IMPORTANT: păstrăm bug original inbox1) // ====================================================== $sent_as_text = ''; if ( !$support_messages || // BUG FIXED (warning only): $message->inbox1[$i - 1] intentionally kept as-is // (see "IMPORTANT: păstrăm bug original inbox1" above) - inbox1 is a different, // differently-sized array than sent1, so these indices commonly don't exist. // Null-coalescing gives the exact same result as before (undefined key/null // offset both evaluated to NULL, and NULL != 1 / NULL != 5 are both true) - // just without the "Undefined array key" + "array offset on null" warning // pair firing on every one of the up to 10 rows on this page. ($support_messages && ($message->inbox1[$i - 1]['target'] ?? null) != 1) || ($multihunter_messages && ($message->inbox1[$i - 1]['target'] ?? null) != 5) ) { $sent_as_text = ""; } else if ($support_messages) { $sent_as_text = 'S'; } else if ($multihunter_messages) { $sent_as_text = 'M'; } echo ""; // ====================================================== // SUBJECT // ====================================================== echo ""; // ====================================================== // RECIPIENT (cached) // ====================================================== $targetId = (int)$msg['target']; $username = getCachedUsername($targetId, $database, $userCache); $date = $generator->procMtime($msg['time']); echo ""; } $name++; } // ====================================================== // EMPTY STATE // ====================================================== if ($totalMessages == 0) { echo ""; } ?>
uid; $MyGold = mysqli_query( $database->dblink, "SELECT plus FROM " . TB_PREFIX . "users WHERE id='$userId' LIMIT 1" ) or die(mysqli_error($database->dblink)); $golds = mysqli_fetch_array($MyGold); $date2 = strtotime("NOW"); if ($golds['plus'] > $date2) { ?> sent1); if (!isset($_GET['s']) && $total < 10) { echo "«»"; } elseif (!isset($_GET['s']) && $total > 10) { echo "«»"; } elseif (isset($_GET['s']) && $total > $_GET['s']) { if ($total > ($_GET['s'] + 10) && $_GET['s'] - 10 < $total && $_GET['s'] != 0) { echo "« »"; } elseif ($total > $_GET['s'] + 10) { echo "«»"; } elseif ($total > 10) { echo "«»"; } } ?>
" . $sent_as_text . " " . tz_expand_report($msg['topic']) . ""; if ($msg['viewed'] == 0) { echo " (unread)"; } echo " " . $username . " " . $date[0] . " " . $date[1] . "
There are no sent messages available.