Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string endName = string.Empty;
        string endUrl  = string.Empty;

        string GameName = new BCW.User.Game.GameRole().GameName();

        string[] gTemp = GameName.Split('#');

        endName = gTemp[0];
        endUrl  = gTemp[2];
        sName   = endName.Split(",".ToCharArray());
        sUrl    = endUrl.Split(",".ToCharArray());

        string act = Utils.GetRequest("act", "all", 1, "", "");

        switch (act)
        {
        case "list":
            ListPage();
            break;

        case "clear":
            ClearPage();
            break;

        case "clearok":
            ClearOkPage();
            break;

        case "del":
            DelPage();
            break;

        default:
            ReloadPage();
            break;
        }
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "游戏配置中心";
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("游戏配置中心");
        builder.Append(Out.Tab("</div>", ""));

        string endName = string.Empty;
        string endUrl  = string.Empty;

        string GameName = new BCW.User.Game.GameRole().GameName();

        string[] gTemp = GameName.Split('#');

        endName = gTemp[0];
        endUrl  = gTemp[1];

        string[] sName = endName.Split(",".ToCharArray());
        string[] sUrl  = endUrl.Split(",".ToCharArray());

        int pageIndex;
        int recordCount;
        int pageSize = Convert.ToInt32(ub.Get("SiteListNo"));

        string[] pageValUrl = { };
        pageIndex = Utils.ParseInt(Request.QueryString["page"]);
        if (pageIndex == 0)
        {
            pageIndex = 1;
        }

        //总记录数
        recordCount = sName.Length;

        int stratIndex = (pageIndex - 1) * pageSize;
        int endIndex   = pageIndex * pageSize;
        int k          = 0;

        for (int i = 0; i < sName.Length; i++)
        {
            if (k >= stratIndex && k < endIndex)
            {
                if ((k + 1) % 2 == 0)
                {
                    builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                }
                else
                {
                    builder.Append(Out.Tab("<div>", "<br />"));
                }

                builder.Append("" + (i + 1) + ".<a href=\"" + Utils.getUrl(sUrl[i].ToString().Replace("stkguess", "stk").Replace("/bbs/guess/default", "guess") + "set.aspx").Replace("/bbs/guess2/defaultset.aspx", "guessset2.aspx").Replace("/bbs/guessbc/defaultset.aspx", "guessbcset.aspx") + "\">" + sName[i].ToString() + "</a>");
                builder.Append(Out.Tab("</div>", ""));
            }
            if (k == endIndex)
            {
                break;
            }
            k++;
        }

        // 分页
        builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0));

        builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
        builder.Append(Out.Tab("<div>", ""));
        builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">配置中心</a><br />");
        builder.Append(Out.Tab("</div><div class=\"title\"><a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>", "<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"));
        builder.Append(Out.Tab("</div>", "<br /> "));
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Utils.GetDomain().Contains("dyj6"))
        {
            Response.Redirect(Utils.getUrl("http://" + Utils.GetDomain() + "/bbs/game/six49.aspx").Replace("&amp;", "&"));
        }
        else if (Utils.GetDomain().Contains("boyi929"))
        {
            Response.Redirect(Utils.getUrl("http://" + Utils.GetDomain() + "/default.aspx").Replace("&amp;", "&"));
        }
        else
        {
            Response.Redirect(Utils.getUrl("http://" + Utils.GetDomain() + "/default.aspx?id=13667").Replace("&amp;", "&"));
        }

        if (Utils.GetTopDomain().Contains("tuhao") || Utils.GetTopDomain().Contains("th"))
        {
            Response.Redirect(Utils.getUrl("http://" + Utils.GetDomain() + "/default.aspx?id=13371").Replace("&amp;", "&"));
        }
        else if (Utils.GetTopDomain().Contains("kb288.net"))
        {
        }

        Master.Title = "游戏中心";
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("游戏中心");
        builder.Append(Out.Tab("</div>", ""));
        string endName = string.Empty;
        string endUrl  = string.Empty;

        string GameName = new BCW.User.Game.GameRole().GameName();

        string[] gTemp = GameName.Split('#');

        endName = gTemp[0];
        endUrl  = gTemp[1];
        string[] sName = endName.Split(",".ToCharArray());
        string[] sUrl  = endUrl.Split(",".ToCharArray());


        int pageIndex;
        int recordCount;
        int pageSize = 20;

        string[] pageValUrl = { };
        pageIndex = Utils.ParseInt(Request.QueryString["page"]);
        if (pageIndex == 0)
        {
            pageIndex = 1;
        }

        //总记录数
        recordCount = sName.Length;

        int stratIndex = (pageIndex - 1) * pageSize;
        int endIndex   = pageIndex * pageSize;
        int k          = 0;

        for (int i = 0; i < sName.Length; i++)
        {
            if (k >= stratIndex && k < endIndex)
            {
                if ((k + 1) % 2 == 0)
                {
                    builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                }
                else
                {
                    builder.Append(Out.Tab("<div>", "<br />"));
                }

                builder.Append("<a href=\"" + Utils.getUrl(sUrl[i].ToString() + ".aspx") + "\">" + sName[i].ToString() + "</a>");
                builder.Append(Out.Tab("</div>", ""));
            }
            if (k == endIndex)
            {
                break;
            }
            k++;
        }

        // 分页
        builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0));
        if (Utils.GetDomain().Contains("kubao") || Utils.GetDomain().Contains("tuhao") || Utils.GetDomain().Contains("th") || Utils.GetDomain().Contains("kb288"))
        {
            builder.Append(Out.Tab("<div>", Out.Hr()));
            builder.Append("<a href=\"" + Utils.getUrl("../finance.aspx?act=paysafe&amp;backurl=" + Utils.getPage(0) + "") + "\">设置支付安全</a>");
            builder.Append(Out.Tab("</div>", ""));
        }
        builder.Append(Out.Tab("<div class=\"title\">", Out.Hr()));
        builder.Append("<a href=\"" + Utils.getPage("/default.aspx") + "\">首页</a>-");
        builder.Append("<a href=\"" + Utils.getPage("../default.aspx") + "\">社区</a>-");
        builder.Append("<a href=\"" + Utils.getPage("../finance.aspx") + "\">金融</a>");
        builder.Append(Out.Tab("</div>", ""));
        //-----------友链链入开始
        int kid = int.Parse(Utils.GetRequest("kid", "get", 1, @"^[0-9]\d*$", "0"));

        if (kid != 0)
        {
            if (new BCW.BLL.Link().Exists(kid))
            {
                //统计链入
                string xmlPath = "/Controls/link.xml";
                if (ub.GetSub("LinkIsPc", xmlPath) == "0")
                {
                    if (Utils.IsMobileUa())
                    {
                        new BCW.BLL.Link().UpdateLinkIn(kid);
                        if (ub.GetSub("LinkGoUrl", xmlPath) != "")
                        {
                            Response.Redirect(ub.GetSub("LinkGoUrl", xmlPath));
                        }
                    }
                }
                else
                {
                    new BCW.BLL.Link().UpdateLinkIn(kid);
                    if (ub.GetSub("LinkGoUrl", xmlPath) != "")
                    {
                        Response.Redirect(ub.GetSub("LinkGoUrl", xmlPath));
                    }
                }
            }
        }
        //-----------友链链入结束
    }