%@ Language=VBScript CODEPAGE=65001 %> <% '+------------------------------------------------------------------------- ' ' Microsoft Windows Media ' Copyright (C) Microsoft Corporation. All rights reserved. ' ' File: PubPoint_Props.asp ' ' Contents: Implementation of Properties Tab at the publishing point level ' '-------------------------------------------------------------------------- BeginErrorHandling ClearError ConnectToServer ConnectToPubPoint Const SHOWING_GENERAL = 0 Const SHOWING_PLUGINS = 1 Const SHOWING_LIMITS = 2 Const SHOWING_CACHEPROXYMGMT = 3 Const SHOWING_NETWORKING = 4 Const SHOWING_CREDENTIALS = 5 Const SHOWING_WIRELESS = 6 Dim strCategory Dim strEncodedInstance Dim strDecodedInstance Dim dwQueryStringPluginIndex Dim strPPStatus Dim bBroadcastPubPoint Dim bCacheProxyPubPoint Dim bBroadcastPPStarted Dim dwPPStatus Dim dwPPType Dim iPluginCount Dim strSubCategory Dim iFormSelect Dim strStartOnFirstConnectChecked Dim strOp Dim bPluginDisabledError Dim bPluginRemovedError Dim bPluginRemovedErrorEnable Dim bPluginRenamedError Dim bPluginDuplicateError Dim dwDisplayMode Dim blnRunningOnWhistlerAdvServer Dim iGeneral Dim iAuthorizers Dim iLogging Dim iEvent Dim iAuthen Dim iLimits Dim iWireless Dim iPlXform Dim iCPMgmt Dim iArchivers Dim iMCast Dim iNetworking Dim iCredentials Dim bDriveUpdateToTreeView Dim bCheckedAnItem Dim strLeft Dim strRight Dim objPPLimits Dim strError Dim strOnLoadProc Dim dwNumPluginsDisplayed Dim dwSizeLimText Dim strPlayerConnections Dim strDistConnections Dim strAggPlayerBW Dim strDistAggBW Dim strPlayerBW Dim strDistBW Dim strRapidStartBW Dim strDeliveryRate Dim bAllowPlayerCaching Dim bAllowStreamSplitting Dim bAllowAutoStart Dim bAllowDistributionCaching Dim bAllowDirBrowse Dim bAllowDownload Dim bAllowStartupProfile Dim bStartupProfileSupported Dim bAllowVrootStart Dim bVrootStartSupported Dim strCurrentCheckedPluginName Dim bCurSelCanBeDuplicated Dim bCurSelCanBeRemoved Dim bCurSelSupportsEnableDisable Dim bCurSelSupportsProperties Dim bCurSelEnabled Dim bCurSelIsActiveScriptNoFilename '//////////////////////////////////////////////////////////////// Function GenExpirationString( strValue ) GenExpirationString = Replace( L_EXPIREIN_TEXT, "___", Server.HTMLEncode( trim( strValue ) ), 1 ) End Function '//////////////////////////////////////////////////////////////// Sub Main strCurrentCheckedPluginName = "plugin_0" bCurSelCanBeDuplicated = TRUE bCurSelCanBeRemoved = TRUE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = FALSE bCurSelEnabled = FALSE bCurSelIsActiveScriptNoFilename = FALSE on error resume next dwSizeLimText = CalcLenOfUnlimited bDriveUpdateToTreeView = FALSE if ( 0 = strcomp( "true", RemoveDangerousCharacters( qs("s") ), vbTextCompare ) ) then bDriveUpdateToTreeView = TRUE end if if( empty = g_objPubPoint ) then Server.Transfer( "pubpoint_collection.asp" ) end if dwPPType = g_objPubPoint.Type if( 0 <> Len( trim( qs( "propChange" ) ) ) ) then if( 0 < Len( trim( qs( "playerCaching" ) ) ) ) then if( 0 = trim( qs( "playerCaching" ) ) ) then g_objPubPoint.AllowPlayerSideDiskCaching = FALSE else g_objPubPoint.AllowPlayerSideDiskCaching = TRUE end if elseif( 0 < Len( trim( qs( "distCaching" ) ) ) ) then if( 0 = trim( qs( "distCaching" ) ) ) then g_objPubPoint.AllowContentCaching = FALSE else g_objPubPoint.AllowContentCaching = TRUE end if elseif( 0 < Len( trim( qs( "dirBrowsing" ) ) ) ) then if( 0 = trim( qs( "dirBrowsing" ) ) ) then g_objPubPoint.EnableClientWildcardDirectoryAccess = FALSE else g_objPubPoint.EnableClientWildcardDirectoryAccess = TRUE end if elseif( 0 < Len( trim( qs( "allowDownloading" ) ) ) ) then if( 0 = trim( qs( "allowDownloading" ) ) ) then g_objPubPoint.EnableDownload = FALSE else g_objPubPoint.EnableDownload = TRUE end if elseif( 0 < Len( trim( qs( "allowStreamSplitting" ) ) ) ) then if( 0 = trim( qs( "allowStreamSplitting" ) ) ) then g_objPubPoint.AllowStreamSplitting = FALSE else g_objPubPoint.AllowStreamSplitting = TRUE end if elseif( 0 < Len( trim( qs( "allowAutoStart" ) ) ) ) then if( 0 = trim( qs( "allowAutoStart" ) ) ) then g_objPubPoint.AllowClientToStartAndStop = FALSE else g_objPubPoint.AllowClientToStartAndStop = TRUE end if elseif( 0 < Len( trim( qs( "allowStartupProfile" ) ) ) ) then if( 0 = trim( qs( "allowStartupProfile" ) ) ) then g_objPubPoint.AllowStartupProfile = FALSE else g_objPubPoint.AllowStartupProfile = TRUE end if elseif( 0 < Len( trim( qs( "allowVrootStart" ) ) ) ) then if( 0 = trim( qs( "allowVrootStart" ) ) ) then g_objPubPoint.EnableStartVRootOnServiceStart = FALSE else g_objPubPoint.EnableStartVRootOnServiceStart = TRUE end if end if Response.Redirect( "pubpoint_props.asp?server=" & g_strQueryStringServer & "&ppID=" & g_strPubPointID & "&category=" & RemoveDangerousCharacters( qs("category" ) ) ) Response.Flush end if bPluginDisabledError = FALSE bPluginRemovedError = FALSE bPluginRemovedErrorEnable = FALSE bPluginRenamedError = FALSE bPluginDuplicateError = FALSE strSubCategory = "" iFormSelect = -1 ' ' Determine the publishing point type ' bCacheProxyPubPoint = FALSE if ( WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST = dwPPType ) or ( WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND = dwPPType ) then bCacheProxyPubPoint = TRUE end if bBroadcastPubPoint = FALSE if ( WMS_PUBLISHING_POINT_TYPE_BROADCAST = dwPPType ) or ( WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST = dwPPType ) then bBroadcastPubPoint = TRUE bAllowStreamSplitting = g_objPubPoint.AllowStreamSplitting bAllowAutoStart = g_objPubPoint.AllowClientToStartAndStop dwPPStatus = g_objPubPoint.BroadcastStatus else bAllowDistributionCaching = g_objPubPoint.AllowContentCaching bAllowDirBrowse = g_objPubPoint.EnableClientWildcardDirectoryAccess bAllowDownload = g_objPubPoint.EnableDownload dwPPStatus = g_objPubPoint.Status end if bAllowPlayerCaching = g_objPubPoint.AllowPlayerSideDiskCaching bAllowingConnections = g_objPubPoint.AllowClientsToConnect bStartupProfileSupported = true on error resume next bAllowStartupProfile = g_objPubPoint.AllowStartupProfile if( 0 <> err.number ) then bStartupProfileSupported = false err.Clear end if bVrootStartSupported = true on error resume next bAllowVrootStart = g_objPubPoint.EnableStartVRootOnServiceStart if( 0 <> err.number ) then bVrootStartSupported = false err.Clear end if if( empty = g_objServer ) then Server.Transfer( "include/server_stopped.asp" ) end if on error resume next dwProductType = g_objServer.OSProductType if( 0 <> err.number ) then blnRunningOnWhistlerAdvServer = FALSE err.Clear else blnRunningOnWhistlerAdvServer = CBool( WMS_OS_PRODUCT_ADVANCED and dwProductType ) end if on error resume next iGeneral = 0 iAuthorizers = 1 iLogging = 2 iEvent = 3 iAuthen = 4 iLimits = 5 iWireless = -1 iPlXform = -1 iCPMgmt = -1 iArchivers = -1 iMCast = -1 iCredentials = -1 iNetworking = -1 if( blnRunningOnWhistlerAdvServer ) then iWireless = 6 if( FALSE = bCacheProxyPubPoint ) then iPlXform = 7 iCPMgmt = 8 end if if( TRUE = bBroadcastPubPoint ) then if( FALSE = bCacheProxyPubPoint ) then iArchivers = 9 iMCast = 10 iCredentials = 11 iNetworking = 12 end if else if( FALSE = bCacheProxyPubPoint ) then iCredentials = 9 end if end if else iPlXform = 6 iCPMgmt = 7 if( TRUE = bBroadcastPubPoint ) then iArchivers = 8 iCredentials = 9 iNetworking = 10 else iCredentials = 8 end if end if ' ' Process the category ' dwDisplayMode = SHOWING_PLUGINS on error resume next rem Set the category so that we can implement a default strCategory = RemoveDangerousCharacters( qs( "category" ) ) strEncodedInstance = qs( "instance" ) strDecodedInstance = SafeUnescape( strEncodedInstance ) strPluginIndex = qs( "pluginIndex" ) if( 7 < Len( strPluginIndex ) ) then dwQueryStringPluginIndex = CInt( Right( strPluginIndex, Len( strPluginIndex ) - 8 + 1 ) ) else dwQueryStringPluginIndex = -1 end if if( "" = strCategory ) then strCategory = CAT_GEN end if Select Case strCategory case CAT_GEN iFormSelect = iGeneral dwDisplayMode = SHOWING_GENERAL bCurSelCanBeDuplicated = FALSE bCurSelCanBeRemoved = FALSE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = FALSE case CAT_AUTHORIZE iFormSelect = iAuthorizers Set g_objPluginCollection = g_objPubPoint.EventHandlers strSubCategory = AUTHORIZE_SUBCAT bCurSelSupportsEnableDisable = TRUE case CAT_LOGGING iFormSelect = iLogging Set g_objPluginCollection = g_objPubPoint.EventHandlers strSubCategory = LOGGING_SUBCAT bCurSelSupportsEnableDisable = TRUE case CAT_EVENT iFormSelect = iEvent Set g_objPluginCollection = g_objPubPoint.EventHandlers bCurSelSupportsEnableDisable = TRUE case CAT_AUTHEN iFormSelect = iAuthen Set g_objPluginCollection = g_objPubPoint.Authenticators bCurSelSupportsEnableDisable = TRUE case CAT_LIM iFormSelect = iLimits dwDisplayMode = SHOWING_LIMITS bCurSelCanBeDuplicated = FALSE bCurSelCanBeRemoved = FALSE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = FALSE case CAT_WIRELESS if( blnRunningOnWhistlerAdvServer ) then iFormSelect = iWireless dwDisplayMode = SHOWING_WIRELESS bCurSelSupportsEnableDisable = TRUE bCurSelSupportsProperties = TRUE end if case CAT_PLAYXFORM iFormSelect = iPlXform Set g_objPluginCollection = g_objPubPoint.EventHandlers strSubCategory = PLAYLISTXFORM_SUBCAT bCurSelSupportsEnableDisable = TRUE case CAT_CACHEPROXYMGMT iFormSelect = iCPMgmt dwDisplayMode = SHOWING_CACHEPROXYMGMT bCurSelCanBeDuplicated = FALSE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = TRUE case CAT_ARCH if( FALSE = bCacheProxyPubPoint ) and ( TRUE = bBroadcastPubPoint ) then iFormSelect = iArchivers Set g_objPluginCollection = g_objPubPoint.BroadcastDataSinks strSubCategory = ARCHIVER_SUBCAT bCurSelSupportsEnableDisable = TRUE end if case CAT_MCAST if( FALSE = bCacheProxyPubPoint ) and blnRunningOnWhistlerAdvServer and bBroadcastPubPoint then iFormSelect = iMCast Set g_objPluginCollection = g_objPubPoint.BroadcastDataSinks strSubCategory = MULTICAST_SUBCAT bCurSelSupportsEnableDisable = TRUE end if case CAT_CRED iFormSelect = iCredentials dwDisplayMode = SHOWING_CREDENTIALS bCurSelCanBeDuplicated = FALSE bCurSelCanBeRemoved = FALSE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = TRUE case CAT_NET iFormSelect = iNetworking dwDisplayMode = SHOWING_NETWORKING bCurSelCanBeDuplicated = FALSE bCurSelCanBeRemoved = FALSE bCurSelSupportsEnableDisable = FALSE bCurSelSupportsProperties = TRUE case Else iFormSelect = iGeneral bCurSelCanBeDuplicated = FALSE bCurSelCanBeRemoved = FALSE bCurSelSupportsEnableDisable = TRUE End Select ' ' In the case of limits, the checkbox value is submitted with the form. Attempting to reload ' the page for every click would lose any changes the user had made to the limits settings. ' if( SHOWING_LIMITS <> dwDisplayMode ) then if( TRUE = bBroadcastPubPoint ) then if "ON" = UCase( trim( qs("AutoStartPPCheckbox") ) ) then g_objPubPoint.AllowClientToStartAndStop = TRUE elseif "OFF" = UCase( trim( qs("AutoStartPPCheckbox") ) ) then g_objPubPoint.AllowClientToStartAndStop = FALSE end if end if end if '//////////////////////////////////////////////////////////////////////////////////////////////////// if SHOWING_LIMITS = dwDisplayMode then Err.clear set posting = Request.Form strOp = RemoveDangerousCharacters( trim( posting("limitOp") ) ) strSubmit = RemoveDangerousCharacters( trim( posting("submit") ) ) if( 0 < Len( strSubmit ) ) then set objPPLimits = g_objPubPoint.limits ' if( 0 = StrComp( strSubmit, Unescape( trim( L_APPLYBUTTON_TEXT ) ), vbTextCompare ) ) then objPPLimits.ConnectedPlayers = NormalizeLimitText( Trim( posting( "PlayerConnText" ) ) ) if( ErrorDetected( "PlayerConn" ) ) then ClearError end if objPPLimits.OutgoingDistributionConnections = NormalizeLimitText( Trim( posting( "DistConnText" ) ) ) if( ErrorDetected( "DistConn" ) ) then end if objPPLimits.PlayerBandwidth = NormalizeLimitText( Trim( posting( "AggPlayerBWText" ) ) ) if( ErrorDetected( "AggPlayerBW" ) ) then end if objPPLimits.OutgoingDistributionBandwidth = NormalizeLimitText( Trim( posting( "AggDistBWText" ) ) ) if( ErrorDetected( "AggDistBW" ) ) then end if objPPLimits.PerPlayerConnectionBandwidth = NormalizeLimitText( Trim( posting( "PlayerBWText" ) ) ) if( ErrorDetected( "PlayerBW" ) ) then end if objPPLimits.PerOutgoingDistributionConnectionBandwidth = NormalizeLimitText( Trim( posting( "DistBWText" ) ) ) if( ErrorDetected( "DistBW" ) ) then end if on error resume next strRapidStartBW = NormalizeLimitTextEx( Trim( posting( "RapidStartBWText" ) ), CStr( DEFAULT_RAPIDSTART_RATE ) ) if( 0 = StrComp( DEFAULT_RAPIDSTART_RATE, strRapidStartBW, vbTextCompare ) ) then objPPLimits.PerPlayerRapidStartBandwidth = CDbl( DEFAULT_RAPIDSTART_RATE ) else objPPLimits.PerPlayerRapidStartBandwidth = CDbl( strRapidStartBW ) end if ' if( ErrorDetected( "RapidStartBW" ) ) then if( 0 <> err.number )then err.clear end if strDeliveryRate = NormalizeLimitTextEx( Trim( posting("LimitDeliveryRateText" ) ), CStr( DEFAULT_DELIVERY_RATE ) ) if( -1 = CInt( strDeliveryRate ) ) then objPPLimits.PlayerCacheDeliveryRate = -1 else objPPLimits.PlayerCacheDeliveryRate = CInt( strDeliveryRate ) * 1000 end if if( ErrorDetected( "DeliveryRate" ) ) then end if Response.Redirect( "pubpoint_props.asp?server=" & g_strQueryStringServer & "&ppID=" & g_strPubPointID & "&category=" & strCategory ) ' end if end if '//////////////////////////////////////////////////////////////////////////////////////////////////// elseif ( SHOWING_PLUGINS = dwDisplayMode ) then strOp = RemoveDangerousCharacters( trim( qs("op") ) ) Dim strClsID if "" <> strOp then on error resume next iPluginCount = g_objPluginCollection.Count Select Case strOp case "enable" Dim strPluginCLSID bDriveUpdateToTreeView = TRUE ConnectToPlugin err.clear strPluginCLSID = CStr( g_objPlugin.CLSID ) if( 0 = StrComp( "{043cc79e-1e1b-11d3-9d0f-00c04f610d50}", strPluginCLSID, vbTextCompare ) ) then Session( "DisplayMcastWarning" ) = TRUE end if g_objPlugin.Enabled = TRUE if( ErrorDetected( "Enable" ) ) then if( -2147014848 = Err.number ) then err.Description = L_PORTINUSEERROR_TEXT Session( "ErrorNumber" ) = err.Number Session( "ErrorCulprit" ) = "" Session( "ErrorDescription" ) = L_PORTINUSEERROR_TEXT break elseif( -2147024773 = Err.number ) then err.Description = L_ACTSCRIPTPLERROR_TEXT Session( "ErrorNumber" ) = err.Number Session( "ErrorCulprit" ) = "" Session( "ErrorDescription" ) = L_ACTSCRIPTPLERROR_TEXT break end if end if case "disable" bDriveUpdateToTreeView = TRUE strError = CStr( trim( Session( "DisableError" ) ) ) Session( "DisableError" ) = "" if( 0 < Len( strError ) ) then bPluginDisabledError = TRUE else ClearError end if case "remove" bDriveUpdateToTreeView = TRUE strError = CStr( trim( Session( "RemoveError" ) ) ) Session( "RemoveError" ) = "" if( 0 = Len( strError ) ) then ClearError elseif( 0 = Len( qs("prompted") ) )then bPluginRemovedError = TRUE end if case "refresh" bDriveUpdateToTreeView = TRUE case Else End Select if ( not bPluginRemovedError ) and ( not bPluginDisabledError ) then if( 0 <> Err.number ) then ErrorDetected( "" ) Session( "PageReloadedToDisplayError" ) = 1 else Response.Redirect( "pubpoint_props.asp?server=" & g_strQueryStringServer & "&ppID=" & g_strPubPointID & "&category=" & strCategory & "&pluginIndex=" & qs("pluginIndex") & "&s=true" ) Response.Flush err.clear end if end if end if '//////////////////////////////////////////////////////////////////////////////////////////////////// else ' Handle General operations end if if( SHOWING_LIMITS = dwDisplayMode ) then Set objPPLimits = g_objPubPoint.limits strPlayerConnections = AdjustLimitText( objPPLimits.ConnectedPlayers ) strDistConnections = AdjustLimitText( objPPLimits.OutgoingDistributionConnections ) strAggPlayerBW = AdjustLimitText( objPPLimits.PlayerBandwidth ) strDistAggBW = AdjustLimitText( objPPLimits.OutgoingDistributionBandwidth ) strPlayerBW = AdjustLimitText( objPPLimits.PerPlayerConnectionBandwidth ) strDistBW = AdjustLimitText( objPPLimits.PerOutgoingDistributionConnectionBandwidth ) on error resume next ' Bug work-around <><> lRapidStartBW = objPPLimits.PerPlayerRapidStartBandwidth if( 0 <> err.number ) then err.Clear strRapidStartBW = CStr( L_DEFAULT_RAPIDSTART_RATE ) else strRapidStartBW = AdjustLimitText( lRapidStartBW ) end if if ( FALSE = bBroadcastPubPoint ) then strDeliveryRate = AdjustLimitText( objPPLimits.PlayerCacheDeliveryRate / 1000 ) end if end if if( TRUE = bBroadcastPubPoint ) then if( TRUE = g_objPubPoint.AllowClientToStartAndStop ) then strStartOnFirstConnectChecked = " checked " end if end if End Sub '///////////////////////////////////////////////////////////////////////////////////// Function NoFilenameActiveScriptPlugin( ByRef EachPlugin ) on error resume next NoFilenameActiveScriptPlugin = FALSE if( strCategory <> CAT_EVENT ) then Exit Function end if Dim pluginAdmin Dim strScriptFilename Set pluginAdmin = EachPlugin.CustomInterface if( 0 = err.number ) then strScriptFilename = pluginAdmin.FileName if( 0 = err.number ) then if( 0 = Len( strScriptFilename ) ) then NoFilenameActiveScriptPlugin = TRUE end if end if end if err.Clear End Function '///////////////////////////////////////////////////////////////////////////////////// Function CalcLenOfUnlimited() Dim intLen Dim strUnlimited intLen = 0 strUnlimited = L_UNLIMITED_TEXT intLen = Len( strUnlimited ) if( intLen < MAX_LEN_LIMIT ) then intLen = MAX_LEN_LIMIT end if CalcLenOfUnlimited = intLen end Function '///////////////////////////////////////////////////////////////////////////////////// Sub IsDisabled( strValue ) if( 0 = StrComp( L_UNLIMITED_TEXT, strValue, vbTextCompare ) ) then Response.Write( " disabled " ) end if end sub '///////////////////////////////////////////////////////////////////////////////////// Sub IsDisabledEx( strValue, strDisabled ) if( 0 = StrComp( strDisabled, strValue, vbTextCompare ) ) then Response.Write( " disabled " ) end if end sub '///////////////////////////////////////////////////////////////////////////////////// Sub CheckIfNotDefault( strValue, strDefaultValue ) if( 0 <> strcomp( strValue, strDefaultValue, vbTextCompare ) ) then Response.Write( " checked " ) end if end sub '///////////////////////////////////////////////////////////////////////////////////// Sub IsCheckedYesNo( bValue ) if( bValue ) then Response.Write( " checked " ) end if end sub '///////////////////////////////////////////////////////////////////////////////////// function CalcMaxInputLength( l ) if ( 0 = StrComp( L_UNLIMITED_TEXT, l, vbTextCompare ) ) then CalcMaxInputLength = dwSizeLimText else CalcMaxInputLength = MAX_LEN_LIMIT end if end function '///////////////////////////////////////////////////////////////////////////////////// function AdjustLimitText(l) if -1 = l then AdjustLimitText = L_UNLIMITED_TEXT else AdjustLimitText = l end if end function '///////////////////////////////////////////////////////////////////////////////////// function NormalizeLimitText( strText ) if ( 0 = StrComp( L_UNLIMITED_TEXT, strText, vbTextCompare ) ) then NormalizeLimitText = "-1" else if IsEmpty( strText ) then NormalizeLimitText = "-1" elseif ( 0 = Len( strText ) ) then NormalizeLimitText = "-1" elseif CLng( strText ) < -1 then Err.Raise 13, "NormalizeLimitText", L_TYPEMISMATCH_TEXT NormalizeLimitText = strText else if( ( CDbl( strText ) <= MAX_LIMIT_VAL ) and ( CDbl( strText ) >= 0 ) ) then NormalizeLimitText = strText else Err.Raise 13, "NormalizeLimitText", L_TYPEMISMATCH_TEXT NormalizeLimitText = "-1" end if end if end if end function '///////////////////////////////////////////////////////////////////////////////////// function NormalizeLimitTextEx( strText, strDefault ) if ( 0 = StrComp( strText, strDefault, vbTextCompare ) ) then NormalizeLimitTextEx = strDefault else if IsEmpty( strText ) then NormalizeLimitTextEx = strDefault elseif ( 0 = Len( strText ) ) then NormalizeLimitTextEx = strDefault elseif ( 0 = StrComp( L_UNLIMITED_TEXT, strText, vbTextCompare ) ) then NormalizeLimitTextEx = -1 elseif CLng( strText ) < -1 then Err.Raise 13, "NormalizeLimitTextEx", L_TYPEMISMATCH_TEXT NormalizeLimitTextEx = strText else if( ( CDbl( strText ) <= MAX_LIMIT_VAL ) and ( CDbl( strText ) >= 0 ) ) then NormalizeLimitTextEx = strText else Err.Raise 13, "NormalizeLimitTextEx", L_TYPEMISMATCH_TEXT NormalizeLimitTextEx = "-1" end if end if end if end function '///////////////////////////////////////////////////////////////////////////////// '///////////////////////////////////////////////////////////////////////////////// '///////////////////////////////////////////////////////////////////////////////// Main WriteHTMLHeader( g_strDecodedServerName ) if( SHOWING_LIMITS <> dwDisplayMode ) then WriteRefreshMetaTag end if %> "> <% if bPluginRemovedError then strOnLoadProc = "HandleRemoveError();" elseif bPluginRenamedError then strOnLoadProc = "HandleRenameError();" elseif bPluginDuplicateError then strOnLoadProc = "HandleDuplicateError();" else strOnLoadProc = "SetFocusToCategory( 0 );" end if %>
HandlePendingOp();<% end if %>" oncontextmenu="JavaScript:event.cancelBubble=true;return false;"> <% ' Draw the page banner and tabs if bCacheProxyPubPoint then DrawCacheProxyPPNameBanner L_PROPERTIESTABTITLE_TEXT else DrawPPNameBanner L_PROPERTIESTABTITLE_TEXT end if %>