home *** CD-ROM | disk | FTP | other *** search
- <%
- path = SysInfo.SkinPath
- dim szPath
- szPath = "Table"
- SkinTable = SysInfo.GetSkinParameter(szPath)
- szPath = "Font"
- SkinFont = SysInfo.GetSkinParameter(szPath)
- szPath = "Link"
- SkinLink = SysInfo.GetSkinParameter(szPath)
- szPath = "VLink"
- SkinVLink= SysInfo.GetSkinParameter(szPath)
- %>
- <script language="JavaScript">
- <!--
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
-
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
-
- function MM_findObj(n, d) { //v4.0
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && document.getElementById) x=document.getElementById(n); return x;
- }
-
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- //-->
- </script>
- <html>
- <head>
- <title>Professional GateKeeper - Infopulse</title>
- <!-- -->
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
- <title>MediaFamily - Welcome</title>
-
- </head>
- <body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="../images/backgr_x.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="344"><img src="images/1_r1_c2.jpg" width="344" height="70"></td>
- <td width="135"><img src="images/1_r1_c3.jpg" width="135" height="70"></td>
- <td width="100"><a href="hlpProxies.agp"><img src="images/1_r1_c4.jpg" width="100" height="70"border=0></a></td>
- <td width="1000"> </td>
- </tr>
- </table>
- <map name="n1_r4_c3Map">
- <area shape="rect" coords="492,45,567,76" href="#">
- </map>
-
- <%
- If Request.ReqParam("action") = "Cancel" Then
- Response.Redirect("curentproxies.agp")
- End If
- sFile = Request.ReqParam("file")
- Set proxy = Proxies.NewProxy
- proxy.FileName = sFile
-
- if Request.ReqParam("action") = "Commit" Then
- ' Process the proxy settings
- strProps = proxy.GetPropertyNames
- tmpProps = strProps
- While Len(tmpProps)
- pos = InStr(tmpProps,",")
- If pos > 0 Then
- propName = Left(tmpProps,pos - 1)
- tmpProps = Mid(tmpProps,pos + 1)
- Else
- propName = tmpProps
- tmpProps = ""
- End If
-
- propType = proxy.GetPropertyType(propName)
- if propType = "BOOL" Then
- propVal = Request.ReqParam(propName)
- if propVal <> "" then
- proxy.SetBoolProperty propName,True
- else
- proxy.SetBoolProperty propName,False
- end if
- End if
- if propType = "NUMBER" Then
- propVal = Request.ReqParam(propName)
- If Len(propVal) = 0 Then
- propVal = 0
- End If
- proxy.SetNumberProperty propName,propVal
- End If
- if propType = "STRING" Then
- propVal = Request.ReqParam(propName)
-
- ' now .. here do the dirty job of creating the list of available options
- Dim sPropCount
- sPropCount = Request.ReqParam( propName & "_CheckCount" )
- if propVal = "" AND sPropCount <> "" Then
- ' there is no property with this name
- ' but there might be a list of properties (if the value was a list of strings)
- ' and we have combos around there
- Dim i, sValue, sTmpValue
- i = 0
- i = CInt(sPropCount)
- while i > 0
- sTmpValue = Request.ReqParam( propName & "_" & (i-1) )
- if sTmpValue <> "" then
- sValue = sValue & sTmpValue & vbCrLf & "CHECKED" & vbCrLf
- End If
- i = i - 2
- wend
- propVal = sValue
- end if
-
- proxy.SetStringProperty propName,propVal
- End If
- if propType = "PASSWORD" Then
- propVal = Request.ReqParam(propName)
- proxy.SetStringProperty propName,propVal
- End If
- Wend
-
- On Error Resume Next
- proxy.Commit
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- else
- Response.Redirect("curentproxies.agp")
- End If
- End If
-
- sType = Request.ReqParam("type")
- %>
- <p><big><strong><font face="Arial">Add a new <%Response.Write(sType)%> proxy</font></strong></big></p>
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
-
- <form method="POST" action= "/proxies/addproxy.agp">
- <input type="hidden" name="file" value="<%Response.Write(sFile)%>">
-
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="50%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Option
- </font></strong></td>
- <td width="50%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Value
- </font></strong></td>
- </tr>
- <%
- strProps = proxy.GetPropertyNames
- tmpProps = strProps
- While Len(tmpProps)
- pos = InStr(tmpProps,",")
- If pos > 0 Then
- propName = Left(tmpProps,pos - 1)
- tmpProps = Mid(tmpProps,pos + 1)
- Else
- propName = tmpProps
- tmpProps = ""
- End If
- propDesc = proxy.GetPropertyDescription(propName)
- If Not Err.Number = 0 Then ' No property Description found!
- propDesc = propName
- End If
- %>
- <tr>
- <td><strong><font face="Arial">
- <%Response.Write(propDesc)%> <font size=1>(<%Response.Write(propName)%>)</font>
- </font></strong></td>
- <td>
- <%
- propType = proxy.GetPropertyType(propName)
- if propType = "BOOL" Then
- %>
- <input type="checkbox"
- name="<%Response.Write(propName)%>"
- <%
- If Not Len(ErrLine) = 0 Then
- if Request.ReqParam(propName) <> "" Then
- Response.Write("checked")
- End If
- Else ' Show Defaults
- If proxy.GetDefaultBoolProperty ( propName ) Then
- Response.Write("checked")
- End If
- End If
- %>
- >
- <%
- End if
- if propType = "NUMBER" Then
- %>
- <input type="text"
- size="5"
- maxlength="5"
- name="<%Response.Write(propName)%>"
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("Value=""" & Request.ReqParam(propName) & """")
- Else
- ' Show Default Value
- propDef = ""
- propDef = proxy.GetDefaultNumberProperty( propName )
- If propDef <> -1 Then
- Response.Write("Value=""" & propDef & """")
- End If
- End If
- %>
- >
- <%
- If propName = "Timeout" Then
- %>
- second(s)
- <%
- End If
- %>
- <%
- End If
- if propType = "STRING" Then
-
- ' For string properties, see if they do not represent a list of values
- ' then show a combo list
- ' Read Default Value
- propDef = ""
- propDef = proxy.GetDefaultStringProperty( propName )
-
- bList = FALSE
-
- Dim myOptionList
-
- OptionListSize = 0
-
- if InStr ( propDef, vbCrLf ) Then
- ReDim myOptionList(30)
- bList = TRUE ' Show a list of checkboxes instead of a simple textbox
- iPos = InStr ( propDef , vbCrLf )
- while ( iPos > 0 )
- theOption = Left ( propDef, iPos - 1 )
- propDef = Mid ( propDef, iPos + 2 )
- iPos = InStr ( propDef , vbCrLf )
- OptionListSize = OptionListSize + 1
- myOptionList(OptionListSize) = theOption
-
- 'OptionListSize = OptionListSize + 1
- 'if OptionListSize = 4 Then
- ' myOptionList(OptionListSize) = "CHECKED"
- 'End If
- wend
- End If
- %>
-
- <%
- If bList Then 'Show a combo box
- %>
-
- <%
- for i = 1 to OptionListSize
- %>
- <Input Type=CheckBox <%Response.Write(myOptionList(i+1))%> Name="<%Response.Write( propName & "_" & i )%>" VALUE="<%Response.Write( myOptionList(i) )%>"><%Response.Write( myOptionList(i) )%></Input><br>
- <%
- i = i + 1
- Next
- %>
- <Input Type=Hidden Name="<%Response.Write( propName & "_CheckCount" )%>" Value="<%Response.Write( OptionListSize )%>">
-
- <%
- Else ' Show a Text box
- %>
- <input type="text"
- size="30"
- name="<%Response.Write(propName)%>"
- <%
- If propName = "Separator" Then
- Response.Write("Value=""#""")
- End If
- If Not Len(ErrLine) = 0 Then
- Response.Write("Value=""" & Request.ReqParam(propName) & """")
- Else
- Response.Write("Value=""" & propDef & """")
- End If
- %>
- >
- <%
- End If ' if bList
- %>
-
- <%
- End If
- if propType = "PASSWORD" Then
- %>
- <input type="password"
- size="30"
- name="<%Response.Write(propName)%>"
- <%
- If Not Len(ErrLine) = 0 OR ShowDefaults Then
- Response.Write("Value=""" & Request.ReqParam(propName) & """")
- End If
- %>
- >
- <%
- End If
- %>
-
- </td>
- </tr>
- <%
- Wend
- %>
- </table>
- </center></div>
- <p><input type="submit" name="action" value="Commit"><input type="submit" name="action" value="Cancel"></p>
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-