1 Star 3 Fork 0

Admin/MyWebSms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.aspx.cs 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
Ai鹿子 提交于 2022-04-24 10:09 . 01
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class index : WebPage
{
public string g_Cookies = "";
public string g_Power = "";
public string g_PID = "";
public string g_Name = "";
public string getUrl = "";
protected void Page_Load(object sender, EventArgs e)
{
this.VerifyPage();
try
{
g_Cookies = HBS.Common.Encryption.Decrypt(Request.Cookies["UserName"].Value);
g_Name = CurrentUser.TrueName;
g_Power = CurrentUser.UserType.ToString();
g_PID = CurrentUser.UserPID.ToString();
if (g_PID == "-1" && g_Power == "1")
{
WebKey wk = new WebKey();
if (CurrentUser.UserName == wk.MgrUser())
{
g_Power = "消息专用";
}
else
{
g_Power = "管理员";
}
}
else if ((g_PID != "-1" && g_Power == "1"))
{
g_Power = "代理商";
}
else if ((g_PID != "-1" && g_Power == "0"))
{
g_Power = "终端用户";
}
lblCurrentCount.InnerText = CurrentUser.CurrentCount.ToString();
lblSendCount.InnerText = CurrentUser.SendCount.ToString();
if (g_PID == "-1")
{
getUrl = "control.aspx";
}
else
{
getUrl = "send.aspx";
}
}
catch { }
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/huanghe_1_0/my-web-sms.git
git@gitee.com:huanghe_1_0/my-web-sms.git
huanghe_1_0
my-web-sms
MyWebSms
master

搜索帮助