%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' POP3 Mail Add-in - New Mailbox ' Copyright (C) Microsoft Corporation. All rights reserved. '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Global Constants '------------------------------------------------------------------------- Dim SOURCE_FILE SOURCE_FILE = SA_GetScriptFileName() Const FLD_NAME = "fldName" Const FLD_PASSWORD = "fldPassword" Const FLD_CONFIRM = "fldPasswordConfirm" Const FLD_CREATEUSER = "fldCreateUser" '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim g_page Dim g_strName Dim g_bCreateUser Dim g_strDomainName g_strDomainName = GetDomainName() '---------------------------------------------------------------------- ' Global Localized Strings '---------------------------------------------------------------------- Dim l_strPageTitle l_strPageTitle = GetLocString(RES_DLL_NAME, _ POP3_PAGETITLE_MAILBOXES_NEW, _ Array(g_strDomainName)) Dim l_strCaptionName l_strCaptionName = GetLocString(RES_DLL_NAME, _ POP3_CAPTION_MAILBOXES_NEW_NAME, _ Array(g_strDomainName)) Dim l_strCaptionPassword l_strCaptionPassword = GetLocString(RES_DLL_NAME, _ POP3_CAPTION_MAILBOXES_NEW_PASSWORD, _ Array(g_strDomainName)) Dim l_strCaptionConfirm l_strCaptionConfirm = GetLocString(RES_DLL_NAME, _ POP3_CAPTION_MAILBOXES_NEW_CONFIRMPASSWORD, _ Array(g_strDomainName)) Dim l_strCaptionCreateUser l_strCaptionCreateUser = GetLocString(RES_DLL_NAME, _ POP3_CAPTION_MAILBOXES_NEW_CREATEUSERS, _ Array(g_strDomainName)) '********************************************************************** '* E N T R Y P O I N T '********************************************************************** Call SA_CreatePage(l_strPageTitle, "", PT_PROPERTY, g_page) Call SA_ShowPage (g_page) '********************************************************************** '* H E L P E R S U B R O U T I N E S '********************************************************************** '--------------------------------------------------------------------- ' ServeCommonJavaScript '--------------------------------------------------------------------- Function ServeCommonJavaScript() %> <% End Function '********************************************************************** '* E V E N T H A N D L E R S '********************************************************************** '--------------------------------------------------------------------- ' OnInitPage '--------------------------------------------------------------------- Public Function OnInitPage(ByRef PageIn, ByRef EventArg) g_strName = "" g_bCreateUser = true OnInitPage = TRUE End Function '--------------------------------------------------------------------- ' OnServePropertyPage '--------------------------------------------------------------------- Public Function OnServePropertyPage(ByRef PageIn, ByRef EventArg) On Error Resume Next Session(SESSION_POP3DOMAINNAME) = g_strDomainName OnServePropertyPage = TRUE ' ' Emit Javascript functions required by Web Framework Call ServeCommonJavaScript() Dim oConfig Dim strAuthMethod Dim bIsHash Dim iNameLen Set oConfig = Server.CreateObject("P3Admin.P3Config") strAuthMethod = oConfig.Authentication.Item(oConfig.Authentication.CurrentAuthMethod).ID If ( strAuthMethod = AUTH_FILE ) Then bIsHash = true g_bCreateUser = true End If iNameLen = 255 If ( strAuthMethod = AUTH_SAM ) Then iNameLen = 20 End If %>
<%=Server.HTMLEncode(l_strCaptionName)%> | |
<%=Server.HTMLEncode(l_strCaptionPassword)%> | DISABLED="TRUE" STYLE="width: 350px;background:lightgrey;" <% Else %> STYLE="width: 350px;" <% End If%> MAXLENGTH="255"> |
<%=Server.HTMLEncode(l_strCaptionConfirm)%> | DISABLED="TRUE" STYLE="width: 350px;background:lightgrey;" <% Else %> STYLE="width: 350px;" <% End If%> MAXLENGTH="255"> |