温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:DotNetNuke04.08.03免安装版项目源码
当前文件路径:DNN/Website/App_Code/Global.asax.vb

1' 2
' DotNetNuke?- http://www.dotnetnuke.com 3
' Copyright (c) 2002-2008 4
' by DotNetNuke Corporation 5
' 6
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 7
' documentation files (the "Software"), to deal in the Software without restriction, including without limitation 8
' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 9
' to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10
' 11
' The above copyright notice and this permission notice shall be included in all copies or substantial portions 12
' of the Software. 13
' 14
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 15
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 16
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 17
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 18
' DEALINGS IN THE SOFTWARE. 19
' 20
Imports System.Security 21
Imports System.Security.Principal 22
Imports System.Threading 23
Imports System.Web.Security 24
Imports System.IO 25
26
Imports DotNetNuke.Security.Roles 27
Imports DotNetNuke.Services.Log.EventLog 28
Imports DotNetNuke.Services.Upgrade 29
30
31
Namespace DotNetNuke.Common 32
33
''' ----------------------------------------------------------------------------- 34
''' Project : DotNetNuke 35
''' Class : Global 36
''' 37
''' ----------------------------------------------------------------------------- 38
''' <summary> 39
''' 40
''' </summary> 41
''' <remarks> 42
''' </remarks> 43
''' <history> 44
''' [sun1] 1/18/2004 Created 45
''' </history> 46
''' ----------------------------------------------------------------------------- 47
Public Class [Global] 48
Inherits System.Web.HttpApplication 49
50
Application Event Handlers 97
98
Private Sub Global_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) Handles Me.BeginRequest 99
Dim app As HttpApplication = CType(sender, HttpApplication) 100
Dim Request As HttpRequest = app.Request 101
102
'run schedule if in Request mode 103
Initialize.RunSchedule(Request) 104
105
End Sub 106
107
End Class 108
109
End Namespace 110






