Song.Site/Manage/Panel/Authorization.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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;
namespace Song.Site.Manage.Panel
{
public partial class Authorization : Extend.CustomPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
WeiSha.Common.License lic = WeiSha.Common.License.Value;
//是否获得授权
if (lic.IsLicense)
{
plYesLic.Visible = true;
plNoLic.Visible = false;
//当前版本
lbVersion.Text = lic.VersionName;
//授权类型,授权主体,起始时间
lbLicType.Text = lic.Type.ToString();
if ((int)lic.Type == 1 || (int)lic.Type == 2)
lbLicInfo.Text = lic.Serial;
else
lbLicInfo.Text = lic.Serial + ":" + lic.Port;
lbStartTime.Text = lic.StartTime.ToString("yyyy-MM-dd");
lbEndTime.Text = lic.EndTime.ToString("yyyy-MM-dd");
}
else
{
//没有获得授权
plYesLic.Visible = false;
plNoLic.Visible = true;
rblActivType_SelectedIndexChanged(null, null);
}
//当前版本的限制
rptLimit.DataSource = lic.LimitItems;
rptLimit.DataBind();
}
}
/// <summary>
/// 激活码类型
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void rblActivType_SelectedIndexChanged(object sender, EventArgs e)
{
int type = Convert.ToInt16(rblActivType.SelectedValue);
if (type == 1) lbActivCode.Text = WeiSha.Common.Activationcode.CodeForCPU;
if (type == 2) lbActivCode.Text = WeiSha.Common.Activationcode.CodeForHardDisk;
if (type == 3) lbActivCode.Text = WeiSha.Common.Activationcode.CodeForIP;
后面还有 5 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
