cs/PageBase.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
namespace OI
{
/// <summary>
/// PageBase 的摘要说明。
/// </summary>
public class PageBase :System.Web.UI.Page
{
private string moduleID;
public string ModuleID
{
get
{
return this.moduleID;
}
set
{
if(value!=null)
{
this.moduleID=OI.Modules.String.GenSafeChars(value);
//this.ValidateUser(this.moduleID);
}
}
}
public PageBase()
{
}
public PageBase(string ModuleID)
{
this.ModuleID=ModuleID;
//this.ValidateUser(this.ModuleID);
}
protected void PageBase_Init(object sender,System.EventArgs e)
{
string URL="HTTP://"+Request.ServerVariables["HTTP_HOST"]+Request.ApplicationPath+"/userpass.aspx";
if(Session["userid"]==null)
{
Response.Write("<script>alert('使用超时,请用户重新登陆!');window.location.href='"+URL+"';</script>") ;
}
}
protected override void OnInit(EventArgs e)
{
this.Error+=new EventHandler(PageBase_Error);
this.Init+=new EventHandler(PageBase_Init);
base.OnInit (e);
}
private void PageBase_Error(object sender, System.EventArgs e)
{
System.Exception err = Server.GetLastError();
if(!(err is AppException))
{
string errmsg=err.Message+"\n\r"+err.StackTrace;
if(err.InnerException !=null)
后面还有 24 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。