コード例 #1
0
        public static bool IsFreeSite(string _defaultpage, string _webname)
        {
            string text  = HttpHelp.Get_Http(_defaultpage, 10000, Encoding.UTF8);
            string text2 = text.ToLower().Replace("\"", "").Replace("'", "");

            return(text.Contains(_webname) && (text2.Contains("href=http://www.Lottery.net") || text2.Contains("href=http://Lottery.net")));
        }
コード例 #2
0
        public static bool IsFreeSite(string _defaultpage, string _webname)
        {
            string http = HttpHelp.Get_Http(_defaultpage, 10000, Encoding.UTF8);
            string str  = http.ToLower().Replace("\"", "").Replace("'", "");

            if (!http.Contains(_webname))
            {
                return(false);
            }
            if (!str.Contains("href=http://www.Lottery.net"))
            {
                return(str.Contains("href=http://Lottery.net"));
            }
            return(true);
        }