logic->getTableOptions($sub); // Sanitizing unchecked table options $tableOptions = $this->logic->sanitizePostData($tableOptions); $timezoneRaw = get_option('timezone_string'); $timezone = is_string($timezoneRaw) ? $timezoneRaw : ''; if ('' == $timezone) { $timezone = 'UTC'; } date_default_timezone_set($timezone); // Modern page wrapper echo '
| ' . esc_html($col['title']) . $sortIndicator . ' | '; } $html .= '||||
|---|---|---|---|---|
| ' . $urlDisplay . ' | '; // IP Address $remoteHost = is_string($row['remote_host'] ?? '') ? (string)($row['remote_host'] ?? '') : ''; $html .= '' . esc_html($remoteHost) . ' | '; // Referrer $referrer = is_string($row['referrer'] ?? '') ? (string)($row['referrer'] ?? '') : ''; $html .= ''; if ($referrer != "") { $html .= '' . esc_html($referrer) . ''; } else { $html .= '-'; } $html .= ' | '; // Action Taken (with engine on second line) $action = trim(is_string($row['action'] ?? '') ? (string)($row['action'] ?? '') : ''); $engineVal = is_string($row['engine'] ?? '') ? (string)($row['engine'] ?? '') : ''; $html .= '';
if ($action === '' || $action == "404" || $action == "http://404") {
$html .= '' . __('404', '404-solution') . '';
} else {
$html .= '' . __('Redirect', '404-solution') . '';
$html .= ' ' . esc_html($action) . ''; } if ($engineVal !== '') { $html .= ' ' . esc_html($engineVal) . ''; } $html .= ' | ';
// Date (with user on second line)
$timeToDisplay = abs(is_scalar($row['timestamp'] ?? 0) ? intval($row['timestamp'] ?? 0) : 0);
$rowUsername = is_string($row['username'] ?? '') ? (string)($row['username'] ?? '') : '';
$html .= '' . date('Y/m/d', $timeToDisplay) . ' ' . date('h:i:s A', $timeToDisplay); if ($rowUsername !== '') { $html .= ' ' . esc_html($rowUsername) . ''; } $html .= ' | ';
$html .= '