home *** CD-ROM | disk | FTP | other *** search
- <%
- 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="hlpServices.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") = "Empty cache" Then
- Cache.ClearCache()
- End If
-
- if Request.ReqParam("action") = "Commit" Then
- ' Process the Cache settings
- if Request.ReqParam("Size") <> "" then
- Cache.Size = Request.ReqParam("Size")
- else
- Cache.Size = 5
- end if
-
-
- if Request.ReqParam("LeaseDuration") = "Never" Then
- Cache.TimeToLive =24*365
- End If
-
- if Request.ReqParam("LeaseDuration") = "Every time" Then
- Cache.TimeToLive =0
- End If
-
- if Request.ReqParam("LeaseDuration") = "After" Then
-
- if Request.ReqParam("TTL") <> "" then
- Cache.TimeToLive = Request.ReqParam("TTL")
- else
- Cache.TimeToLive = 6
- end if
-
- End If
-
-
-
-
- On Error Resume Next
- Cache.Commit
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- else
- Response.Redirect("hlpServices.agp")
- End If
- End If
- %>
- <p><big><strong><font face="Arial">Edit the Cache service</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= "/services/editcache.agp">
- <table border="1" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td width="40%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Option
- </font></strong></td>
- <td width="60%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Value
- </font></strong></td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Cache size (in MB)
- </font></strong></td>
- <td width="60%">
- <input type="text" size="10" maxlength="4" name="Size" value="<%Response.Write(Cache.Size)%>">
- </td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Current cache size (in MB)
- </font></strong></td>
- <td width="60%"><font face="Arial">
- <%Response.Write(Cache.CurrentExactSize)%>
- (<%Response.Write(Cache.CurentByteSize)%> bytes)
- </font></td>
- </tr>
- <tr>
- <td width="40%"><strong><font face="Arial">
- Cache directory
- </font></strong></td>
- <td width="60%"><font face="Arial">
- <%Response.Write(Cache.CacheDirectory)%>
- </font></td>
- </tr>
- </table>
-
- <p><big><strong><font face="Arial">Compare with original resource</font></strong></big></p>
-
- <table border="1" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td width="10%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Selection
- </font></strong></td>
- <td width="90%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Meaning
- </font></strong></td>
- </tr>
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive <> 0 and Cache.TimeToLive <> 8760 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="After" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="After" UNCHECKED>
- <%
- End If
- %>
- </center>
- </td>
-
- <td width="90%">
- After
- <input type="text" size="10" maxlength="4" name="TTL" value="<%Response.Write(Cache.TimeToLive)%>">
- hours
- </td>
-
-
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive = 0 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Every time" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Every time" UNCHECKED>
- <%
- End If
- %>
-
- </center>
- </td>
- <td width="90%">Every time</td>
- </tr>
-
- <tr>
- <td width="10%">
- <center>
- <%
- if Cache.TimeToLive = 8760 Then
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Never" CHECKED>
- <%
- Else
- %>
- <input type="radio" size="55" name="LeaseDuration" Value="Never" UNCHECKED>
- <%
- End If
- %>
-
-
- </center>
- </td>
- <td width="90%">Never</td>
- </tr>
-
- </tr>
-
-
- </table>
-
- <br>
- <input type="submit" name="action" value="Commit">
- <input type="submit" name="action" value="Empty cache">
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-
-