} } else { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Sign-up Referer:"), "</td>\n"; echo " <td align=\"left\">", gettext("Unknown"), "</td>\n"; echo " </tr>\n"; } if (isset($user['SESSION_REFERER']) && strlen(trim($user['SESSION_REFERER'])) > 0) { $user['SESSION_REFERER_FULL'] = $user['SESSION_REFERER']; if (!($user['SESSION_REFERER'] = split_url($user['SESSION_REFERER']))) { if (mb_strlen($user['SESSION_REFERER_FULL']) > 25) { $user['SESSION_REFERER'] = mb_substr($user['SESSION_REFERER_FULL'], 0, 25); $user['SESSION_REFERER'] .= "…"; } } if (referer_is_banned($user['SESSION_REFERER'])) { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n"; echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&unban_referer=", rawurlencode($user['SESSION_REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['SESSION_REFERER_FULL']}\">{$user['SESSION_REFERER']}</a> <a href=\"{$user['SESSION_REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a> (", gettext("Banned"), ")</td>\n"; echo " </tr>\n"; } else { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n"; echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&ban_referer=", rawurlencode($user['SESSION_REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['SESSION_REFERER_FULL']}\">{$user['SESSION_REFERER']}</a> <a href=\"{$user['SESSION_REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a></td>\n"; echo " </tr>\n"; } } else { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n"; echo " <td align=\"left\">", gettext("Unknown"), "</td>\n"; echo " </tr>\n";
echo " <td class=\"postbody\" align=\"left\" width=\"200\"><a href=\"admin_banned.php?webtag={$webtag}&unban_ipaddress={$visitor['IPADDRESS']}&ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$visitor['IPADDRESS']}</a> (", gettext("Banned"), ") </td>\n"; } else { echo " <td class=\"postbody\" align=\"left\" width=\"200\"><a href=\"admin_banned.php?webtag={$webtag}&ban_ipaddress={$visitor['IPADDRESS']}&ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$visitor['IPADDRESS']}</a> </td>\n"; } } else { echo " <td class=\"postbody\" align=\"left\" width=\"200\">", gettext("Unknown"), "</td>\n"; } if (isset($visitor['REFERER']) && strlen(trim($visitor['REFERER'])) > 0) { $visitor['REFERER_FULL'] = $visitor['REFERER']; if (!($visitor['REFERER'] = split_url($visitor['REFERER']))) { if (mb_strlen($visitor['REFERER_FULL']) > 25) { $visitor['REFERER'] = mb_substr($visitor['REFERER_FULL'], 0, 25); $visitor['REFERER'] .= "…"; } } if (referer_is_banned($visitor['REFERER'])) { echo " <td class=\"posthead\" align=\"left\" style=\"white-space: nowrap\"> <a href=\"admin_banned.php?webtag={$webtag}&unban_referer=", rawurlencode($visitor['REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$visitor['REFERER_FULL']}\">{$visitor['REFERER']}</a> <a href=\"{$visitor['REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a> (", gettext("Banned"), ")</td>\n"; } else { echo " <td class=\"posthead\" align=\"left\" style=\"white-space: nowrap\"> <a href=\"admin_banned.php?webtag={$webtag}&ban_referer=", rawurlencode($visitor['REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$visitor['REFERER_FULL']}\">{$visitor['REFERER']}</a> <a href=\"{$visitor['REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a></td>\n"; } } else { echo " <td class=\"posthead\" align=\"left\" style=\"white-space: nowrap\"> ", gettext("Unknown"), "</td>\n"; } echo " </tr>\n"; } } echo " <tr>\n"; echo " <td align=\"left\" class=\"postbody\"> </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n";