Пример #1
0
        private static string GetLocation(IpInfo info)
        {
            string ip = string.Format("{0}.{1}.{2}.{3}", info.Ip1, info.Ip2, info.Ip3, info.Ip4);

            Discuz.Forum.IpSearch.PHCZIP phczip = new IpSearch.PHCZIP();
            return(phczip.GetAddressWithIP(ip) == "" ? "未知地址": phczip.GetAddressWithIP(ip));
        }
Пример #2
0
 private static string GetLocation(IpInfo info)
 { 
     string ip = string.Format("{0}.{1}.{2}.{3}", info.Ip1, info.Ip2, info.Ip3, info.Ip4);
     Discuz.Forum.IpSearch.PHCZIP phczip = new IpSearch.PHCZIP();
     return phczip.GetAddressWithIP(ip) == "" ? "未知地址": phczip.GetAddressWithIP(ip);
 }