home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
ims.cab
/
smtp.asp
< prev
next >
Wrap
Text File
|
1997-10-19
|
3KB
|
98 lines
<% Response.Expires = 0 %>
<%
rem strings for localization
L_ACCESSDENIED_TEXT ="Access Denied"
L_ISM_TEXT = "Microsoft SMTP Server Administration"
L_401_ERRORMESSAGE = "401 access denied"
L_SMTP_MAIL_ADMIN_ERRORMESSAGE = "MCIS-MAIL Administration uses JScript and frames and requires"
L_MS_INTERNET_EXPLORER3_TEXT = "Microsoft Internet Explorer 3.0"
L_OR_COMPATIBLE_BROWSER_TEXT = " or a compatible browser."
%>
<% If Request.ServerVariables("LOGON_USER") = "" Then%>
<% Response.Status = L_401_ERRORMESSAGE %>
<% Response.write L_ACCESSDENIED_TEXT%>
<% Else %>
<% Session("IsAdmin") = True %>
<% Session("find") = "" %>
<% Session("ServiceInstance") = Request("ServiceInstance") %>
<% ServerInstance = Session("ServiceInstance") %>
<% svr = Request("svr") %>
<% pg = Request("pg") %>
<% if svr = "" then %>
<% svr = Request.ServerVariables("SERVER_NAME") %>
<% Session("svr") = Request.ServerVariables("SERVER_NAME") %>
<% end if %>
<!--#include file="_cnst.asp" -->
<%
if (cont = true) then
if (dpath = "") then
dpath = "IIS://" & UCase(svr) & "/SmtpSvc"
end if
Session("dpath") = dpath
szServerString = dpath & "/" & ServerInstance
On Error Resume Next
Set smtp = GetObject(dpath)
if (Err <> 0) then %>
<script language="javascript">
alert("<% = Err.Description %>");
</script> <%
end if %>
<% On Error Resume Next %>
<% Set serv = GetObject(szServerString) %>
<% if Err = 5 then %>
<script language="javascript">
alert("<% = Err.description %>");
</script>
<% end if %>
<HTML>
<HEAD>
<TITLE><%=L_ISM_TEXT%></TITLE>
</HEAD>
<% if Instr(Request.ServerVariables("HTTP_USER_AGENT"),"MSIE") then %>
<FRAMESET ROWS="30,*" FRAMEBORDER=0 FRAMESPACING=0>
<FRAME SRC="smhd.asp?svr=<% = svr %>" NAME="head" SCROLLING="no" MARGINHEIGHT=0 MARGINWIDTH=0>
<FRAMESET COLS="195,*" FRAMEBORDER=0 FRAMESPACING=1>
<FRAME SRC="smmnu.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="menu" SCROLLING="auto" MARGINHEIGHT=0 MARGINWIDTH=0>
<FRAMESET ROWS="*,31" FRAMEBORDER=0 FRAMESPACING=1>
<FRAME SRC="smredir.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="main" SCROLLING="auto">
<FRAME SRC="smtl.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="toolbar" SCROLLING="no" MARGINHEIGHT=0 MARGINWIDTH=0>
</FRAMESET>
</FRAMESET>
</FRAMESET>
<% else %>
<FRAMESET ROWS="39,*" FRAMEBORDER="no" BORDER=0 FRAMESPACING=0>
<FRAME SRC="smhd.asp?svr=<% = svr %>" NAME="head" BORDER=0 SCROLLING="no" MARGINHEIGHT=1 MARGINWIDTH=0>
<FRAMESET COLS="198,*" FRAMEBORDER="no" BORDER=1 FRAMESPACING=1>
<FRAME SRC="smmnu.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="menu" BORDER=0 SCROLLING="auto">
<FRAMESET ROWS="*,36" FRAMEBORDER="no" BORDER=0 FRAMESPACING=1>
<FRAME SRC="smredir.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="main" BORDER=0 SCROLLING="auto">
<FRAME SRC="smtl.asp?svr=<% = svr %>&pg=<% = pg %>" NAME="toolbar" SCROLLING="no" MARGINHEIGHT=0 MARGINWIDTH=0>
</FRAMESET>
</FRAMESET>
</FRAMESET>
<% end if %>
<NOFRAMES>
<BODY BGCOLOR="#CCCCCC" TOPMARGIN=15 LINK="#B90000" VLINK="#B90000" ALINK="#B90000">
<P>
<FONT FACE="Arial" SIZE=2> <% = L_SMTP_MAIL_ADMIN_ERRORMESSAGE %><A HREF="http://www.microsoft.com"><% = L_MS_INTERNET_EXPLORER3_TEXT %></A><% = L_OR_COMPATIBLE_BROWSER_TEXT %>
</BODY>
</NOFRAMES>
</HTML>
<% End If %>
<% end if %>