public void addsite()
        {
            SiteGroupCms.Entity.Site site    = new SiteGroupCms.Entity.Site();
            SiteGroupCms.Dal.SiteDal sitedal = new SiteGroupCms.Dal.SiteDal();

            site.Title           = title;
            site.WebTitle        = webtitle;
            site.Keyword         = keywords;
            site.Description     = description;
            site.Location        = location; //不可修改
            site.Domain          = domain;
            site.IsWork          = Str2Int(iswork);
            site.Indextemplate   = Str2Int(indextemplate);
            site.Listtemplate    = Str2Int(listtemplate);
            site.Contenttemplate = Str2Int(contenttemplate);
            site.EmailServer     = mailserver;
            site.EmailUser       = mailuser;
            site.EmailPwd        = mailpwd;
            site.FtpDir          = ftpdir;
            site.FtpPort         = Str2Int(ftpport);
            site.FtpUser         = ftpuser;
            site.FtpPwd          = ftppwd;
            site.FtpServer       = ftpserver;
            if (sitedal.Exists("location='" + site.Location + "'"))
            {
                _response = "{\"IsError\":true,\"Message\":\"存在相同路径了\",\"Data\":0}";
                return;
            }
            if (sitedal.addsite(site) > 0)
            {
                _response = "{\"IsError\":false,\"Message\":\"新建成功\",\"Data\":0}";
                SiteGroupCms.Utils.DirFile.CreateDir("/sites/" + site.Location + "/pub");
                SiteGroupCms.Utils.DirFile.CreateDir("/sites/" + site.Location + "/templates/atts");
                new SiteGroupCms.Dal.LogDal().SaveLog(21);
            }
            else
            {
                _response = "{\"IsError\":true,\"Message\":\"新建失败\",\"Data\":0}";
            }
        }