%@ LANGUAGE="VBSCRIPT" %>
<%
Server.ScriptTimeout = 9999
If Request.ServerVariables("LOGON_USER") = "" Then
Response.Status = "401 access denied"
else
%>
Manage Web Subscriptions
The list below shows your current Web Subscriptions on this Office-extended server.
Click a column heading to sort by that field. You can delete any Web Subscription by
selecting it and hitting Delete.
|
<%
if Request.Form("delForm") = "TRUE" then
evtid = Request.Form("evtid")
Set Subscriptions = Session("MiscApis").EnumEvtSubs(evtid,OWSEVTCOL_EVTID,0,0)
if Subscriptions.EOF = False then
set tgtsub = Subscriptions.Item()
if tgtsub.EventID = evtid then Subscriptions.Delete(tgtsub.EventID)
if Err then
response.write "" & L_DelErrorStr_TEXT & ""
Err.Clear
else
response.write "
" & L_SubDeletedStr_TEXT & ""
end if
end if
end if
' get username from browser
UserDomain = Request.ServerVariables("LOGON_USER")
User = Right(UserDomain,(len(UserDomain)-instr(UserDomain,"\")))
' filter on owner
FiltCol = 3
Set FilteredSubs = Session("MiscApis").EnumEvtSubs(User,FiltCol,3,0)
if Err then
response.write "
" & L_ConnErrorStr_TEXT & ""
Err.clear
end if
%>
|
Connected to: <%=Request.ServerVariables("SERVER_NAME")%>
Displaying <%=SubCnt%> Web Subscription(s)
|
|
|
<% end if %>
<% end if %>