// 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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(); }
// Token: 0x0600001A RID: 26 RVA: 0x00003590 File Offset: 0x00001790 protected override void View() { if (this.ispost) { if (this.action == "delete") { DbHelper.ExecuteDelete <DesktopInfo>(new List <SqlParam> { DbHelper.MakeAndWhere("id", WhereType.In, FPRequest.GetString("chkdel")) }.ToArray()); } base.Response.Redirect("desktopmanage.aspx"); } this.desktoplist = DbHelper.ExecuteList <DesktopInfo>(OrderBy.ASC); base.SaveRightURL(); }
// Token: 0x06000040 RID: 64 RVA: 0x000062DC File Offset: 0x000044DC protected override void View() { this.examinfo = DbHelper.ExecuteModel <ExamInfo>(this.examid); if (this.examinfo.id == 0) { this.ShowErr("对不起,该试卷不存在或已被删除。"); } else { this.sortid = this.examinfo.sortid; this.sortinfo = SortBll.GetSortInfo(this.sortid); if (this.ispost) { string a = FPRequest.GetString("action").ToLower(); string @string = FPRequest.GetString("chkid"); if (a == "delete") { if (DbHelper.ExecuteDelete <ExamResult>(@string) > 0) { SqlParam sqlParam = DbHelper.MakeAndWhere("resultid", WhereType.In, @string); DbHelper.ExecuteDelete <ExamResultTopic>(new SqlParam[] { sqlParam }); } } else if (a == "change") { SqlParam[] sqlparams = new SqlParam[] { DbHelper.MakeSet("ip", ""), DbHelper.MakeSet("mac", ""), DbHelper.MakeAndWhere("id", WhereType.In, @string) }; DbHelper.ExecuteUpdate <ExamResult>(sqlparams); } } SqlParam[] sqlparams2 = new SqlParam[] { DbHelper.MakeAndWhere("examid", this.examid), DbHelper.MakeAndWhere("status", 0) }; OrderByParam orderby = DbHelper.MakeOrderBy("id", OrderBy.DESC); this.examresultlist = DbHelper.ExecuteList <ExamResult>(orderby, sqlparams2); base.SaveRightURL(); } }
// Token: 0x06000037 RID: 55 RVA: 0x00005A50 File Offset: 0x00003C50 protected override void View() { if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); return; } if (this.action == "delete") { DbHelper.ExecuteDelete <SysLogInfo>(FPRequest.GetString("chkdel")); } } this.sysloglist = DbHelper.ExecuteList <SysLogInfo>(this.pager); base.SaveRightURL(); }
// Token: 0x0600030F RID: 783 RVA: 0x0000CBF0 File Offset: 0x0000ADF0 protected override void View() { if (this.authstr != "") { List <SqlParam> list = new List <SqlParam>(); list.Add(DbHelper.MakeAndWhere("authstr", this.authstr)); list.Add(DbHelper.MakeAndWhere("authflag", 2)); if (DbConfigs.DbType == DbType.Access) { list.Add(DbHelper.MakeAndWhere("DATEDIFF(\"m\",[authtime],NOW())<=30", WhereType.Custom, "")); } else { list.Add(DbHelper.MakeAndWhere("DateDiff(m,[authtime],getdate())<=30", WhereType.Custom, "")); } UserInfo userInfo = DbHelper.ExecuteModel <UserInfo>(list.ToArray()); if (userInfo.id == 0) { this.ShowErr("用户验证码过期或不存在。"); } else if (this.ispost) { string @string = FPRequest.GetString("password"); string string2 = FPRequest.GetString("repeat"); if (@string != string2) { this.ShowErr("两次输入密码不一致。"); } else { DbHelper.ExecuteUpdate <UserInfo>(new List <SqlParam> { DbHelper.MakeSet("password", FPUtils.MD5(@string)), DbHelper.MakeSet("authflag", 0), DbHelper.MakeSet("authstr", ""), DbHelper.MakeAndWhere("id", userInfo.id) }.ToArray()); base.AddMsg("密码更改成功"); } } } else { this.ShowErr("您当前的修改密码链接已无效。"); } }
// Token: 0x060000A6 RID: 166 RVA: 0x0000D978 File Offset: 0x0000BB78 protected override void View() { if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); return; } if (this.action == "delete") { DbHelper.ExecuteDelete <Permission>(FPRequest.GetString("chkdel")); } } this.permissionlist = DbHelper.ExecuteList <Permission>(OrderBy.ASC); base.SaveRightURL(); }
// Token: 0x06000060 RID: 96 RVA: 0x000087FC File Offset: 0x000069FC protected override void View() { this.filename = Path.GetFileName(this.m_path); string mapPath = FPUtils.GetMapPath(string.Concat(new string[] { this.webpath, "sites/", this.m_sitepath, "/", this.m_path })); if (File.Exists(mapPath)) { if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); } else { this.content = HttpUtility.HtmlDecode(FPRequest.GetString("content")); using (FileStream fileStream = new FileStream(mapPath, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { byte[] bytes = Encoding.UTF8.GetBytes(this.content); fileStream.Write(bytes, 0, bytes.Length); fileStream.Close(); } base.Response.Redirect("sitefileedit.aspx?sitepath=" + this.m_sitepath + "&path=" + this.m_path); } } else { using (StreamReader streamReader = new StreamReader(mapPath, Encoding.UTF8)) { this.content = streamReader.ReadToEnd(); streamReader.Close(); } this.m_path = Path.GetDirectoryName(this.m_path).Replace("\\", "/"); this.content = HttpUtility.HtmlEncode(this.content); base.SaveRightURL(); } } }
// Token: 0x060000AC RID: 172 RVA: 0x0000DBA8 File Offset: 0x0000BDA8 protected override void View() { if (this.ispost) { if (this.action == "delete") { foreach (int num in FPUtils.SplitInt(FPRequest.GetString("chkdel"))) { if (num > 5) { DbHelper.ExecuteDelete <RoleInfo>(num); } } } } this.rolelist = DbHelper.ExecuteList <RoleInfo>(OrderBy.ASC); base.SaveRightURL(); }
// Token: 0x06000062 RID: 98 RVA: 0x000089F0 File Offset: 0x00006BF0 protected override void View() { if (this.m_path.StartsWith("/")) { this.m_path = this.m_path.Substring(1, this.m_path.Length - 1); } if (this.m_path.IndexOf("/") >= 0) { this.reurl = "sitefilemanage.aspx?sitepath=" + this.m_sitepath + "&path=" + this.m_path.Substring(0, this.m_path.LastIndexOf("/")); } else if (this.m_path == "") { this.reurl = "sitemanage.aspx"; } else { this.reurl = "sitefilemanage.aspx?sitepath=" + this.m_sitepath; } if (!this.m_path.EndsWith("/")) { this.m_path += "/"; } if (this.ispost) { if (!this.isperm) { this.ShowErr("对不起,您没有权限操作。"); return; } string @string = FPRequest.GetString("fileid"); foreach (string str in @string.Split(new char[] { ',' })) { string string2 = FPRequest.GetString("type" + str); string string3 = FPRequest.GetString("file" + str); this.Delete(string3, string2); } } this.filelist = this.GetFileList(this.m_sitepath, this.m_path); base.SaveRightURL(); }
// Token: 0x06000044 RID: 68 RVA: 0x00006368 File Offset: 0x00004568 protected override void View() { if (this.id > 0) { this.taskinfo = DbHelper.ExecuteModel <TaskInfo>(this.id); } if (this.ispost) { string @string = FPRequest.GetString("name"); string string2 = FPRequest.GetString("type"); if (string.IsNullOrEmpty(@string)) { this.ShowErr("计划任务名称不能为空!"); return; } this.taskinfo = FPRequest.GetModel <TaskInfo>(this.taskinfo); if (this.taskinfo.key == "") { this.taskinfo.key = Guid.NewGuid().ToString(); } int @int = FPRequest.GetInt("timeofday"); if (@int == 1) { this.taskinfo.timeofday = FPRequest.GetInt("hour") * 60 + FPRequest.GetInt("minute"); } else { this.taskinfo.timeofday = -1; this.taskinfo.minutes = FPRequest.GetInt("timeserval"); } if (this.taskinfo.id > 0) { DbHelper.ExecuteUpdate <TaskInfo>(this.taskinfo); } else { DbHelper.ExecuteInsert <TaskInfo>(this.taskinfo); } TaskManager.Reset(); base.Response.Redirect("taskmanage.aspx"); } base.SaveRightURL(); }
// Token: 0x060000BC RID: 188 RVA: 0x0000E600 File Offset: 0x0000C800 protected override void View() { if (this.ispost) { if (this.action == "delete") { DbHelper.ExecuteDelete <UserGrade>(FPRequest.GetString("chkdel")); } else if (this.action == "reset") { this.gradelist = DbHelper.ExecuteList <UserGrade>(OrderBy.ASC); string text = ""; foreach (UserGrade userGrade in this.gradelist) { if (text != "") { text += "|"; } text += string.Format("UPDATE [{0}WMS_UserInfo] SET [gradeid]={1} WHERE [exp]>={2} AND [exp]<{3}", new object[] { DbConfigs.Prefix, userGrade.id, userGrade.explower, userGrade.expupper }); } if (text != "") { text = DbHelper.ExecuteSql(text); if (text != "") { this.ShowErr(text); return; } } base.ResetUser(); base.Response.Redirect(this.pagename); } } this.gradelist = DbHelper.ExecuteList <UserGrade>(OrderBy.ASC); base.SaveRightURL(); }