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)
-
- ruleName = Request.ReqParam("rule")
- UserName = ruleName
-
-
- Set OnlineRule = Rules.item(ruleName)
- %>
- <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="hlpRules.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>
-
- <%
- UserName = Request.ReqParam("rule")
- if UserName = "" then
- UserName = Request.ReqParam("UName")
- End If
-
- command = Request.ReqParam("action")
-
- if command = "Commit changes" Then
- TimeEr = True
- dim Day
- dim DayType
- dim Month
- dim MonthType
- If Request.ReqParam("LimitDay") = "UnlimitedDay" Then
- Day = 0
- DayType = 1
- else
- If Request.ReqParam("DayType") = "Hours" Then
- Day = Request.ReqParam("DayTime")
- DayType = 1
- Else
- Day = Request.ReqParam("DayTime")
- DayType = 0
- End If
- End If
-
-
- If Request.ReqParam("LimitMonth") = "UnlimitedMonth" Then
- Month = 0
- MonthType = 1
- Else
- If Request.ReqParam("MonthType") = "Days" Then
- Month = Request.ReqParam("MonthTime")
- MonthType = 1
- Else
- Month = Request.ReqParam("MonthTime")
- MonthType = 0
- End If
- End If
- On Error Resume Next
- 'Accounts.SetUserAccessLimits UserName, Day, DayType, Month, MonthType
- OnlineRule.SetOnlineTimeRestriction Day, DayType, Month, MonthType
- OnlineRule.Commit
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- End If
- End If
-
-
- If Not Len(ErrLine) = 0 And TimeEr Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
- <form method="POST" action= "EditOnlineAccess.agp?rule=<%Response.Write(UserName)%>">
-
- <table border="1" cellpadding="0" cellspacing="0" width="90%">
-
- <tr>
- <input type="hidden" name="UName" value="<%Response.Write(UserName)%>">
- <td colspan=2 width="30%" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Onlime Time Access Restrictions for <%Response.Write(UserName)%>
- </font></strong></td>
- <td></td>
- </tr>
- <tr>
- <td width="30%" align="left"><font face="Arial"><strong>  Daily Access</strong></font></td>
- <%
- if OnlineRule.HasLimitedDayAccess Then
- %>
-
- <td width="70%"><font face="Arial">
- <input type="radio" name="LimitDay" value="UnlimitedDay">Unlimited<br>
- <input type="radio" name="LimitDay" value="LimitedDay" checked>Limit to
- <input type="text" size="10" maxlength="5" name="DayTime" value="<%Response.Write(OnlineRule.GetDailyLimit)%>">
- <%
- if OnlineRule.DailyAccessIsHourly Then
- %>
- <input type="radio" name="DayType" value="Hours" checked>hours
- <input type="radio" name="DayType" value="Minutes">minutes
- <%
- else
- %>
- <input type="radio" name="DayType" value="Hours">hours
- <input type="radio" name="DayType" value="Minutes" checked>minutes
- <%
- end if
- %>
- </td>
- <%
- else
- %>
- <td width="70%"><font face="Arial">
- <input type="radio" name="LimitDay" value="UnlimitedDay" checked>Unlimited<br>
- <input type="radio" name="LimitDay" value="LimitedDay">Limit to
- <input type="text" size="10" maxlength="5" name="DayTime" value="0">
- <input type="radio" name="DayType" value="Hours" checked>hours
- <input type="radio" name="DayType" value="Minutes">minutes
- </td>
- <%
- end if
- %>
- </tr>
- <tr>
- <td width="30%" align="left"><font face="Arial"><strong>  Monthly Access</strong></font></td>
- <%if OnlineRule.HasLimitedMonthAccess Then
- %>
- <td width="70%"><font face="Arial">
- <input type="radio" name="LimitMonth" value="UnlimitedMonth">Unlimited<br>
- <input type="radio" name="LimitMonth" value="LimitedMonth" checked>Limit to
- <input type="text" size="10" maxlength="6" name="MonthTime" value="<%Response.Write(OnlineRule.GetMonthlyLimit)%>">
- <%
- if OnlineRule.MonthlyAccessIsDaily Then
- %>
- <input type="radio" name="MonthType" value="Days" checked>days
- <input type="radio" name="MonthType" value="Hours">hours
- <%
- else
- %>
- <input type="radio" name="MonthType" value="Days">days
- <input type="radio" name="MonthType" value="Hours" checked>hours
- <%
- end if
- %>
- </td>
- <%else%>
- <td width="70%"><font face="Arial">
- <input type="radio" name="LimitMonth" value="UnlimitedMonth" checked>Unlimited<br>
- <input type="radio" name="LimitMonth" value="LimitedMonth">Limit to
- <input type="text" size="10" maxlength="6" name="MonthTime" value="0">
- <input type="radio" name="MonthType" value="Days" checked>days
- <input type="radio" name="MonthType" value="Hours">hours
- </td>
-
- <%end if%>
-
- </tr>
-
- </table>
- <br>
- <input type="submit" name="action" value="Commit changes">
- </form>
-
- <br>
-
- <div>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
- </body>
- </html>
-