/******************************************************************************* * iNethinkCMS - 网站内容管理系统 * Copyright (C) 2012-2013 inethink.com * * @author jackyang <69991000@qq.com> * @website http://cms.inethink.com * @version 1.3.6.0 (2013-08-14) * * This is licensed under the GNU LGPL, version 3.0 or later. * For details, see: http://www.gnu.org/licenses/gpl-3.0.html *******************************************************************************/ using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using iNethinkCMS.Command; using iNethinkCMS.Web.UI; using System.Collections.Specialized; using System.Text.RegularExpressions; namespace iNethinkCMS.Web.admin { public partial class _main_left :Admin_BasePage { public string vMenuName = ""; public string vMenuCon = ""; protected void Page_Load(object sender, EventArgs e) { CheckUserPower("login"); string vMenu = Request["menu"]; if (vMenu == null || vMenu.Length < 1) { vMenu = "news"; } //System.Environment.NewLine switch (vMenu) { case "news": if (this.SysLoginUserType == 1) { vMenuName = "内容管理"; vMenuCon = "添加内容"; vMenuCon += "内容管理"; if (this.SysLoginUserPower.IndexOf("f,") >=0) { vMenuCon += "
"; vMenuCon += "留言管理"; } if (this.SysLoginUserPower.IndexOf("g,") >= 0) { this.vMenuCon += ""; this.vMenuCon += "评论管理"; } if (this.SysLoginUserPower.IndexOf("h,") >= 0) { this.vMenuCon += ""; this.vMenuCon += "投票管理"; } } else { this.vMenuName = "用户中心"; if (this.SysRegisteredUsersIsManage) { vMenuCon = "添加内容"; vMenuCon += "内容管理"; if (this.SysLoginUserPower.IndexOf("f,") >= 0) { vMenuCon += ""; vMenuCon += "留言管理"; } if (this.SysLoginUserPower.IndexOf("g,") >= 0) { this.vMenuCon += "评论管理"; } if (this.SysLoginUserPower.IndexOf("h,") >= 0) { this.vMenuCon += "投票管理"; } vMenuCon += ""; } this.vMenuCon += "帐号管理"; if (this.siteConfig.UserManagedCenters.Trim().Length > 3) { try { string[] userMenuValues = this.siteConfig.UserManagedCenters.Trim().Split('|'); foreach (string usrMenuValue in userMenuValues) { if (usrMenuValue.Trim().Length > 2) { string[] mValues = usrMenuValue.Trim().Split(':'); if (mValues.Length == 4) { if (mValues[3].Trim() == "1") { this.vMenuCon += ""; } NameValueCollection nvcList = new NameValueCollection(); string baseUrl = ""; ParseUrl(mValues[1].Trim(), out baseUrl, out nvcList); if (this.SysRegisteredUsersChannelPower.IndexOf(nvcList["pcid"] + ",") < 0) { this.vMenuCon += "" + mValues[0].Trim() + ""; } else { this.vMenuCon += "" + mValues[0].Trim() + ""; } } } } } catch (Exception ex){ Response.Write(ex.Message); } } } break; case "column": vMenuName = "栏目&专题"; vMenuCon = "添加栏目"; vMenuCon += "栏目管理"; vMenuCon += ""; vMenuCon += "专题管理"; break; case "module": vMenuName = "扩展模块"; vMenuCon += "友情连接"; vMenuCon += "数据字典"; vMenuCon += ""; vMenuCon += "插件管理"; vMenuCon += ""; vMenuCon += "客户资料"; break; case "label": vMenuName = "标签&页面"; vMenuCon = "自定义标签"; vMenuCon += ""; vMenuCon += "自定义页面"; break; case "sys": vMenuName = "系统设置"; vMenuCon = "系统用户管理"; vMenuCon += ""; vMenuCon += "上传文件管理"; vMenuCon += ""; vMenuCon += "缓存管理"; vMenuCon += ""; vMenuCon += "模板管理"; vMenuCon += "SEO优化"; vMenuCon += "系统设置"; break; } } ///