Example #1
0
             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}&amp;ban_referer=", rawurlencode($user['SESSION_REFERER_FULL']), "&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['SESSION_REFERER_FULL']}\">{$user['SESSION_REFERER']}</a>&nbsp;<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 "                      <tr>\n";
     echo "                        <td align=\"left\" width=\"150\">", gettext("Last IP Address"), ":</td>\n";
     if (ip_is_banned($user['IPADDRESS'])) {
         echo "                        <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&amp;unban_ipaddress={$user['IPADDRESS']}&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$user['IPADDRESS']}</a> (", gettext("Banned"), ")</td>\n";
     } else {
         if (strlen(trim($user['IPADDRESS'])) > 0) {
             echo "                        <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&amp;ban_ipaddress={$user['IPADDRESS']}&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$user['IPADDRESS']}</a></td>\n";
         } else {
             echo "                        <td align=\"left\">", gettext("Unknown"), "</td>\n";
         }
     }
     echo "                      </tr>\n";
 }
 echo "                    </table>\n";
 echo "                  </td>\n";
 echo "                </tr>\n";
 echo "                <tr>\n";
 echo "                  <td align=\"left\">&nbsp;</td>\n";
 if (isset($visitor['SID']) && !is_null($visitor['SID'])) {
     echo "                   <td class=\"postbody\" align=\"left\" style=\"white-space: nowrap\"><a href=\"{$visitor['URL']}\" target=\"_blank\">", word_filter_add_ob_tags($visitor['NAME'], true), "</a></td>\n";
 } else {
     if ($visitor['UID'] > 0) {
         echo "                   <td class=\"postbody\" align=\"left\" style=\"white-space: nowrap\"><a href=\"user_profile.php?webtag={$webtag}&amp;uid={$visitor['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($visitor['LOGON'], $visitor['NICKNAME']), true), "</a></td>\n";
     } else {
         echo "                   <td class=\"postbody\" align=\"left\" style=\"white-space: nowrap\">", word_filter_add_ob_tags(format_user_name($visitor['LOGON'], $visitor['NICKNAME']), true), "</td>\n";
     }
 }
 if (isset($visitor['LAST_LOGON']) && $visitor['LAST_LOGON'] > 0) {
     echo "                   <td class=\"postbody\" align=\"left\" width=\"100\">", format_time($visitor['LAST_LOGON']), "</td>\n";
 } else {
     echo "                   <td class=\"postbody\" align=\"left\" width=\"100\">", gettext("Unknown"), "</td>\n";
 }
 if (isset($visitor['IPADDRESS']) && strlen($visitor['IPADDRESS']) > 0) {
     if (ip_is_banned($visitor['IPADDRESS'])) {
         echo "                   <td class=\"postbody\" align=\"left\" width=\"200\"><a href=\"admin_banned.php?webtag={$webtag}&amp;unban_ipaddress={$visitor['IPADDRESS']}&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$visitor['IPADDRESS']}</a>&nbsp;(", gettext("Banned"), ")&nbsp;</td>\n";
     } else {
         echo "                   <td class=\"postbody\" align=\"left\" width=\"200\"><a href=\"admin_banned.php?webtag={$webtag}&amp;ban_ipaddress={$visitor['IPADDRESS']}&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$visitor['IPADDRESS']}</a>&nbsp;</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'] .= "&hellip;";
         }
     }