%@ Language=VBScript %>
<% Option Explicit %>
<%
'-------------------------------------------------------------------------
' Log_prop.asp: Serves in Editing Log Properties.
' Copyright (c) Microsoft Corporation. All rights reserved.
'-------------------------------------------------------------------------
%>
<% '-------------------------------------------------------------------------
'Global Variables
'-------------------------------------------------------------------------
Dim page 'Variable that receives the output page object when
'creating a page
Dim rc 'Return value for CreatePage
'wmi constant used to save the wmi settings
Const WMICONST="131072"
Const UINT_FORMAT=4294967296
'-------------------------------------------------------------------------
'Global Form Variables
'-------------------------------------------------------------------------
Dim F_strEvent 'To get the title from previous page
Dim F_strSize 'LogFile size
Dim F_strCreated 'Log File Created date
Dim F_strModified 'Log File modified date
Dim F_strAccessed 'Log file last accessed date
Dim F_strMaxLogsize 'log file maximum size
Dim F_strOverwritePolicy 'Overwrite policy
Dim F_strOverwriteOutdated 'Overwrite outdated policy
Dim arrTitle(1)
'getting the type of log from previous page
F_strEvent=Request.QueryString("Title")
'Localisation of page title
arrTitle(0) = GetLocalizationTitle(F_strEvent)
L_PAGETITLE_PROP_TEXT = SA_GetLocString("event.dll", "403F0033", arrTitle)
'Create a Property Page
Call SA_CreatePage(L_PAGETITLE_PROP_TEXT,"",PT_PROPERTY,page)
Call SA_ShowPage(page)
'-------------------------------------------------------------------------
'Function: OnInitPage()
'Description: Called to signal first time processing for this page.
' Use this method to do first time initialization tasks
'Input Variables: PageIn,EventArg
'Output Variables: None
'Returns: True/False
'Global Variables: None
'-------------------------------------------------------------------------
Public Function OnInitPage(ByRef PageIn,ByRef EventArg)
'Serves in Getting the Properties of selected Log
OnInitPage = GetLogProp()
End Function
'-------------------------------------------------------------------------
'Function: OnServePropertyPage()
'Description: Called when the page needs to be served.Use this
' method to serve content
'Input Variables: PageIn,EventArg
'Output Variables: None
'Returns: True/False
'Global Variables: None
'-------------------------------------------------------------------------
Public Function OnServePropertyPage(ByRef PageIn,ByRef EventArg)
Dim oEncoder
Set oEncoder = new CSAEncoder
Call ServeCommonJavaScript()
%>
<%=oEncoder.EncodeElement(L_SIZE_TEXT)%>
|
|
<%=oEncoder.EncodeElement(F_strSize)%>
|
<%=oEncoder.EncodeElement(L_CREATEDDATE_TEXT)%>
|
|
<%=oEncoder.EncodeElement(F_strCreated)%>
|
<%=oEncoder.EncodeElement(L_MODIFIEDDATE_TEXT)%>
|
|
<%=oEncoder.EncodeElement(F_strModified)%>
|
<%=oEncoder.EncodeElement(L_ACCESSEDDATE_TEXT)%>
|
|
<%=oEncoder.EncodeElement(F_strAccessed)%>
|
|
<%=oEncoder.EncodeElement(L_LOGSIZE_TEXT)%>
|
|
  |
<%=oEncoder.EncodeElement(L_WHENMAXIMUMREACHED_TEXT)%>
|
  |
|
|
|