示例#1
0
     }
 } 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'] .= "&hellip;";
         }
     }
     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}&amp;unban_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> (", 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}&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 "                   <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;";
                }
            }
            if (referer_is_banned($visitor['REFERER'])) {
                echo "                   <td class=\"posthead\" align=\"left\" style=\"white-space: nowrap\">&nbsp;<a href=\"admin_banned.php?webtag={$webtag}&amp;unban_referer=", rawurlencode($visitor['REFERER_FULL']), "&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$visitor['REFERER_FULL']}\">{$visitor['REFERER']}</a>&nbsp;<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>&nbsp;(", gettext("Banned"), ")</td>\n";
            } else {
                echo "                   <td class=\"posthead\" align=\"left\" style=\"white-space: nowrap\">&nbsp;<a href=\"admin_banned.php?webtag={$webtag}&amp;ban_referer=", rawurlencode($visitor['REFERER_FULL']), "&amp;ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$visitor['REFERER_FULL']}\">{$visitor['REFERER']}</a>&nbsp;<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\">&nbsp;", gettext("Unknown"), "</td>\n";
        }
        echo "                 </tr>\n";
    }
}
echo "                 <tr>\n";
echo "                   <td align=\"left\" class=\"postbody\">&nbsp;</td>\n";
echo "                 </tr>\n";
echo "               </table>\n";
echo "             </td>\n";