// Token: 0x06000011 RID: 17 RVA: 0x00002F40 File Offset: 0x00001140 protected override void View() { if (this.ispost) { if (this.action == "delete") { string @string = FPRequest.GetString("chkdel"); foreach (string text in @string.Split(new char[] { ',' })) { AttachInfo attachInfo = DbHelper.ExecuteModel <AttachInfo>(int.Parse(text)); if (DbHelper.ExecuteDelete <AttachInfo>(text) > 0) { if (File.Exists(FPUtils.GetMapPath(attachInfo.filename))) { File.Delete(FPUtils.GetMapPath(attachInfo.filename)); } } } } base.Response.Redirect(this.pagename); } this.attachlist = DbHelper.ExecuteList <AttachInfo>(this.pager); base.SaveRightURL(); }
// Token: 0x0600007D RID: 125 RVA: 0x0000B2D8 File Offset: 0x000094D8 protected override void View() { if (this.channelid > 0) { this.reurl = this.reurl + "?channelid=" + this.channelid; } SqlParam sqlParam = DbHelper.MakeAndWhere("parentid", this.parentid); OrderByParam orderby = DbHelper.MakeOrderBy("display", OrderBy.ASC); this.typelist = DbHelper.ExecuteList <TypeInfo>(orderby, new SqlParam[] { sqlParam }); if (this.ispost) { int num = 0; foreach (TypeInfo typeInfo in this.typelist) { this.typelist[num].display = FPRequest.GetInt("display_" + typeInfo.id); DbHelper.ExecuteUpdate <TypeInfo>(this.typelist[num]); num++; } CacheBll.RemoveSortCache(); base.Response.Redirect("typedisplay.aspx?parentid=" + this.parentid); } base.SaveRightURL(); }
// Token: 0x060000B8 RID: 184 RVA: 0x0000E440 File Offset: 0x0000C640 protected override void View() { if (this.ispost) { if (this.action == "delete") { DbHelper.ExecuteDelete <UserInfo>(FPRequest.GetString("chkdel")); } else if (this.action == "auditing") { SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeSet("roleid", 5), DbHelper.MakeAndWhere("id", WhereType.In, FPRequest.GetString("chkdel")) }; DbHelper.ExecuteUpdate <UserInfo>(sqlparams); } base.Response.Redirect("userauditing.aspx"); } SqlParam sqlParam = DbHelper.MakeAndWhere("roleid", 3); this.userlist = DbHelper.ExecuteList <UserInfo>(this.pager, new SqlParam[] { sqlParam }); base.SaveRightURL(); }
// Token: 0x06000076 RID: 118 RVA: 0x0000A94C File Offset: 0x00008B4C protected override void View() { SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeAndWhere("channelid", this.channelid), DbHelper.MakeAndWhere("parentid", this.parentid) }; OrderByParam orderby = DbHelper.MakeOrderBy("display", OrderBy.ASC); this.sortlist = DbHelper.ExecuteList <SortInfo>(orderby, sqlparams); if (this.ispost) { int num = 0; foreach (SortInfo sortInfo in this.sortlist) { this.sortlist[num].display = FPRequest.GetInt("display_" + sortInfo.id); DbHelper.ExecuteUpdate <SortInfo>(this.sortlist[num]); FPCache.Remove("FP_SORTTREE" + sortInfo.channelid); num++; } base.Response.Redirect(string.Concat(new object[] { "sortdisplay.aspx?channelid=", this.channelid, "&parentid=", this.parentid })); } base.SaveRightURL(); }
// Token: 0x060000A4 RID: 164 RVA: 0x0000D880 File Offset: 0x0000BA80 protected override void View() { if (this.id > 0) { this.permissioninfo = DbHelper.ExecuteModel <Permission>(this.id); } if (this.ispost) { this.permissioninfo.isadd = 0; this.permissioninfo.isupdate = 0; this.permissioninfo.isdelete = 0; this.permissioninfo.isaudit = 0; this.permissioninfo = FPRequest.GetModel <Permission>(this.permissioninfo); if (this.permissioninfo.id > 0) { DbHelper.ExecuteUpdate <Permission>(this.permissioninfo); } else { DbHelper.ExecuteInsert <Permission>(this.permissioninfo); } base.Response.Redirect("permissionmanage.aspx"); } base.SaveRightURL(); }
// Token: 0x06000095 RID: 149 RVA: 0x0000C8B4 File Offset: 0x0000AAB4 protected override void View() { if (this.ispost) { if (this.action == "delete") { int @int = FPRequest.GetInt("id"); Department department = DbHelper.ExecuteModel <Department>(@int); if (DbHelper.ExecuteDelete <Department>(@int) > 0) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("DELETE FROM [{0}WMS_Department] WHERE [id] IN (SELECT [id] FROM [{0}WMS_Department] WHERE [parentlist] LIKE '{1},%')", DbConfigs.Prefix, department.parentlist); stringBuilder.AppendFormat("UPDATE [{0}WMS_Department] SET [subcounts] = [subcounts]-1 WHERE [id]={1}", DbConfigs.Prefix, department.parentid); DbHelper.ExecuteSql(stringBuilder.ToString()); } } base.Response.Redirect("departmentmanage.aspx"); } SqlParam sqlParam = DbHelper.MakeAndWhere("parentid", 0); OrderByParam orderby = DbHelper.MakeOrderBy("display", OrderBy.ASC); this.departmentlist = DbHelper.ExecuteList <Department>(orderby, new SqlParam[] { sqlParam }); base.SaveRightURL(); }
// Token: 0x06000014 RID: 20 RVA: 0x0000307C File Offset: 0x0000127C protected override void View() { if (this.ispost) { if (this.action == "delete") { DbHelper.ExecuteDelete <AttachType>(FPRequest.GetString("chkdel")); FPCache.Remove("FP_ATTACHTYPE", "image,flash,media,file"); } else if (this.action == "add") { AttachType attachType = FPRequest.GetModel <AttachType>(); DbHelper.ExecuteInsert <AttachType>(attachType); FPCache.Remove("FP_ATTACHTYPE" + attachType.type); } else if (this.action == "edit") { AttachType attachType = DbHelper.ExecuteModel <AttachType>(this.id); attachType = FPRequest.GetModel <AttachType>(attachType, "edit_"); DbHelper.ExecuteUpdate <AttachType>(attachType); FPCache.Remove("FP_ATTACHTYPE" + attachType.type); } base.Response.Redirect(this.pagename); } OrderByParam orderby = DbHelper.MakeOrderBy("type", OrderBy.ASC); this.attachlist = DbHelper.ExecuteList <AttachType>(orderby, new SqlParam[0]); base.SaveRightURL(); }
// Token: 0x060000AA RID: 170 RVA: 0x0000DA98 File Offset: 0x0000BC98 protected override void View() { if (this.id > 0) { this.roleinfo = DbHelper.ExecuteModel <RoleInfo>(this.id); } if (this.ispost) { this.roleinfo.isadmin = 0; this.roleinfo.isdownload = 0; this.roleinfo.isupload = 0; this.roleinfo = FPRequest.GetModel <RoleInfo>(this.roleinfo); if (this.roleinfo.id > 0) { DbHelper.ExecuteUpdate <RoleInfo>(this.roleinfo); } else { DbHelper.ExecuteInsert <RoleInfo>(this.roleinfo); } if (this.roleinfo.id == this.roleid) { base.ResetUser(); } base.Response.Redirect("rolemanage.aspx"); } base.SaveRightURL(); }
// Token: 0x060000A2 RID: 162 RVA: 0x0000D74C File Offset: 0x0000B94C protected override void View() { this.smsconfig = SMSConfigs.GetSMSConfig(); if (this.ispost) { if (this.action == "save") { this.smsconfig = FPRequest.GetModel <SMSConfig>(this.smsconfig); SMSConfigs.SaveConfig(this.smsconfig); SMS.ReSetConfig(); base.AddMsg("保存配置成功!"); } else if (this.action == "send") { this.phone = FPRequest.GetString("phone"); if (this.phone == "") { this.ShowErr("请输入接收测试短信的手机号码!"); return; } string content = string.Format("您的验证码是:{0}。请不要把验证码泄露给其他人。如非本人操作,可不用理会!", WMSUtils.CreateAuthStr(4, true)); string text = SMS.Send(this.phone, content); if (!(text == "")) { this.ShowErr(text); return; } base.AddMsg("发布测试短信成功,请检查手机是否收到。"); } } base.SaveRightURL(); }
// Token: 0x060000B1 RID: 177 RVA: 0x0000DD6C File Offset: 0x0000BF6C protected override void View() { this.iuser = DbHelper.ExecuteModel <UserInfo>(this.uid); if (this.iuser.id == 0) { this.ShowErr("该用户不存在或已被删除。"); } else { this.userinfo = DbHelper.ExecuteModel <FullUserInfo>(this.uid); if (this.ispost) { this.iuser = FPRequest.GetModel <UserInfo>(this.iuser); this.userinfo = FPRequest.GetModel <FullUserInfo>(this.userinfo); if (this.userinfo.isidcard == 1) { this.iuser.isreal = 1; } else { this.iuser.isreal = 0; } DbHelper.ExecuteUpdate <UserInfo>(this.iuser); DbHelper.ExecuteUpdate <FullUserInfo>(this.userinfo); base.Response.Redirect("usercheckmanage.aspx"); } } }
// Token: 0x06000078 RID: 120 RVA: 0x0000AAF4 File Offset: 0x00008CF4 protected override void View() { this.channellist = ChannelBll.GetChannelList(); if (this.channelid == 0 && this.channellist.Count > 0) { this.channelid = this.channellist[0].id; } if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); return; } int @int = FPRequest.GetInt("id"); if (this.action.Equals("delete")) { SortInfo sortInfo = DbHelper.ExecuteModel <SortInfo>(@int); if (DbHelper.ExecuteDelete <SortInfo>(@int) > 0) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("DELETE FROM [{0}WMS_SortInfo] WHERE [id] IN (SELECT [id] FROM [{0}WMS_SortInfo] WHERE [parentlist] LIKE '{1},%');", DbConfigs.Prefix, sortInfo.parentlist); stringBuilder.AppendFormat("UPDATE [{0}WMS_SortInfo] SET [subcounts]=[subcounts]-1 WHERE [id]={1};", DbConfigs.Prefix, sortInfo.parentid); DbHelper.ExecuteSql(stringBuilder.ToString()); } } FPCache.Remove("FP_SORTTREE" + this.channelid.ToString()); base.Response.Redirect("sortmanage.aspx?channelid=" + this.channelid); } this.sortlist = SortBll.GetSortList(this.channelid, 0); base.SaveRightURL(); }
// Token: 0x060000B3 RID: 179 RVA: 0x0000DE84 File Offset: 0x0000C084 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("chkdel"); SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeSet("isidcard", 0), DbHelper.MakeSet("idcardface", ""), DbHelper.MakeAndWhere("uid", WhereType.In, @string) }; DbHelper.ExecuteUpdate <FullUserInfo>(sqlparams); SqlParam[] sqlparams2 = new SqlParam[] { DbHelper.MakeSet("isreal", 0), DbHelper.MakeAndWhere("id", WhereType.In, @string) }; DbHelper.ExecuteUpdate <UserInfo>(sqlparams2); } SqlParam sqlParam = DbHelper.MakeAndWhere("idcardface", WhereType.NotEqual, ""); this.userinfolist = DbHelper.ExecuteList <FullUserInfo>(this.pager, new SqlParam[] { sqlParam }); }
// Token: 0x06000315 RID: 789 RVA: 0x0000CEE4 File Offset: 0x0000B0E4 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("oldpwd"); string string2 = FPRequest.GetString("newpwd"); if (UserBll.CheckPassword(this.userid, @string).id == 0) { this.ShowErr("输入的旧密码不正确!"); } else { string string3 = FPRequest.GetString("renewpwd"); if (string2 != string3) { this.ShowErr("两次输入密码不相同!"); } else { UserBll.UpdatePassword(this.userid, string3); base.AddMsg("密码更新成功。"); } } } }
// Token: 0x0600008E RID: 142 RVA: 0x0000C0C8 File Offset: 0x0000A2C8 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("chkid"); foreach (int id in FPUtils.SplitInt(@string)) { CreditInfo creditInfo = DbHelper.ExecuteModel <CreditInfo>(id); if (DbHelper.ExecuteDelete <CreditInfo>(id) > 0) { string sqlstring = string.Format("UPDATE [{0}WMS_UserInfo] SET [credits]=[credits]+{1} WHERE [id]={2}", DbConfigs.Prefix, creditInfo.credits * -1, creditInfo.uid); DbHelper.ExecuteSql(sqlstring); } } } if (this.uid > 0) { SqlParam sqlParam = DbHelper.MakeAndWhere("uid", this.uid); this.creditlist = DbHelper.ExecuteList <CreditInfo>(this.pager, new SqlParam[] { sqlParam }); } else { this.creditlist = DbHelper.ExecuteList <CreditInfo>(this.pager); } this.iuser = UserBll.GetUserInfo(this.uid); base.SaveRightURL(); }
// Token: 0x060000C3 RID: 195 RVA: 0x0000EC08 File Offset: 0x0000CE08 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("chkid"); DbHelper.ExecuteDelete <MsgTempInfo>(@string); } if (this.type == 1) { this.pagenav = "邮件模板管理"; } else if (this.type == 2) { this.pagenav = "短信模板管理"; } else { this.pagenav = "信息模板管理"; } SqlParam sqlParam = DbHelper.MakeAndWhere("type", this.type); this.msgtemplatelist = DbHelper.ExecuteList <MsgTempInfo>(OrderBy.ASC, new SqlParam[] { sqlParam }); base.SaveRightURL(); }
// Token: 0x06000072 RID: 114 RVA: 0x0000A7CC File Offset: 0x000089CC protected override void View() { if (this.id > 0) { this.sortappinfo = DbHelper.ExecuteModel <SortAppInfo>(this.id); } if (this.ispost) { this.sortappinfo = FPRequest.GetModel <SortAppInfo>(this.sortappinfo); if (this.sortappinfo.appid > 0) { AppInfo appInfo = DbHelper.ExecuteModel <AppInfo>(this.sortappinfo.appid); this.sortappinfo.installpath = appInfo.installpath; } else { this.sortappinfo.installpath = ""; } if (this.sortappinfo.id > 0) { DbHelper.ExecuteUpdate <SortAppInfo>(this.sortappinfo); } else { DbHelper.ExecuteInsert <SortAppInfo>(this.sortappinfo); } CacheBll.RemoveSortCache(); base.Response.Redirect("sortappmanage.aspx"); } this.applist = DbHelper.ExecuteList <AppInfo>(OrderBy.ASC); }
// Token: 0x060002DB RID: 731 RVA: 0x0000B0D8 File Offset: 0x000092D8 protected override void View() { RegConfig regConfig = RegConfigs.GetRegConfig(); string @string = FPRequest.GetString("username"); if (@string == "") { this.ShowErrMsg("用户名不能为空"); } else if (!FPUtils.IsSafeSqlString(@string)) { this.ShowErrMsg("您使用的用户名有敏感字符"); } else if (this.InRestrictArray(@string, regConfig.restrict)) { this.ShowErrMsg("该用户名不允许使用"); } else if (UserBll.CheckUserName(@string)) { this.ShowErrMsg("该用户名已被使用"); } else { Hashtable hashtable = new Hashtable(); hashtable["error"] = 0; hashtable["message"] = "正确"; base.Response.AddHeader("Content-Type", "text/html; charset=UTF-8"); base.Response.Write(JsonMapper.ToJson(hashtable)); base.Response.End(); } }
// Token: 0x0600009D RID: 157 RVA: 0x0000CFF0 File Offset: 0x0000B1F0 protected override void View() { this.roleinfo = DbHelper.ExecuteModel <RoleInfo>(this.rid); if (this.roleinfo.id == 0) { this.ShowErr("对不起,该角色不存在或已被删除。"); } else { if (this.ispost) { this.roleinfo.desktop = FPRequest.GetString("desktop"); DbHelper.ExecuteUpdate <RoleInfo>(this.roleinfo); if (this.roleinfo.id == this.roleid) { base.ResetUser(); } base.Response.Redirect(this.pagename + "?rid=" + this.rid); } SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeAndWhere("hidden", 0), DbHelper.MakeOrWhere("system", 1) }; this.desktoplist = DbHelper.ExecuteList <DesktopInfo>(OrderBy.ASC, sqlparams); base.SaveRightURL(); } }
// Token: 0x06000098 RID: 152 RVA: 0x0000CBC0 File Offset: 0x0000ADC0 protected override void View() { if (this.id > 0) { this.msgtemplateinfo = DbHelper.ExecuteModel <MsgTempInfo>(this.id); if (this.msgtemplateinfo.id == 0) { this.ShowErr("对不起,该模板不存在或已被删除。"); return; } this.type = this.msgtemplateinfo.type; } if (this.ispost) { this.msgtemplateinfo = FPRequest.GetModel <MsgTempInfo>(this.msgtemplateinfo); if (this.msgtemplateinfo.id > 0) { DbHelper.ExecuteUpdate <MsgTempInfo>(this.msgtemplateinfo); } else { DbHelper.ExecuteInsert <MsgTempInfo>(this.msgtemplateinfo); } base.Response.Redirect("msgtemplatemanage.aspx?type=" + this.type); } base.SaveRightURL(); }
// Token: 0x0600007F RID: 127 RVA: 0x0000B47C File Offset: 0x0000967C protected override void View() { OrderByParam orderby = DbHelper.MakeOrderBy("display", OrderBy.ASC); SqlParam sqlParam = DbHelper.MakeAndWhere("parentid", 0); if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); return; } int @int = FPRequest.GetInt("id"); if (this.action.Equals("delete")) { TypeInfo typeInfo = DbHelper.ExecuteModel <TypeInfo>(@int); if (DbHelper.ExecuteDelete <TypeInfo>(@int) > 0) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("DELETE FROM [{0}WMS_TypeInfo] WHERE [id] IN (SELECT [id] FROM [{0}WMS_TypeInfo] WHERE [parentid]={1};", DbConfigs.Prefix, typeInfo.id); stringBuilder.AppendFormat("UPDATE [{0}WMS_TypeInfo] SET [subcounts]=[subcounts]-1 WHERE [id]={1};", DbConfigs.Prefix, typeInfo.parentid); stringBuilder.AppendFormat("UPDATE [{0}WMS_TypeInfo] SET [subcounts]=0 WHERE [subcounts]<0", DbConfigs.Prefix); DbHelper.ExecuteSql(stringBuilder.ToString()); } } } this.typelist = DbHelper.ExecuteList <TypeInfo>(orderby, new SqlParam[] { sqlParam }); base.SaveRightURL(); }
// Token: 0x06000048 RID: 72 RVA: 0x00006580 File Offset: 0x00004780 protected override void View() { if (this.ispost) { if (this.action == "delete") { string @string = FPRequest.GetString("chkid"); DbHelper.ExecuteDelete <TaskInfo>(@string); TaskManager.Reset(); } else if (this.action == "download") { int @int = FPRequest.GetInt("tid"); TaskInfo taskInfo = DbHelper.ExecuteModel <TaskInfo>(@int); string text = FPUtils.SplitString(taskInfo.type, ",", 2)[1]; if (text == "") { this.ShowErr("任务类型不正确。"); return; } if (!File.Exists(FPUtils.GetMapPath(this.webpath + "bin/" + text + ".dll"))) { this.ShowErr("任务类库DLL不存在或已被删除。"); return; } using (FPZip fpzip = new FPZip()) { if (File.Exists(FPUtils.GetMapPath(this.webpath + "cache/task.config"))) { File.Delete(FPUtils.GetMapPath(this.webpath + "cache/task.config")); } FPSerializer.Save <TaskInfo>(taskInfo, FPUtils.GetMapPath(this.webpath + "cache/task.config")); fpzip.AddFile(FPUtils.GetMapPath(this.webpath + "cache/task.config"), ""); fpzip.AddFile(FPUtils.GetMapPath(this.webpath + "bin/" + text + ".dll"), ""); fpzip.ZipDown(FPUtils.UrlEncode(taskInfo.name + ".task")); } } else if (this.action == "run") { int @int = FPRequest.GetInt("tid"); TaskInfo taskInfo = DbHelper.ExecuteModel <TaskInfo>(@int); if (taskInfo.id == 0) { this.ShowErr("对不起,该任务不存在或已被删除。"); return; } try { TaskManager.Execute(taskInfo); } catch (Exception ex) { this.ShowErr("执行计划任务失败:" + ex.Message); return; } } } this.tasklist = DbHelper.ExecuteList <TaskInfo>(OrderBy.ASC); base.SaveRightURL(); }
// Token: 0x06000028 RID: 40 RVA: 0x000045F0 File Offset: 0x000027F0 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("pluname"); if (this.action == "delete") { if (@string != "" && Directory.Exists(FPUtils.GetMapPath(this.webpath + "plugins/" + @string))) { Directory.Delete(FPUtils.GetMapPath(this.webpath + "plugins/" + @string), true); } } else if (this.action == "download") { using (FPZip fpzip = new FPZip()) { DirectoryInfo directoryInfo = new DirectoryInfo(FPUtils.GetMapPath(this.webpath + "plugins/" + @string)); foreach (DirectoryInfo directoryInfo2 in directoryInfo.GetDirectories()) { fpzip.AddDirectory(directoryInfo2.FullName); } foreach (FileInfo fileInfo in directoryInfo.GetFiles()) { fpzip.AddFile(fileInfo.FullName, ""); } fpzip.ZipDown(FPUtils.UrlEncode(@string + ".plu")); } } } this.pluginlist = PluginBll.GetPluginList(); base.SaveRightURL(); }
// Token: 0x06000023 RID: 35 RVA: 0x00003F54 File Offset: 0x00002154 protected override void View() { this.emailconfig = EmailConfigs.GetEmailConfig(); if (this.ispost) { if (this.action == "save") { this.emailconfig.ssl = 0; this.emailconfig = FPRequest.GetModel <EmailConfig>(this.emailconfig); EmailConfigs.SaveConfig(this.emailconfig); Email.ReSetConfig(); base.AddMsg("保存配置成功!"); } else if (this.action == "send") { this.testmail = FPRequest.GetString("testmail"); if (this.testmail == "") { this.ShowErr("请输入测试发送EMAIL地址!"); return; } string text = Email.Send(this.testmail, "方配网站管理系统(WMS)发送系统测试邮件", "您好,这是一封方配网站管理系统(WMS)邮箱设置页面发送的测试邮件!,如果您收到这款邮件说明您的邮箱配置是正确的。"); if (!(text == "")) { this.ShowErr(text); return; } base.AddMsg("发布测试邮件成功,请检查是否收到。"); } } base.SaveRightURL(); }
// Token: 0x0600002D RID: 45 RVA: 0x00004C98 File Offset: 0x00002E98 protected override void View() { this.sysconfiginfo = SysConfigs.GetConfig(); this.sitelist = SiteBll.GetSiteList(); Configuration configuration = WebConfigurationManager.OpenWebConfiguration("~"); if (configuration.AppSettings.Settings["sitepath"] != null) { this.mainsite = configuration.AppSettings.Settings["sitepath"].Value; } CustomErrorsSection customErrorsSection = (CustomErrorsSection)configuration.GetSection("system.web/customErrors"); if (customErrorsSection.Mode == CustomErrorsMode.Off) { this.customerror = 1; } this.adminsiteconfig = SiteConfigs.LoadConfig(FPUtils.GetMapPath(this.webpath + this.sysconfiginfo.adminpath + "/site.config")); if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有限权进行修改配置。"); return; } this.sysconfiginfo = FPRequest.GetModel <SysConfig>(this.sysconfiginfo); if (this.sysconfiginfo.admintitle == "") { this.sysconfiginfo.admintitle = this.adminsiteconfig.sitetitle; } this.sysconfiginfo.passwordkey = WMSUtils.CreateAuthStr(10); WMSCookie.WriteCookie("password", DES.Encode(this.user.password, this.sysconfiginfo.passwordkey)); SysConfigs.SaveConfig(this.sysconfiginfo); SysConfigs.ResetConfig(); if (FPRequest.GetInt("customerror") != this.customerror) { this.customerror = FPRequest.GetInt("customerror"); if (this.customerror == 1) { customErrorsSection.Mode = CustomErrorsMode.Off; } else { customErrorsSection.Mode = CustomErrorsMode.RemoteOnly; } } if (configuration.AppSettings.Settings["sitepath"] != null) { configuration.AppSettings.Settings["sitepath"].Value = FPRequest.GetString("mainsite"); } else { configuration.AppSettings.Settings.Add("sitepath", FPRequest.GetString("mainsite")); } configuration.Save(ConfigurationSaveMode.Modified); WebConfig.ReSet(); base.AddMsg("更新配置成功!"); } base.SaveRightURL(); }
// Token: 0x06000074 RID: 116 RVA: 0x0000A8F4 File Offset: 0x00008AF4 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("chkid"); DbHelper.ExecuteDelete <SortAppInfo>(@string); CacheBll.RemoveSortCache(); } this.sortapplist = DbHelper.ExecuteList <SortAppInfo>(OrderBy.ASC); }
// Token: 0x0600030D RID: 781 RVA: 0x0000C90C File Offset: 0x0000AB0C protected override void View() { this.fulluserinfo = DbHelper.ExecuteModel <FullUserInfo>(this.userid); if (this.user.isreal == 1 && this.fulluserinfo.idcard != "" && this.fulluserinfo.idcard.Length > 4) { this.fulluserinfo.idcard = "****" + this.fulluserinfo.idcard.Substring(this.fulluserinfo.idcard.Length - 4); } if (this.ispost) { this.fulluserinfo = FPRequest.GetModel <FullUserInfo>(this.fulluserinfo); if (FPRequest.GetString("realname") == "") { this.ShowErr("真实姓名不能为空。"); } else if (this.fulluserinfo.idcard == "") { this.ShowErr("身份证号码不能为空。"); } else if (this.fulluserinfo.idcard.Length > 20) { this.ShowErr("身份证号码不能大于20个字符"); } else if (this.fulluserinfo.idcard.Trim() != "" && !Regex.IsMatch(this.fulluserinfo.idcard.Trim(), "^[\\x20-\\x80]+$")) { this.ShowErr("身份证号码中含有非法字符"); } else { if (this.isfile) { this.fulluserinfo.idcardface = base.UploadImg(FPRequest.Files["idcardface"], this.fulluserinfo.idcardface); this.fulluserinfo.idcardback = base.UploadImg(FPRequest.Files["idcardback"], this.fulluserinfo.idcardback); this.fulluserinfo.idcardper = base.UploadImg(FPRequest.Files["idcardper"], this.fulluserinfo.idcardper); } if (this.fulluserinfo.idcardface == "") { this.ShowErr("请上传身份证正面图片。"); } else if (this.fulluserinfo.idcardback == "") { this.ShowErr("请上传身份证背面图片。"); } else if (this.fulluserinfo.idcardper == "") { this.ShowErr("请上传身份证手持图片。"); } else { DbHelper.ExecuteUpdate <FullUserInfo>(this.fulluserinfo); base.ResetUser(); base.AddMsg("您的身份信息已提交成功,等待管理员的审核。"); } } } }
// Token: 0x06000046 RID: 70 RVA: 0x00006508 File Offset: 0x00004708 protected override void View() { string mapPath = FPUtils.GetMapPath(this.webpath + "cache/tasklog.config"); this.logcontent = FPFile.ReadFile(mapPath); if (this.ispost) { this.logcontent = FPRequest.GetString("logcontent"); FPFile.WriteFile(mapPath, this.logcontent); } base.SaveRightURL(); }
// Token: 0x06000317 RID: 791 RVA: 0x0000CF90 File Offset: 0x0000B190 protected override void View() { if (this.ispost) { string @string = FPRequest.GetString("email"); if (@string == "") { this.ShowErr("请输入邮箱。"); } else { SqlParam sqlParam = DbHelper.MakeAndWhere("email", @string); UserInfo userInfo = DbHelper.ExecuteModel <UserInfo>(new SqlParam[] { sqlParam }); if (userInfo.id == 0) { this.ShowErr("输入的邮件地址不存在。"); } else { string text = WMSUtils.CreateAuthStr(20); SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeSet("authflag", 2), DbHelper.MakeSet("authstr", text), DbHelper.MakeSet("authtime", DbUtils.GetDateTime()), DbHelper.MakeAndWhere("email", @string) }; DbHelper.ExecuteUpdate <UserInfo>(sqlparams); string newValue = string.Concat(new string[] { "<pre style=\"width:100%;word-wrap:break-word\"><a href=\"http://", this.domain, this.rawpath, "getpass.aspx?authstr=", text, "\" target=\"_blank\">http://", this.domain, this.rawpath, "getpass.aspx?authstr=", text, "</a></pre>" }); MsgTempInfo msgTemplate = MsgTempBll.GetMsgTemplate("email_resetpassword"); msgTemplate.content = msgTemplate.content.Replace("【用户名】", userInfo.username).Replace("【邮箱帐号】", @string).Replace("【激活链接】", newValue); Email.Send(@string, msgTemplate.name, msgTemplate.content); base.AddMsg("密码重置邮件已发送到您的邮箱"); } } } }
// Token: 0x0600008B RID: 139 RVA: 0x0000BE3C File Offset: 0x0000A03C protected override void View() { string @string = FPRequest.GetString("uid"); this.uname = this.GetUserName(@string); if (@string == "") { this.reurl = "usermanage.aspx"; } if (this.ispost) { string string2 = FPRequest.GetString("username"); if (string2 == "") { this.ShowErr("充值用户名不能为空"); return; } this.credits = FPRequest.GetInt("credits"); if (this.credits == 0) { this.ShowErr("充值积分必须大于零或小于零"); return; } string text = FPRequest.GetString("note"); if (text == "") { text = "用户积分充值"; } foreach (string value in FPUtils.SplitString(string2)) { SqlParam sqlParam = DbHelper.MakeAndWhere("username", value); UserInfo userInfo = DbHelper.ExecuteModel <UserInfo>(new SqlParam[] { sqlParam }); if (userInfo.id <= 0) { this.ShowErr("对不起,该充值用户不存在"); return; } UserBll.UpdateUserCredit(new CreditInfo { uid = userInfo.id, name = text, type = 1, credits = this.credits, doid = this.userid, doname = this.username }); } } base.SaveRightURL(); }
// Token: 0x0600006B RID: 107 RVA: 0x00009964 File Offset: 0x00007B64 protected override void View() { if (this.ispost) { if (this.action == "delete") { string @string = FPRequest.GetString("chkdel"); foreach (string text in @string.Split(new char[] { ',' })) { if (text != "" && Directory.Exists(FPUtils.GetMapPath(this.webpath + "sites/" + text))) { Directory.Delete(FPUtils.GetMapPath(this.webpath + "sites/" + text), true); } } } else if (this.action == "create") { string string2 = FPRequest.GetString("sitepath"); string message = ""; if (!SiteBll.CreateSite(string2, out message)) { this.ShowErr(message); return; } base.AddMsg("站点编译成功!"); } else if (this.action == "download") { string string3 = FPRequest.GetString("sitepath"); SiteConfig siteInfo = SiteConfigs.GetSiteInfo(string3); string str = ((siteInfo.name != "") ? siteInfo.name : siteInfo.sitepath) + "_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".fpsite"; using (FPZip fpzip = new FPZip()) { DirectoryInfo directoryInfo = new DirectoryInfo(FPUtils.GetMapPath(this.webpath + "sites/" + string3)); foreach (DirectoryInfo directoryInfo2 in directoryInfo.GetDirectories()) { fpzip.AddDirectory(directoryInfo2.FullName); } foreach (FileInfo fileInfo in directoryInfo.GetFiles()) { fpzip.AddFile(fileInfo.FullName, ""); } fpzip.ZipDown(FPUtils.UrlEncode(str)); } } } this.sitelist = SiteBll.GetSiteList(); base.SaveRightURL(); }