home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
- <%
- 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)
- 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="#183159"><strong><font face="Arial" color="#FFFFFF">
- Option
- </font></strong></td>
- <td width="50%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- 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
- %>
- <tr>
- <td><strong><font face="Arial">
- <%Response.Write(propName)%>
- </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
- 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) & """")
- End If
- %>
- >
- <%
- End If
- if propType = "STRING" Then
- %>
- <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) & """")
- End If
- %>
- >
- <%
- End If
- if propType = "PASSWORD" Then
- %>
- <input type="password"
- size="30"
- name="<%Response.Write(propName)%>"
- <%
- If Not Len(ErrLine) = 0 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"></p>
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-