Exemplo n.º 1
0
    /// <summary>
    /// 文件上传截图
    /// </summary>
    /// <param name="act"></param>
    /// <param name="ptype"></param>
    /// <param name="nid"></param>
    /// <param name="id"></param>
    private void UiPic(string act, int ptype, int nid, int id)
    {
        if (act == "pic2")
        {
            Master.Title = "添加文件";
            builder.Append(Out.Div("title", "上传截图"));
        }
        //上传个数
        int nn = int.Parse(Utils.GetRequest("nn", "all", 1, @"^[0-9]\d*$", "1"));

        if (nn == 0)
        {
            nn = 1;
        }
        if (nn > 10)
        {
            nn = 10;
        }
        string strText = string.Empty;
        string strName = string.Empty;
        string strType = string.Empty;
        string strValu = string.Empty;
        string strEmpt = string.Empty;
        string strIdea = string.Empty;
        string strOthe = string.Empty;

        builder.Append(Out.Tab("<div>", ""));
        builder.Append("截图:");
        for (int i = 1; i < 10; i++)
        {
            builder.Append("<a href=\"" + Utils.getUrl("classok.aspx?act=pic2&amp;nid=" + nid + "&amp;id=" + id + "&amp;ptype=" + ptype + "&amp;nn=" + i + "") + "\"><b>" + i + "</b></a> ");
        }
        builder.Append("张");
        builder.Append(Out.Tab("</div>", ""));
        for (int i = 0; i < nn; i++)
        {
            string y = ",";
            if (nn == 1)
            {
                strText = strText + y + "选择截图:/";
            }
            else
            {
                strText = strText + y + "第" + (i + 1) + "张截图:/";
            }
            strName = strName + y + "pic" + (i + 1);
            strType = strType + y + "file";
            strValu = strValu + "'";
            strEmpt = strEmpt + y;
        }
        strText += ",,,,,";
        strName += ",ptype,nid,id,act,nn";
        strType += ",hidden,hidden,hidden,hidden,hidden";
        strValu += "'" + ptype + "'" + nid + "'" + id + "'pic2save'" + nn + "";
        strEmpt += ",,,,,";
        strIdea += "/";
        strOthe  = "上传截图|reset,classok.aspx,post,2,red|blue|blue";
        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "广播系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/network.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Name    = Utils.GetRequest("Name", "post", 2, @"^[^\^]{1,20}$", "系统名称限1-20字内");
            string Notes   = Utils.GetRequest("Notes", "post", 3, @"^[^\^]{1,50}$", "广播口号限50字内");
            string Logo    = Utils.GetRequest("Logo", "post", 3, @"^[^\^]{1,200}$", "Logo地址限200字内");
            string Status  = Utils.GetRequest("Status", "post", 2, @"^[0-1]$", "系统状态选择出错");
            string sLength = Utils.GetRequest("sLength", "post", 2, @"^[0-9]\d*$", "内容最小字数填写错误");
            string bLength = Utils.GetRequest("bLength", "post", 2, @"^[0-9]\d*$", "内容最大字数填写错误");
            string bMinute = Utils.GetRequest("bMinute", "post", 2, @"^[0-9]\d*$", "显示时长最大时间填写错误");
            string iGold   = Utils.GetRequest("iGold", "post", 2, @"^[0-9]\d*$", "每分钟扣币填写错误");
            string Expir   = Utils.GetRequest("Expir", "post", 2, @"^[0-9]\d*$", "防刷时间填写错误");
            string Grade   = Utils.GetRequest("Grade", "post", 2, @"^[0-9]\d*$", "限等级数填写错误");
            string RegDay  = Utils.GetRequest("RegDay", "post", 2, @"^[0-9]\d*$", "限注册天数填写错误");

            xml.dss["NetworkName"]    = Name;
            xml.dss["NetworkNotes"]   = Notes;
            xml.dss["NetworkLogo"]    = Logo;
            xml.dss["NetworkStatus"]  = Status;
            xml.dss["NetworksLength"] = sLength;
            xml.dss["NetworkbLength"] = bLength;
            xml.dss["NetworkbMinute"] = bMinute;
            xml.dss["NetworkiGold"]   = iGold;
            xml.dss["NetworkExpir"]   = Expir;
            xml.dss["NetworkGrade"]   = Grade;
            xml.dss["NetworkRegDay"]  = RegDay;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("广播系统设置", "设置成功,正在返回..", Utils.getUrl("networkset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "广播系统设置"));

            string strText = "广播名称:/,广播口号(可留空):/,广播Logo(可留空):/,系统状态:/,内容最小字数:/,内容最大字数(最大500字):/,显示时长最大时间(分钟):/,每分钟扣" + ub.Get("SiteBz") + ":/,防刷时间(秒):/,发布限等级(级):/,发布限注册天数(天):/";
            string strName = "Name,Notes,Logo,Status,sLength,bLength,bMinute,iGold,Expir,Grade,RegDay";
            string strType = "text,text,text,select,num,num,num,num,num,num,num";
            string strValu = "" + xml.dss["NetworkName"] + "'" + xml.dss["NetworkNotes"] + "'" + xml.dss["NetworkLogo"] + "'" + xml.dss["NetworkStatus"] + "'" + xml.dss["NetworksLength"] + "'" + xml.dss["NetworkbLength"] + "'" + xml.dss["NetworkbMinute"] + "'" + xml.dss["NetworkiGold"] + "'" + xml.dss["NetworkExpir"] + "'" + xml.dss["NetworkGrade"] + "'" + xml.dss["NetworkRegDay"] + "";
            string strEmpt = "false,true,true,0|正常|1|维护,false,false,false,false,false,false,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,networkset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            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 />"));
        }
    }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "网络爬虫设置";
        string robots = "/robots.txt";

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

        if (act == "ok")
        {
            string fileContent = Utils.GetRequest("fileContent", "post", 1, "", "");
            string getEncode   = Utils.GetRequest("getEncode", "post", 1, "", "UTF-8");

            string str = new BCW.Files.FileManagerProcessor().SaveTextFile(Server.MapPath(robots), fileContent, getEncode);
            Utils.Success("爬虫设置", "" + str + ",正在返回..", Utils.getUrl("webbug.aspx"), "1");
        }
        else
        {
            if (act == "help")
            {
                builder.Append(Out.Div("title", "网络爬虫设置示例"));
                builder.Append(Out.Tab("<div>", "<br />"));
                builder.Append("一、拒绝网络爬虫对整个网站的抓取<br />User-agent: * <br />Disallow: /<br />二、 允许网络爬虫对整个网站的抓取<br />User-agent: * <br />Disallow:<br />三、 拒绝网络爬虫对网站指定的目录抓取<br />User-agent: * <br />Disallow: /bbs/ <br />Disallow: /manage/ <br />四、 允许某些搜索引擎的网络爬虫对网站抓取<br />User-agent: Baiduspider<br />Disallow:<br />User-agent: Googlebot<br />Disallow: <br />User-agent: MSNBot<br />Allow: /<br />五、 限制网络爬虫对网站中页面的抓取<br />User-agent: * <br />Disallow: /bbs/fourm.aspx<br />Disallow: /mange/default.aspx");
                builder.Append(Out.Tab("</div>", ""));
            }
            else
            {
                builder.Append(Out.Div("title", "网络爬虫设置"));
                string fileContent;
                string getEncode;
                new BCW.Files.FileManagerProcessor().ReadTextFile(Server.MapPath(robots), out fileContent, out getEncode);

                string strText = "robots.txt内容:/,,";
                string strName = "fileContent,getEncode,act";
                string strType = "textarea,hidden,hidden";
                string strValu = "" + fileContent + "'" + getEncode + "'ok";
                string strEmpt = "true,false,false";
                string strIdea = "/";
                string strOthe = "确定修改|reset,webbug.aspx,post,1,red|blue";
                builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
                builder.Append(Out.Tab("<div>", "<br />"));
                builder.Append("由于搜索引擎的泛滥,网站避免不了被几千几万个爬虫每天爬来爬去<br />并且可能并发几十上百个请求循环重复抓取,对网站往往是毁灭性打击<br />设置robots.txt可以引导搜索引擎对网站的抓取<br />但如果恶性搜索引擎不遵循robots协议恶意抓取,你只能杀掉它的UA。");
                builder.Append(Out.Tab("</div>", ""));
            }
            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            if (act == "help")
            {
                builder.Append("<a href=\"" + Utils.getUrl("webbug.aspx") + "\">网络爬虫</a><br />");
            }
            else
            {
                builder.Append("<a href=\"" + Utils.getUrl("webbug.aspx?act=help") + "\">设置方法</a><br />");
            }

            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 />"));
        }
    }
Exemplo n.º 4
0
    private void ReloadPage(int meid)
    {
        Master.Title = "作者专区";
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("请选择分类写书");
        builder.Append(Out.Tab("</div>", "<br />"));
        int    pageIndex;
        int    recordCount;
        int    pageSize = Convert.ToInt32(ub.Get("SiteListNo"));
        string strWhere = "";

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

        // 开始读取列表
        IList <Book.Model.Navigation> listNavigation = new Book.BLL.Navigation().GetNavigations(pageIndex, pageSize, strWhere, out recordCount);

        if (listNavigation.Count > 0)
        {
            int k = 1;
            foreach (Book.Model.Navigation n in listNavigation)
            {
                if (k % 2 == 0)
                {
                    builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                }
                else
                {
                    if (k == 1)
                    {
                        builder.Append(Out.Tab("<div>", ""));
                    }
                    else
                    {
                        builder.Append(Out.Tab("<div>", "<br />"));
                    }
                }

                builder.AppendFormat("<a href=\"" + Utils.getUrl("bookman.aspx?act=list&amp;id={0}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{1}</a>", n.id, n.Name);
                k++;
                builder.Append(Out.Tab("</div>", ""));
            }

            // 分页
            builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0));
        }
        else
        {
            builder.Append(Out.Div("div", "没有相关记录.."));
        }
        builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">返回书城中心</a>");
        builder.Append(Out.Tab("</div>", ""));
    }
Exemplo n.º 5
0
    private void GetAddManage()
    {
        builder.Append(Out.Div("title", "后台帐号添加"));
        //读取我的帐号
        BCW.Model.Manage mymodel = new BCW.BLL.Manage().GetModel(BCW.User.Users.userId());
        if (mymodel.ID != 1)
        {
            Utils.Error("以你的权限还不能添加帐号", "");
        }


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

        if (Utils.ToSChinese(ac) == "添加帐号")
        {
            string strUser  = Out.UBB(Utils.GetRequest("strUser", "post", 2, @"^[(A-Za-z0-9)]{6,15}$", "用户名应该是由6-15字母、数字的组合"));
            string strPass  = Out.UBB(Utils.GetRequest("strPass", "post", 2, @"^[(A-Za-z0-9)]{6,15}$", "密码应该是由6-15位字母、数字的组合"));
            string strPassr = Out.UBB(Utils.GetRequest("strPassr", "post", 2, @"^[(A-Za-z0-9)]{6,15}$", "确认密码应该是由6-15位字母、数字的组合"));
            //检查是否重复
            if (new BCW.BLL.Manage().ExistsUser(strUser))
            {
                Utils.Error("用户名" + strUser + "已存在", "");
            }
            if (strPass != strPassr)
            {
                Utils.Error("确认密码不正确", "");
            }

            BCW.Model.Manage model = new BCW.Model.Manage();
            model.sUser = strUser;
            model.sPwd  = Utils.MD5(strPass);
            model.sKeys = "";
            model.sTime = DateTime.Now;
            new BCW.BLL.Manage().Add(model);
            int MaxId = new BCW.BLL.Manage().GetMaxId() - 1;
            model.ID    = MaxId;
            model.sKeys = BCW.User.Users.SetUserKeys(MaxId, strUser, new Rand().RandNum(10));
            model.sKeys = Utils.Mid(model.sKeys, 0, model.sKeys.Length - 4);
            new BCW.BLL.Manage().UpdateKeys(model);
            Utils.Success("添加帐号", "帐号添加成功..", Utils.getUrl("manage.aspx"), "1");
        }
        else
        {
            string strText = "*用户名/,*密码:/,*确认密码/,,";
            string strName = "strUser,strPass,strPassr,act";
            string strType = "text,password,password,hidden";
            string strValu = "'''add";
            string strEmpt = "false,false,false,";
            string strIdea = "/用户名与密码必须是字母和数字的组合/";
            string strOthe = "添加帐号|reset,manage.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
        }
        builder.Append(Out.Tab("<div>", ""));
        builder.Append("<a href=\"" + Utils.getUrl("manage.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 />"));
    }
Exemplo n.º 6
0
    /// <summary>
    /// 添加/编辑菜单
    /// </summary>
    private void Insert2(int leibie, int ptype, int nid, int id, string pName)
    {
        if (id != 0)
        {
            Master.Title = "编辑" + pName + "";
            builder.Append(Out.Div("title", "编辑" + pName + ""));
        }
        else
        {
            Master.Title = "添加" + pName + "";
            builder.Append(Out.Div("title", "添加" + pName + ""));
        }
        string strText = "" + pName + "名称:/," + pName + "内容:/,栏目后面:/,VIP等级可见:/,显示状态:/,显示顺序:/,,,,";
        string strName = "Title,Content,IsBr,VipLeven,Hidden,Paixu,leibie,ptype,nid,id";
        string strType = "text,big,select,select,select,snum,hidden,hidden,hidden,hidden";
        string strValu = "";

        if (id != 0)
        {
            //读取菜单
            BCW.Model.Topics model = new BCW.BLL.Topics().GetTopics(id);
            strValu = "" + model.Title + "'" + model.Content + "'" + model.IsBr + "'" + model.VipLeven + "'" + model.Hidden + "'" + model.Paixu + "'" + model.Leibie + "'" + model.Types + "'" + model.NodeId + "'" + id + "";
        }
        else
        {
            if (ptype == 2)
            {
                string content = Utils.GetRequest("content", "all", 1, "", "");
                try
                {
                    if (content.Contains("call"))
                    {
                        content = "" + BCW.User.AdminCall.CallValue[int.Parse(content.Replace("call", ""))] + "";
                    }
                }
                catch { }
                strValu = "'" + content + "''0'0'0'" + leibie + "'" + ptype + "'" + nid + "'" + id + "";
            }
            else
            {
                strValu = "'''0'0'0'" + leibie + "'" + ptype + "'" + nid + "'" + id + "";
            }
        }
        string strEmpt = "false,false,0|换行|1|不换行,0|不限|1|一级|2|二级|3|三级|4|四级|5|五级|6|六级|7|七级|8|八级,0|正常显示|1|登录可见|2|隐藏显示,false,,,,";
        string strIdea = "/";
        string strOthe = "";

        if (id != 0)
        {
            strOthe = "确定编辑|reset,classok.aspx,post,1,red|blue";
        }
        else
        {
            strOthe = "确定添加|reset,classok.aspx,post,1,red|blue";
        }
        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
    }
Exemplo n.º 7
0
    private void ReloadPage()
    {
        builder.Append(Out.Tab("<div class=\"title\">异常监测结果</div>", ""));
        int pageIndex;
        int recordCount;
        int pageSize = Convert.ToInt32(ub.Get("SiteListNo"));

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

        // 开始读取专题
        IList <BCW.Model.Health> listHealth = new BCW.BLL.Health().GetHealths(pageIndex, pageSize, out recordCount);

        if (listHealth.Count > 0)
        {
            int k = 1;
            foreach (BCW.Model.Health n in listHealth)
            {
                if (k % 2 == 0)
                {
                    builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                }
                else
                {
                    if (k == 1)
                    {
                        builder.Append(Out.Tab("<div>", ""));
                    }
                    else
                    {
                        builder.Append(Out.Tab("<div>", "<br />"));
                    }
                }
                builder.AppendFormat("{0}.时间:{1}事件消息:{2}请求 Url:{3}异常类型:{4}异常消息:{5}", (pageIndex - 1) * pageSize + k, n.EventTime, n.Message, Out.UBB(n.RequestUrl), Out.UBB(n.ExceptionType), Out.UBB(n.ExceptionMessage));

                k++;
                builder.Append(Out.Tab("</div>", ""));
            }

            // 分页
            builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0));
        }
        else
        {
            builder.Append(Out.Div("div", "没有相关记录"));
        }

        builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
        builder.Append(Out.Tab("<div>", ""));
        builder.Append("<a href=\"" + Utils.getUrl("health.aspx?act=clear") + "\">清空异常</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 />"));
    }
Exemplo n.º 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "婚姻系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/marry.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Name       = Utils.GetRequest("Name", "post", 2, @"^[^\^]{1,20}$", "系统名称限1-20字内");
            string Logo       = Utils.GetRequest("Logo", "post", 3, @"^[^\^]{1,200}$", "Logo地址限200字内");
            string Status     = Utils.GetRequest("Status", "post", 2, @"^[0-1]$", "系统状态选择出错");
            string Notes      = Utils.GetRequest("Notes", "post", 3, @"^[\s\S]{1,2000}$", "口号限2000字,可留空");
            string GiftNum    = Utils.GetRequest("GiftNum", "post", 2, @"^[0-9]\d*$", "送礼次数填写错误");
            string Price      = Utils.GetRequest("Price", "post", 2, @"^[0-9]\d*$", "结婚登记费填写错误");
            string LostPrice  = Utils.GetRequest("LostPrice", "post", 2, @"^[0-9]\d*$", "离婚手续费填写错误");
            string LostPrice2 = Utils.GetRequest("LostPrice2", "post", 2, @"^[0-9]\d*$", "强制离婚手续费填写错误");

            xml.dss["MarryName"]       = Name;
            xml.dss["MarryLogo"]       = Logo;
            xml.dss["MarryStatus"]     = Status;
            xml.dss["MarryNotes"]      = Notes;
            xml.dss["MarryGiftNum"]    = GiftNum;
            xml.dss["MarryPrice"]      = Price;
            xml.dss["MarryLostPrice"]  = LostPrice;
            xml.dss["MarryLostPrice2"] = LostPrice2;

            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("婚姻系统设置", "设置成功,正在返回..", Utils.getUrl("marryset.aspx?backurl=" + Utils.getPage(0) + ""), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "婚姻系统设置"));

            string strText = "婚姻名称:/,婚姻Logo(可留空):/,系统状态:/,婚姻口号:/,求婚需送礼次数(不限制请填0):/,结婚登记费(" + ub.Get("SiteBz") + "):/,离婚手续费(" + ub.Get("SiteBz") + "):/,强制离婚手续费(" + ub.Get("SiteBz") + "):/,";
            string strName = "Name,Logo,Status,Notes,GiftNum,Price,LostPrice,LostPrice2,backurl";
            string strType = "text,text,select,textarea,num,num,num,num,hidden";
            string strValu = "" + xml.dss["MarryName"] + "'" + xml.dss["MarryLogo"] + "'" + xml.dss["MarryStatus"] + "'" + xml.dss["MarryNotes"] + "'" + xml.dss["MarryGiftNum"] + "'" + xml.dss["MarryPrice"] + "'" + xml.dss["MarryLostPrice"] + "'" + xml.dss["MarryLostPrice2"] + "'" + Utils.getPage(0) + "";
            string strEmpt = "false,true,0|正常|1|维护,true,false,false,false,false,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,marryset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getPage("default.aspx") + "\">返回上级</a><br />");
            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 />"));
        }
    }
Exemplo n.º 9
0
    /// <summary>
    /// 添加/编辑菜单
    /// </summary>
    private void Insert4(int leibie, int ptype, int nid, int id, string pName)
    {
        if (id != 0)
        {
            Master.Title = "编辑" + pName + "";
            builder.Append(Out.Div("title", "编辑" + pName + ""));
        }
        else
        {
            Master.Title = "添加" + pName + "";
            builder.Append(Out.Div("title", "添加" + pName + ""));
        }
        string strText = "" + pName + "显示名称:/,选择论坛:/,栏目后面:/,显示状态:/,显示顺序:/,,,,";
        string strName = "Title,Content,IsBr,Hidden,Paixu,leibie,ptype,nid,id";
        string strType = "text,select,select,select,snum,hidden,hidden,hidden,hidden";

        string  strForum = string.Empty;
        DataSet ds       = new BCW.BLL.Forum().GetList("ID,Title", "");

        if (ds == null || ds.Tables[0].Rows.Count == 0)
        {
            Utils.Error("你还没有任何版块..<br /><a href=\"" + Utils.getUrl("forum.aspx") + "\">马上添加</a>", "");
        }
        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
        {
            strForum += "|" + ds.Tables[0].Rows[i]["ID"] + "|" + ds.Tables[0].Rows[i]["Title"] + "(" + ds.Tables[0].Rows[i]["ID"] + ")";
        }
        strForum = "0|选择版块" + strForum;
        string strValu = "";

        if (id != 0)
        {
            //读取菜单
            BCW.Model.Topics model = new BCW.BLL.Topics().GetTopics(id);
            strValu = "" + model.Title + "'" + model.Content + "'" + model.IsBr + "'" + model.Hidden + "'" + model.Paixu + "'" + model.Leibie + "'" + model.Types + "'" + model.NodeId + "'" + id + "";
        }
        else
        {
            strValu = "'''0'0'" + leibie + "'" + ptype + "'" + nid + "'" + id + "";
        }
        string strEmpt = "false," + strForum + ",0|换行|1|不换行,0|正常显示|1|登录可见|2|隐藏显示,false,,,,";
        string strIdea = "/";
        string strOthe = "";

        if (id != 0)
        {
            strOthe = "确定编辑|reset,classok.aspx,post,1,red|blue";
        }
        else
        {
            strOthe = "确定添加|reset,classok.aspx,post,1,red|blue";
        }
        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
    }
Exemplo n.º 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "设置拒绝IP";
        builder.Append(Out.Tab("", ""));

        string ac  = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml = new ub();

        Application.Remove("xml_wap"); //清缓存
        xml.Reload();                  //加载网站配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string NoIP     = Utils.GetRequest("NoIP", "post", 3, @"^[^\@]{1,15}(?:\@[^\@]{1,15}){0,1000}$", "IP段填写错误");
            string NoIPMsg  = Utils.GetRequest("NoIPMsg", "post", 2, @"^[^\^]{1,500}$", "提示信息限1-500字内");
            string NoIPStat = Utils.GetRequest("NoIPStat", "post", 2, @"^[0-1]$", "状态选择错误");

            string[] arrNoIP = NoIP.Split("@".ToCharArray());
            for (int i = 0; i < arrNoIP.Length; i++)
            {
                if (!Ipaddr.IsIPAddress2(arrNoIP[i].ToString()))
                {
                    Utils.Error("IP段填写错误", "");
                }
            }

            xml.ds["SiteNoIP"]     = NoIP;
            xml.ds["SiteNoIPMsg"]  = NoIPMsg;
            xml.ds["SiteNoIPStat"] = NoIPStat;
            System.IO.File.WriteAllText(Server.MapPath("~/Controls/wap.xml"), xml.Post(xml.ds), System.Text.Encoding.UTF8);
            Utils.Success("设置拒绝IP", "设置拒绝IP成功,正在返回..", Utils.getUrl("iplock.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "设置拒绝IP"));

            string strText = "IP(请用“@”作分隔):/,提示信息:/,状态:/";
            string strName = "NoIP,NoIPMsg,NoIPStat";
            string strType = "textarea,text,select";
            string strValu = "" + xml.ds["SiteNoIP"] + "'" + xml.ds["SiteNoIPMsg"] + "'" + xml.ds["SiteNoIPStat"] + "";
            string strEmpt = "true,true,0|启用|1|关闭";
            string strIdea = "/";
            string strOthe = "确定修改|reset,iplock.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("设置的IP在启用状态下将不允许访问网站,多个IP请用“@”作分隔。<br />示例:[email protected].*.*@202.31.97.*<br />如拒绝202.31.97.0-255整个IP段可以写成202.31.97.*<br />如果设置为空或关闭,将允许所有的IP都可以访问。");
            builder.Append(Out.Tab("</div>", ""));

            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 />"));
        }
    }
Exemplo n.º 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "Ktv789游戏设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/ktv789.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Name   = Utils.GetRequest("Name", "post", 2, @"^[^\^]{1,20}$", "系统名称限1-20字内");
            string Notes  = Utils.GetRequest("Notes", "post", 3, @"^[^\^]{1,50}$", "Ktv789口号限50字内");
            string Logo   = Utils.GetRequest("Logo", "post", 3, @"^[^\^]{1,200}$", "Logo地址限200字内");
            string Status = Utils.GetRequest("Status", "post", 2, @"^[0-1]$", "系统状态选择出错");
            string Tax    = Utils.GetRequest("Tax", "post", 2, @"^[0-9]\d*$", "税率填写错误");
            string Rule   = Utils.GetRequest("Rule", "post", 3, @"^[^\^]{1,5000}$", "规则最限5000字内");

            xml.dss["Ktv789Name"]   = Name;
            xml.dss["Ktv789Notes"]  = Notes;
            xml.dss["Ktv789Logo"]   = Logo;
            xml.dss["Ktv789Status"] = Status;
            xml.dss["Ktv789Tax"]    = Tax;
            xml.dss["Ktv789Rule"]   = Rule;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("Ktv789游戏设置", "设置成功,正在返回..", Utils.getUrl("ktv789set.aspx?backurl=" + Utils.getPage(0) + ""), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "Ktv789游戏设置"));
            builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
            builder.Append("Ktv789设置|<a href=\"" + Utils.getUrl("spkadminset.aspx?ptype=2&amp;backurl=" + Utils.PostPage(true) + "") + "\">管理员</a>");
            builder.Append(Out.Tab("</div>", ""));
            string strText = "游戏名称:/,游戏口号(可留空):/,游戏Logo(可留空):/,游戏状态:/,系统收税(%):/,游戏规则(支持UBB):/,";
            string strName = "Name,Notes,Logo,Status,Tax,Rule,backurl";
            string strType = "text,text,text,select,num,textarea,hidden";
            string strValu = "" + xml.dss["Ktv789Name"] + "'" + xml.dss["Ktv789Notes"] + "'" + xml.dss["Ktv789Logo"] + "'" + xml.dss["Ktv789Status"] + "'" + xml.dss["Ktv789Tax"] + "'" + xml.dss["Ktv789Rule"] + "'" + Utils.getPage(0) + "";
            string strEmpt = "false,true,true,0|正常|1|维护,false,true,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,ktv789set.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getPage("game.aspx") + "\">返回上级</a><br />");
            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 />"));
        }
    }
Exemplo n.º 12
0
    private void Fangfa()    //获取密码的两种方法
    {
        Master.Title = "获取密码说明方式";
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-");
        builder.Append("<a href=\"" + Utils.getPage("/bbs/pwd/GetPwd.aspx") + "\">上级</a>");
        builder.Append(Out.Tab("</div>", "<br/>"));
        builder.Append(Out.Tab("<div class=\"text\">", ""));
        builder.Append("注意:本功能可以帮助你重置登陆密码" + "<br />");
        builder.Append("在线帮助" + "<br />");
        builder.Append("方法1:手机找回密码" + "<br />");
        builder.Append("手机获取验证码:" + "<a href=\"" + Utils.getUrl("GetPwd.aspx?act=forvalidate&amp;ve=2a") + "\">马上找回</a>" + "<br />");
        builder.Append("方法2:密保保护" + "<br />");
        builder.Append("如果有设置过密保问题的请" + "<a href=\"" + Utils.getUrl("GetPwd.aspx?act=mibao") + "\">使用密码保护获取密码</a>" + "<br />");
        builder.Append(Out.Tab("</div>", ""));
        builder.Append("其他相关帮助" + "<br />");
        int    SizeNum  = 3;
        string strWhere = "";
        IList <BCW.Model.tb_Help> listHelp = new BCW.BLL.tb_Help().GetHelps(SizeNum, strWhere);

        if (listHelp.Count > 0)
        {
            int k = 1;
            foreach (BCW.Model.tb_Help n in listHelp)
            {
                if (k == 1)
                {
                    builder.Append(Out.Tab("<div>", ""));
                }
                else
                {
                    builder.Append(Out.Tab("<div>", "<br />"));
                }
                builder.Append("<a href=\"" + Utils.getUrl("MoreQuestion.aspx?act=shuoming&amp;id=" + n.ID + "") + "\">" + n.Title + "</a>");

                builder.Append(Out.Tab("</div>", ""));
                k++;
            }
        }
        else
        {
            builder.Append(Out.Div("div", "没有相关记录.."));
        }
        builder.Append(Out.Tab("<div class=\"text\">", ""));
        builder.Append("<br/><a href=\"" + Utils.getUrl("MoreQuestion.aspx") + "\">&gt;&gt;更多</a><br />");
        builder.Append("<a href=\"" + Utils.getUrl("/default.aspx?id=7") + "\">客服帮助</a>");
        builder.Append(Out.Tab("</div>", ""));
        builder.Append(Out.Tab("<div class=\"title\">", "<br/>"));
        builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-");
        builder.Append("<a href=\"" + Utils.getPage("/bbs/pwd/GetPwd.aspx") + "\">上级</a>");
        builder.Append(Out.Tab("</div>", ""));
    }
Exemplo n.º 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "留言系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/vbook.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Name   = Utils.GetRequest("Name", "post", 2, @"^[^\^]{1,20}$", "系统名称限1-20字内");
            string Notes  = Utils.GetRequest("Notes", "post", 3, @"^[^\^]{1,50}$", "留言口号限50字内");
            string Logo   = Utils.GetRequest("Logo", "post", 3, @"^[^\^]{1,200}$", "Logo地址限200字内");
            string Status = Utils.GetRequest("Status", "post", 2, @"^[0-1]$", "系统状态选择出错");
            string IsAc   = Utils.GetRequest("IsAc", "post", 2, @"^[0-1]$", "留言性质选择错误");
            string IsUser = Utils.GetRequest("IsUser", "post", 2, @"^[0-1]$", "发表限制选择错误");
            string Expir  = Utils.GetRequest("Expir", "post", 2, @"^[0-9]\d*$", "防刷时间填写错误");

            xml.dss["VBookName"]   = Name;
            xml.dss["VBookNotes"]  = Notes;
            xml.dss["VBookLogo"]   = Logo;
            xml.dss["VBookStatus"] = Status;
            xml.dss["VBookIsAc"]   = IsAc;
            xml.dss["VBookIsUser"] = IsUser;
            xml.dss["VBookExpir"]  = Expir;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("留言系统设置", "设置成功,正在返回..", Utils.getUrl("vbookset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "留言系统设置"));

            string strText = "留言名称:/,留言口号(可留空):/,留言Logo(可留空):/,系统状态:/,留言性质:/,发表限制:/,防刷时间(秒):/";
            string strName = "Name,Notes,Logo,Status,IsAc,IsUser,Expir";
            string strType = "text,text,text,select,select,select,num";
            string strValu = "" + xml.dss["VBookName"] + "'" + xml.dss["VBookNotes"] + "'" + xml.dss["VBookLogo"] + "'" + xml.dss["VBookStatus"] + "'" + xml.dss["VBookIsAc"] + "'" + xml.dss["VBookIsUser"] + "'" + xml.dss["VBookExpir"] + "";
            string strEmpt = "false,true,true,0|正常|1|维护,0|立即显示|1|回复后显示,0|不作限制|1|仅限会员,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,vbookset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            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 />"));
        }
    }
Exemplo n.º 14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "相册系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/albums.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Name   = Utils.GetRequest("Name", "post", 2, @"^[^\^]{1,20}$", "系统名称限1-20字内");
            string Logo   = Utils.GetRequest("Logo", "post", 3, @"^[^\^]{1,200}$", "Logo地址限200字内");
            string Status = Utils.GetRequest("Status", "post", 2, @"^[0-1]$", "系统状态选择出错");
            string TopNum = Utils.GetRequest("TopNum", "post", 2, @"^[1-9]\d*$", "人气相集显示条数填写错误");
            string NewNum = Utils.GetRequest("NewNum", "post", 2, @"^[1-9]\d*$", "最新上传显示条数填写错误");
            string Expir  = Utils.GetRequest("Expir", "post", 2, @"^[0-9]\d*$", "防刷秒数填写错误");

            xml.dss["AlbumsName"]   = Name;
            xml.dss["AlbumsLogo"]   = Logo;
            xml.dss["AlbumsStatus"] = Status;
            xml.dss["AlbumsTopNum"] = TopNum;
            xml.dss["AlbumsNewNum"] = NewNum;
            xml.dss["AlbumsExpir"]  = Expir;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("相册系统设置", "设置成功,正在返回..", Utils.getUrl("albumsset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "相册系统设置"));

            string strText = "相册名称:/,相册Logo(可留空):/,系统状态:/,人气相集显示条数:/,最新上传显示条数:/,评论防刷(秒):/";
            string strName = "Name,Logo,Status,TopNum,NewNum,Expir";
            string strType = "text,text,select,snum,snum,snum";
            string strValu = "" + xml.dss["AlbumsName"] + "'" + xml.dss["AlbumsLogo"] + "'" + xml.dss["AlbumsStatus"] + "'" + xml.dss["AlbumsTopNum"] + "'" + xml.dss["AlbumsNewNum"] + "'" + xml.dss["AlbumsExpir"] + "";
            string strEmpt = "false,true,0|正常|1|维护,false,false,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,albumsset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            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 />"));
        }
    }
Exemplo n.º 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "邮箱系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/email.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string From     = Utils.GetRequest("From", "post", 3, @"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", "请输入正确的邮箱地址");
            string FromUser = Utils.GetRequest("FromUser", "post", 3, @"^[\s\S]{1,30}$", "登录帐号限1-30字内");
            string FromPwd  = Utils.GetRequest("FromPwd", "post", 3, @"^[\s\S]{1,30}$", "登录密码限1-30字内");
            string FromHost = Utils.GetRequest("FromHost", "post", 3, @"^[\s\S]{1,50}$", "主机地址限1-50字内");
            string FromPort = Utils.GetRequest("FromPort", "post", 3, @"^[0-9]\d*$", "主机端口填写错误");

            xml.dss["EmailFrom"]     = From;
            xml.dss["EmailFromUser"] = FromUser;
            xml.dss["EmailFromPwd"]  = FromPwd;
            xml.dss["EmailFromHost"] = FromHost;
            xml.dss["EmailFromPort"] = FromPort;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("邮箱系统设置", "设置成功,正在返回..", Utils.getUrl("emailset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "邮箱系统设置"));

            string strText = "邮箱地址:/,登录帐号:/,登录密码:/,邮件主机地址:/,邮件主机端口:/";
            string strName = "From,FromUser,FromPwd,FromHost,FromPort";
            string strType = "text,text,text,text,num";
            string strValu = "" + xml.dss["EmailFrom"] + "'" + xml.dss["EmailFromUser"] + "'" + xml.dss["EmailFromPwd"] + "'" + xml.dss["EmailFromHost"] + "'" + xml.dss["EmailFromPort"] + "";
            string strEmpt = "true,true,true,true,true";
            string strIdea = "/";
            string strOthe = "确定修改|reset,emailset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("温馨提示:<br />邮件功能作为用户找回密码、将附件转向用户邮箱的一个转发服务,以后将会应用更多的网站服务中.<br />所有选项留空时,系统将自动调用默认帐号[email protected]作为转发邮箱.");
            builder.Append(Out.Tab("</div>", ""));
            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 />"));
        }
    }
Exemplo n.º 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "短消息系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/guest.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Status   = Utils.GetRequest("Status", "post", 2, @"^[0-1]\d*$", "短消息状态选择错误");
            string Expir    = Utils.GetRequest("Expir", "post", 2, @"^[1-9]\d*$", "发消息防刷秒数填写错误");
            string Add      = Utils.GetRequest("Add", "post", 2, @"^[0-1]$", "群发消息性质选择错误");
            string All      = Utils.GetRequest("All", "post", 2, @"^[0-9]\d*$", "群发收费填写错误");
            string Share    = Utils.GetRequest("Share", "post", 2, @"^[0-9]\d*$", "分享收费填写错误");
            string ReportID = Utils.GetRequest("ReportID", "post", 2, @"^[1-9]\d*$", "接收举报ID填写错误");
            xml.dss["GuestStatus"]   = Status;
            xml.dss["GuestExpir"]    = Expir;
            xml.dss["GuestAdd"]      = Add;
            xml.dss["GuestAll"]      = All;
            xml.dss["GuestShare"]    = Share;
            xml.dss["GuestReportID"] = ReportID;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("短消息系统设置", "设置成功,正在返回..", Utils.getUrl("guestset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "短消息系统设置"));

            string strText = "会员短消息状态:/,发消息防刷秒数:/,群发消息:/,群发消息收费(按每人收费):/,分享收费:/,接收举报ID:/:";
            string strName = "Status,Expir,Add,All,Share,ReportID";
            string strType = "select,num,select,num,num,num";
            string strValu = "" + xml.dss["GuestStatus"] + "'" + xml.dss["GuestExpir"] + "'" + xml.dss["GuestAdd"] + "'" + xml.dss["GuestAll"] + "'" + xml.dss["GuestShare"] + "'" + xml.dss["GuestReportID"] + "";
            string strEmpt = "0|正常|1|维护,false,0|开启|1|关闭,false,false,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,guestset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            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 />"));
        }
    }
Exemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "设置拒绝UA";
        builder.Append(Out.Tab("", ""));

        string ac  = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml = new ub();

        Application.Remove("xml_wap"); //清缓存
        xml.Reload();                  //加载网站配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string NoUA     = Utils.GetRequest("NoUA", "post", 3, @"^[^\#]{1,500}(?:\#[^\#]{1,500}){0,10000}$", "UA填写错误");
            string NoUA2    = Utils.GetRequest("NoUA2", "post", 3, @"^[^\#]{1,500}(?:\#[^\#]{1,500}){0,10000}$", "UA2填写错误");
            string NoUAMsg  = Utils.GetRequest("NoUAMsg", "post", 2, @"^[^\^]{1,500}$", "提示信息限1-500字内");
            string NoUAStat = Utils.GetRequest("NoUAStat", "post", 2, @"^[0-1]$", "状态选择错误");

            xml.ds["SiteNoUA"]     = NoUA;
            xml.ds["SiteNoUA2"]    = NoUA2;
            xml.ds["SiteNoUAMsg"]  = NoUAMsg;
            xml.ds["SiteNoUAStat"] = NoUAStat;
            System.IO.File.WriteAllText(Server.MapPath("~/Controls/wap.xml"), xml.Post(xml.ds), System.Text.Encoding.UTF8);
            Utils.Success("设置拒绝UA", "设置拒绝UA成功,正在返回..", Utils.getUrl("ualock.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "设置拒绝UA"));

            string strText = "存在UA(请用“#”作分隔):/,等于UA(请用“#”作分隔):/,提示信息:/,状态:/";
            string strName = "NoUA,NoUA2,NoUAMsg,NoUAStat";
            string strType = "textarea,textarea,text,select";
            string strValu = "" + xml.ds["SiteNoUA"] + "'" + xml.ds["SiteNoUA2"] + "'" + xml.ds["SiteNoUAMsg"] + "'" + xml.ds["SiteNoUAStat"] + "";
            string strEmpt = "true,true,true,0|启用|1|关闭";
            string strIdea = "/";
            string strOthe = "确定修改|reset,ualock.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("设置的UA在启用状态下将不允许访问网站,多个UA请用“#”作分隔。<br />您的短UA:" + Utils.GetBrowser() + "<br />您的长UA:" + Utils.GetUA() + "<br />如果设置其中一个UA你将不能访问前台。");
            builder.Append(Out.Tab("</div>", ""));

            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 />"));
        }
    }
Exemplo n.º 18
0
    private void PaymentBuylist()
    {
        int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误"));

        if (!new BCW.BLL.Goods().Exists(id))
        {
            Utils.Error("不存在的记录", "");
        }

        Master.Title = "付款方式";
        builder.Append(Out.Tab("<div class=\"title\">付款方式</div>", ""));
        builder.Append(Out.Div("div", Out.SysUBB(ub.GetSub("BuylistpText", xmlPath))));
        builder.Append(Out.Tab("<div class=\"title\">", Out.Hr()));
        builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">首页</a>-");
        builder.Append("<a href=\"" + Utils.getUrl("shopdetail.aspx?id=" + id + "&amp;backurl=" + Utils.getPage(0) + "") + "\">上级</a>");
        builder.Append(Out.Tab("</div>", ""));
    }
Exemplo n.º 19
0
    private void GetCheckManage()
    {
        int ManageId = new BCW.User.Manage().IsManageLogin();

        if (ManageId != 1)
        {
            Utils.Error("以你的权限还不能进行此设置", "");
        }

        Master.Title = "后台登录设置";
        string ac  = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml = new ub();

        Application.Remove("xml_wap"); //清缓存
        xml.Reload();                  //加载网站配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string LoginExpir = Utils.GetRequest("LoginExpir", "post", 2, @"^[0-9]\d*$", "超时时间填写错误");
            string VerifyIP   = Utils.GetRequest("VerifyIP", "post", 2, @"^[0-1]$", "启用IP异常选择错误");
            xml.ds["SiteLoginExpir"] = LoginExpir;
            xml.ds["SiteVerifyIP"]   = VerifyIP;
            System.IO.File.WriteAllText(Server.MapPath("~/Controls/wap.xml"), xml.Post(xml.ds), System.Text.Encoding.UTF8);
            Utils.Success("后台登录设置", "登录设置成功,正在返回..", Utils.getUrl("manage.aspx?act=check"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "后台登录设置"));

            string strText = "超时时间(分钟):/,启用IP异常:/,";
            string strName = "LoginExpir,VerifyIP,act";
            string strType = "num,select,hidden";
            string strValu = "" + xml.ds["SiteLoginExpir"] + "'" + xml.ds["SiteVerifyIP"] + "'check";
            string strEmpt = "false,0|不启用|1|启用,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,manage.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("温馨提示:<br />当后台管理员登录后超出设置的时间则需输入密码继续管理,不启用请填0<br />启用IP异常则使用不同IP登录时需重新登录,非常安全");
            builder.Append(Out.Tab("</div>", ""));
            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getUrl("manage.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 />"));
        }
    }
Exemplo n.º 20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "闲聊管理员设置";
        builder.Append(Out.Tab("", ""));
        int    ptype   = int.Parse(Utils.GetRequest("ptype", "all", 1, @"^[0-9]\d*$", "0"));
        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/spkadmin.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string SpkAdmin = Utils.GetRequest("SpkAdmin", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "多个管理员ID请用#分隔,可以留空");
            string SpkLimit = Utils.GetRequest("SpkLimit", "post", 2, @"^[0-9]\d*$", "奖币上限填写错误");
            string SpkOne   = Utils.GetRequest("SpkOne", "post", 2, @"^[0-9]\d*$", "发言奖币数填写错误");

            xml.dss["SpkAdmin" + ptype + ""] = SpkAdmin;
            xml.dss["SpkLimit"] = SpkLimit;
            xml.dss["SpkOne"]   = SpkOne;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("闲聊管理员设置", "设置闲聊管理员成功,正在返回..", Utils.getUrl("spkadminset.aspx?ptype=" + ptype + "&amp;backurl=" + Utils.getPage(0) + ""), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "" + BCW.User.AppCase.CaseAction(ptype) + "&gt;管理员设置"));

            string strText = "管理员ID:/,奖币上限(条):/,发言奖币数(每条):/,,";
            string strName = "SpkAdmin,SpkLimit,SpkOne,ptype,backurl";
            string strType = "text,num,num,hidden,hidden";
            string strValu = "" + xml.dss["SpkAdmin" + ptype + ""] + "'" + xml.dss["SpkLimit"] + "'" + xml.dss["SpkOne"] + "'" + ptype + "'" + Utils.getPage(0) + "";
            string strEmpt = "true,true,true,false,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,spkadminset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("温馨提示:多个管理员ID请用#分隔");
            builder.Append(Out.Tab("</div>", ""));
            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getPage("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 />"));
        }
    }
Exemplo n.º 21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "" + ub.Get("SiteBz") + "转帐ID设置";
        builder.Append(Out.Tab("", ""));
        int ManageId = new BCW.User.Manage().IsManageLogin();

        if (ManageId != 1 && ManageId != 11)
        {
            Utils.Error("只有系统管理员1号才可以进行此操作", "");
        }
        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/finance.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string SysID  = Utils.GetRequest("SysID", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "内部互转ID请用#分隔,可以留空");
            string SysID2 = Utils.GetRequest("SysID2", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "内部禁转ID请用#分隔,可以留空");
            xml.dss["FinanceSysID"]  = SysID;
            xml.dss["FinanceSysID2"] = SysID2;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("设置", "设置成功,正在返回..", Utils.getUrl("centrole.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "" + ub.Get("SiteBz") + "转帐ID设置"));

            string strText = "内部互转ID(多个用#分隔|对外限20000一天):/,内部禁转ID(多个用#分隔):/";
            string strName = "SysID,SysID2";
            string strType = "big,big";
            string strValu = "" + xml.dss["FinanceSysID"] + "'" + xml.dss["FinanceSysID2"] + "";
            string strEmpt = "true,true";
            string strIdea = "/";
            string strOthe = "确定修改|reset,centrole.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            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 />"));
        }
    }
Exemplo n.º 22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "免费料广告设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/cplist.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string ListTop    = Utils.GetRequest("ListTop", "post", 1, @"^[\s\S^]{1,5000}$", "");
            string ListFoot   = Utils.GetRequest("ListFoot", "post", 1, @"^[\s\S^]{1,5000}$", "");
            string DetailTop  = Utils.GetRequest("DetailTop", "post", 1, @"^[\s\S^]{1,5000}$", "");
            string DetailFoot = Utils.GetRequest("DetailFoot", "post", 1, @"^[\s\S^]{1,5000}$", "");
            string BmTop      = Utils.GetRequest("BmTop", "post", 1, @"^[\s\S^]{1,5000}$", "");
            string BmFoot     = Utils.GetRequest("BmFoot", "post", 1, @"^[\s\S^]{1,5000}$", "");

            xml.dss["CPListTop"]    = ListTop;
            xml.dss["CPListFoot"]   = ListFoot;
            xml.dss["CPDetailTop"]  = DetailTop;
            xml.dss["CPDetailFoot"] = DetailFoot;
            xml.dss["CPBmTop"]      = BmTop;
            xml.dss["CPBmFoot"]     = BmFoot;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("设置", "设置成功,正在返回..", Utils.getUrl("cplistadset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "免费料广告设置"));

            string strText = "列表顶部Ubb:/,列表底部Ubb:/,内容顶部Ubb:/,内容底部Ubb:/,报码顶部Ubb:/,报码底部Ubb:/";
            string strName = "ListTop,ListFoot,DetailTop,DetailFoot,BmTop,BmFoot";
            string strType = "text,text,text,text,text,text";
            string strValu = "" + xml.dss["CPListTop"] + "'" + xml.dss["CPListFoot"] + "'" + xml.dss["CPDetailTop"] + "'" + xml.dss["CPDetailFoot"] + "'" + xml.dss["CPBmTop"] + "'" + xml.dss["CPBmFoot"] + "";
            string strEmpt = "true,true,true,true,true,true";
            string strIdea = "/";
            string strOthe = "确定修改|reset,cplistadset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
        }
    }
Exemplo n.º 23
0
    private void CreateDirectory()
    {
        builder.Append(Out.Div("title", "新建文件夹"));
        string strText = "新文件夹:/,,";
        string strName = "txtFolderName,path,act";
        string strType = "text,hidden,hidden";
        string strValu = "NewFolder" + new Random().Next(1, 50).ToString() + "'" + Server.UrlEncode(folderPath) + "'create";
        string strEmpt = "false,false,false";
        string strIdea = "/";
        string strOthe = "新建文件夹|reset,filemanager.aspx,post,1,red|blue";

        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

        builder.Append(Out.Tab("<div>", "<br />"));
        builder.Append("<a href=\"" + Utils.getUrl("filemanager.aspx?path=" + Server.UrlEncode(folderPath) + "") + "\">返回上一级</a><br />");
        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 />"));
    }
Exemplo n.º 24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "非验证会员权限设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/verify.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string Verifytxt = Utils.GetRequest("Verifytxt", "post", 3, @"^[\w((;|,)\w)?]+$", "选择权限选项错误");
            Verifytxt = Verifytxt.Replace(",", ";");

            xml.dss["Verifytxt"] = Verifytxt;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("非验证会员权限设置", "非验证会员权限设置成功,正在返回..", Utils.getUrl("verifyset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "非验证会员权限设置"));

            string strText = "请选择开启的选项:/";
            string strName = "Verifytxt";
            string strType = "multiple";
            string strValu = "" + xml.dss["Verifytxt"] + "";
            string strEmpt = "a|不能发贴|b|不能回帖|c|不能玩游戏|d|不能过户币|e|不能写日记|f|不能上传文件|g|不能聊室发言|h|不能闲聊|i|不能建圈|j|不能自建聊室|k|不能空间留言|l|不能前台评论|m|不能社区评论|n|不奖励" + ub.Get("SiteBz") + "|o|不能发内线|p|不奖励" + ub.Get("SiteBz2") + "";
            string strIdea = "/";
            string strOthe = "确定修改|reset,verifyset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("温馨提示:<br />非验证会员指的是通过前台手工注册的会员.<br />选项可以全留空,则非验证会员拥有所有的权限");
            builder.Append(Out.Tab("</div>", ""));
            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 />"));
        }
    }
Exemplo n.º 25
0
    private void CollecFile()
    {
        builder.Append(Out.Div("title", "采集文件"));
        string strText = "文件地址:/,,";
        string strName = "fileUpload,path,act";
        string strType = "text,hidden,hidden";
        string strValu = "'" + Server.UrlEncode(folderPath) + "'ccfile";
        string strEmpt = "false,false,false";
        string strIdea = "/";
        string strOthe = "采集文件|reset,filemanager.aspx,post,2,red|blue";

        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

        builder.Append(Out.Tab("<div>", "<br />"));
        builder.Append("<a href=\"" + Utils.getUrl("filemanager.aspx?path=" + Server.UrlEncode(folderPath) + "") + "\">返回上一级</a><br />");
        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 />"));
    }
Exemplo n.º 26
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "高手系统设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/bbs.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string GsDemoID   = Utils.GetRequest("GsDemoID", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "高手内测ID请用#分隔,可以留空");
            string GsAdminID  = Utils.GetRequest("GsAdminID", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "高手前台管理ID请用#分隔,可以留空");
            string GsAdminID2 = Utils.GetRequest("GsAdminID2", "post", 3, @"^[^\#]{1,50}(?:\#[^\#]{1,50}){0,500}$", "高手前台设置期数ID请用#分隔,可以留空");

            xml.dss["BbsGsDemoID"]   = GsDemoID;
            xml.dss["BbsGsAdminID"]  = GsAdminID;
            xml.dss["BbsGsAdminID2"] = GsAdminID2;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("设置", "设置成功,正在返回..", Utils.getUrl("Gsset.aspx?backurl=" + Utils.getPage(0) + ""), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "高手系统设置"));

            string strText = "高手内测ID(多个请用#分隔,留空则开放所有人使用):/,高手前台开奖管理ID:/,高手前台设置期数ID:/,";
            string strName = "GsDemoID,GsAdminID,GsAdminID2,backurl";
            string strType = "big,big,big,hidden";
            string strValu = "" + xml.dss["BbsGsDemoID"] + "'" + xml.dss["BbsGsAdminID"] + "'" + xml.dss["BbsGsAdminID2"] + "'" + Utils.getPage(0) + "";
            string strEmpt = "true,true,true,false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,Gsset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getPage("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 />"));
        }
    }
Exemplo n.º 27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Title = "授权码设置";
        builder.Append(Out.Tab("", ""));

        string ac      = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml     = new ub();
        string xmlPath = "/Controls/key.xml";

        Application.Remove(xmlPath); //清缓存
        xml.ReloadSub(xmlPath);      //加载配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string KeyCom = Utils.GetRequest("KeyCom", "post", 2, @"^[^\^]{1,100}$", "授权码不能为空");

            xml.dss["KeyCom"] = KeyCom;
            System.IO.File.WriteAllText(Server.MapPath(xmlPath), xml.Post(xml.dss), System.Text.Encoding.UTF8);
            Utils.Success("授权码设置", "设置成功,正在返回..", Utils.getUrl("keyset.aspx"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "授权码设置"));

            string strText = "授权码:/";
            string strName = "keycom";
            string strType = "text";
            string strValu = "" + xml.dss["KeyCom"] + "";
            string strEmpt = "false";
            string strIdea = "/";
            string strOthe = "确定修改|reset,keyset.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("重要:授权码是官方认证的产品序列号,具有正版特权标识,请不要随意修改!");
            builder.Append(Out.Tab("</div>", ""));
            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 />"));
        }
    }
Exemplo n.º 28
0
    /// <summary>
    /// 添加/编辑页面菜单
    /// </summary>
    private void Insert1(int leibie, int ptype, int nid, int id)
    {
        if (id != 0)
        {
            Master.Title = "编辑菜单";
            builder.Append(Out.Div("title", "编辑菜单"));
        }
        else
        {
            Master.Title = "添加菜单";
            builder.Append(Out.Div("title", "添加新菜单"));
        }
        string strText = "页面菜单名称:/,栏目后面:/,浏览器限制:/,VIP等级限制:/,页面收费:/,收费币种:/,消费方式:(收费非0时有效)/,访问密码:(留空不加密)/,显示状态:/,显示顺序:/,,,,";
        string strName = "Title,IsBr,IsPc,VipLeven,Cent,BzType,SellTypes,InPwd,Hidden,Paixu,leibie,ptype,nid,id";
        string strType = "text,select,select,select,num,select,select,text,select,snum,hidden,hidden,hidden,hidden";
        string strValu = "";

        if (id != 0)
        {
            //读取菜单
            BCW.Model.Topics model = new BCW.BLL.Topics().GetTopics(id);
            strValu = "" + model.Title + "'" + model.IsBr + "'" + model.IsPc + "'" + model.VipLeven + "'" + model.Cent + "'" + model.BzType + "'" + model.SellTypes + "'" + model.InPwd + "'" + model.Hidden + "'" + model.Paixu + "'" + model.Leibie + "'" + model.Types + "'" + model.NodeId + "'" + id + "";
        }
        else
        {
            strValu = "'1'0'0'0'0'0''0'0'" + leibie + "'" + ptype + "'" + nid + "'" + id + "";
        }
        string strEmpt = "false,0|换行|1|不换行,0|不限制|1|仅限手机,0|不限|1|一级|2|二级|3|三级|4|四级|5|五级|6|六级|7|七级|8|八级,true,0|" + ub.Get("SiteBz") + "|1|" + ub.Get("SiteBz2") + ",0|按次计费|1|包周计费|2|包月计费,true,0|正常显示|1|登录可见|2|隐藏显示,false,,,,";
        string strIdea = "/";
        string strOthe = "";

        if (id != 0)
        {
            strOthe = "确定编辑|reset,classok.aspx,post,1,red|blue";
        }
        else
        {
            strOthe = "确定添加|reset,classok.aspx,post,1,red|blue";
        }
        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
    }
Exemplo n.º 29
0
    /// <summary>
    /// 添加/编辑子菜单
    /// </summary>
    private void Insert3(int leibie, int ptype, int nid, int id, string pName)
    {
        if (id != 0)
        {
            Master.Title = "编辑" + pName + "";
            builder.Append(Out.Div("title", "编辑" + pName + ""));
        }
        else
        {
            Master.Title = "添加" + pName + "";
            builder.Append(Out.Div("title", "添加" + pName + ""));
        }
        string strText = "" + pName + "名称:/,栏目后面:/,显示状态:/,显示顺序:/,,,,";
        string strName = "Title,IsBr,Hidden,Paixu,leibie,ptype,nid,id";
        string strType = "text,select,select,snum,hidden,hidden,hidden,hidden";
        string strValu = "";

        if (id != 0)
        {
            //读取菜单
            BCW.Model.Topics model = new BCW.BLL.Topics().GetTopics(id);
            strValu = "" + model.Title + "'" + model.IsBr + "'" + model.Hidden + "'" + model.Paixu + "'" + model.Leibie + "'" + model.Types + "'" + model.NodeId + "'" + id + "";
        }
        else
        {
            strValu = "''0'0'" + leibie + "'" + ptype + "'" + nid + "'" + id + "";
        }
        string strEmpt = "false,0|换行|1|不换行,0|正常显示|1|登录可见|2|隐藏显示,false,,,,";
        string strIdea = "/";
        string strOthe = "";

        if (id != 0)
        {
            strOthe = "确定编辑|reset,classok.aspx,post,1,red|blue";
        }
        else
        {
            strOthe = "确定添加|reset,classok.aspx,post,1,red|blue";
        }
        builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
    }
Exemplo n.º 30
0
    private void LOG()
    {
        Master.Title = "数据日志作业";

        string ac  = Utils.GetRequest("ac", "all", 1, "", "");
        ub     xml = new ub();

        Application.Remove("xml_wap"); //清缓存
        xml.Reload();                  //加载网站配置
        if (Utils.ToSChinese(ac) == "确定修改")
        {
            string iLogTime = Utils.GetRequest("iLogTime", "post", 2, @"^[0-9]\d*$", "填写小时错误");

            xml.ds["SiteiLogTime"] = iLogTime;
            xml.ds["SiteLogTime"]  = DateTime.Now.ToString();
            System.IO.File.WriteAllText(Server.MapPath("~/Controls/wap.xml"), xml.Post(xml.ds), System.Text.Encoding.UTF8);
            Utils.Success("设置日志作业", "设置日志作业成功,正在返回..", Utils.getUrl("databackup.aspx?act=log"), "1");
        }
        else
        {
            builder.Append(Out.Div("title", "日志作业设置"));

            string strText = "截断日志间隔时间/,";
            string strName = "iLogTime,act";
            string strType = "snum,hidden";
            string strValu = "" + xml.ds["SiteiLogTime"] + "'log";
            string strEmpt = "true,false";
            string strIdea = "小时'|/";
            string strOthe = "确定修改|reset,databackup.aspx,post,1,red|blue";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append("温馨提示:<br />设置间隔时间可以自动截断数据库日志<br />填写0则取消自动清日志作业");
            builder.Append(Out.Tab("</div>", ""));

            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getUrl("databackup.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 />"));
        }
    }