|
Packit |
667938 |
<% @LANGUAGE="VBSCRIPT" %>
|
|
Packit |
667938 |
<% Response.Expires = 0 %>
|
|
Packit |
667938 |
<% Server.ScriptTimeout = 1200 %>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<%
|
|
Packit |
667938 |
If ID = "" Then
|
|
Packit |
667938 |
Response.Redirect(NoAuthURL)
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' We only execute this code if the user actually submitted the configuration form from the page.
|
|
Packit |
667938 |
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Get the values that he or she entered at the configuration page.
|
|
Packit |
667938 |
Password = Request.Form("Password") ' The circuit password.
|
|
Packit |
667938 |
NewPassword = Request.Form("NewPassword") ' Change password.
|
|
Packit |
667938 |
NewConfirmedPassword = Request.Form("ConfirmPassword") ' Change password confirmation.
|
|
Packit |
667938 |
EMail = Request.Form("TechEMail") ' Technical E-Mail address.
|
|
Packit |
667938 |
Graph_Daily = Request.Form("Daily_Graph") ' Display Daily Graphs.
|
|
Packit |
667938 |
Graph_Weekly = Request.Form("Weekly_Graph") ' Display Weekly Grahps.
|
|
Packit |
667938 |
Graph_Monthly = Request.Form("Monthly_Graph") ' Dispaly Monthly Graphs.
|
|
Packit |
667938 |
Graph_Yearly = Request.Form("Yearly_Graph") ' Display Yearly Graphs.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Check Graph_Daily
|
|
Packit |
667938 |
If Graph_Daily = "" Then
|
|
Packit |
667938 |
Graph_Daily = 0
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Graph_Daily = 1
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Check Graph_Weekly
|
|
Packit |
667938 |
If Graph_Weekly = "" Then
|
|
Packit |
667938 |
Graph_Weekly = 0
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Graph_Weekly = 1
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Check Graph_Monthly
|
|
Packit |
667938 |
If Graph_Monthly = "" Then
|
|
Packit |
667938 |
Graph_Monthly = 0
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Graph_Monthly = 1
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Check Graph_Yearly
|
|
Packit |
667938 |
If Graph_Yearly = "" Then
|
|
Packit |
667938 |
Graph_Yearly = 0
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Graph_Yearly = 1
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Did the user enter his or her password?
|
|
Packit |
667938 |
If Password = "" Then ' We dont have a password!
|
|
Packit |
667938 |
Error = "Please Enter Your Password"
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Now that we have the password, compare in in the database...
|
|
Packit |
667938 |
set rsPassword = DBConn.Execute("SELECT LinePassword FROM Monitor_Authenticate WHERE ID=" & ID)
|
|
Packit |
667938 |
|
|
Packit |
667938 |
TempPass = rsPassword("LinePassword") ' Get the password in the database.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
rsPassword.close ' Close the lookup record.
|
|
Packit |
667938 |
Set rsPassword = Nothing
|
|
Packit |
667938 |
|
|
Packit |
667938 |
If Password <> TempPass Then ' The password did not match the database.
|
|
Packit |
667938 |
Error = "Invalid Password"
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
If NewPassword <> "" Then ' Compare the NewPassword with the
|
|
Packit |
667938 |
' ConfirmedPassword...
|
|
Packit |
667938 |
If NewPassword <> NewConfirmedPassword Then ' The two password do not match.
|
|
Packit |
667938 |
Error="Your Passwords Did Not Match"
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Password = NewPassword ' Set the new password to be updated in the
|
|
Packit |
667938 |
' database.
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
If Error = "" Then ' If we do not have a error, everything is
|
|
Packit |
667938 |
' well, lets update the records.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
If ID <> 1 Then ' ID 1 is the guest account, dont update the
|
|
Packit |
667938 |
' database.
|
|
Packit |
667938 |
set rsUpdate = DBConn.Execute("UPDATE Monitor_Authenticate SET LinePassword='" & Password & "', " &_
|
|
Packit |
667938 |
"EMail_Address='" & EMail & "', " &_
|
|
Packit |
667938 |
"Graph_Day=" & Graph_Daily & ", " &_
|
|
Packit |
667938 |
"Graph_Week=" & Graph_Weekly & ", " &_
|
|
Packit |
667938 |
"Graph_Month=" & Graph_Monthly & ", " &_
|
|
Packit |
667938 |
"Graph_Year=" & Graph_Yearly &_
|
|
Packit |
667938 |
" WHERE (ID=" & ID & ")")
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Set rsUpdate = nothing ' Database update successfull.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Update Session information...
|
|
Packit |
667938 |
Session("DBLinePassword") = Password ' Update the password for the session.
|
|
Packit |
667938 |
Session("DBEMail_Address") = EMail ' Update the E-Mail for the session.
|
|
Packit |
667938 |
If Graph_Daily = 1 Then ' Daily Graph
|
|
Packit |
667938 |
Session("DBGraph_Day") = True
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Session("DBGraph_Day") = False
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
If Graph_Weekly = 1 Then ' Weekly Graph
|
|
Packit |
667938 |
Session("DBGraph_Week") = True
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Session("DBGraph_Week") = False
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
If Graph_Monthly = 1 Then ' Monthly Graph
|
|
Packit |
667938 |
Session("DBGraph_Month") = True
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Session("DBGraph_Month") = False
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
If Graph_Yearly = 1 Then ' Yearly Graph
|
|
Packit |
667938 |
Session("DBGraph_Year") = True
|
|
Packit |
667938 |
Else
|
|
Packit |
667938 |
Session("DBGraph_Year") = False
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Response.Redirect(MonitorURL) ' Everything is updated, go back to
|
|
Packit |
667938 |
' monitor.
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
%>
|
|
Packit |
667938 |
<html>
|
|
Packit |
667938 |
<head>
|
|
Packit |
667938 |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
Packit |
667938 |
<meta http-equiv="Cache-Control" content="No Cache">
|
|
Packit |
667938 |
<meta http-equiv="Pragma" content="No Cache">
|
|
Packit |
667938 |
<meta http-equiv="Expires" content="0">
|
|
Packit |
667938 |
<link rel="StyleSheet" href="global/main.css" type="text/css">
|
|
Packit |
667938 |
<style type="text/css">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
a:link { color: #003399 }
|
|
Packit |
667938 |
a:visited { color: #003399 }
|
|
Packit |
667938 |
a:hover { color: red }
|
|
Packit |
667938 |
-->
|
|
Packit |
667938 |
</style>
|
|
Packit |
667938 |
</head>
|
|
Packit |
667938 |
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="Clock()">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1"></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Monitor Configuration For Circuit Number: <%= LineNumber %>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Logout
|
|
Packit |
667938 |
of MonitorBandwidth Details</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Circuit Number:</font>
|
|
Packit |
667938 |
<font size="1"><%= LineNumber %></font>
|
|
Packit |
667938 |
<font size="1"></font>
|
|
Packit |
667938 |
<font size="1">Circuit Speed:</font>
|
|
Packit |
667938 |
<font size="1"><%= LineSpeed %> bps</font>
|
|
Packit |
667938 |
<font size="1"></font>
|
|
Packit |
667938 |
<font size="1">Technical Contact:</font>
|
|
Packit |
667938 |
<font size="1"><%= EMail_Address %></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">You Last Visited Monitor On: <%= LastVisit %></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<%' Do we have a error that the user needs to know about?
|
|
Packit |
667938 |
If Error <> "" Then %>
|
|
Packit |
667938 |
<font size="1"><%= Error %></font>
|
|
Packit |
667938 |
<% End If %>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Please take note, for your changes to take affect, you must enter your password in the first password field. If you wish to change your
|
|
Packit |
667938 |
password, you may then also complete the "New Password" and "Confirm Password" fields.
|
|
Packit |
667938 |
<form action="/config.asp" method="POST">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Your Password:</font>
|
|
Packit |
667938 |
<font size="1"><input type="password" name="Password" size="20" class="INPUT"></font>
|
|
Packit |
667938 |
</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Required For ANY changes to be made
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Change Your Password:</font>
|
|
Packit |
667938 |
<font size="1"><input type="password" name="NewPassword" size="20" class="INPUT"></font>
|
|
Packit |
667938 |
<font size="1">New Password</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1"> </font>
|
|
Packit |
667938 |
<font size="1"><input type="password" name="ConfirmPassword" size="20" class="INPUT"></font>
|
|
Packit |
667938 |
<font size="1">Confirm Password</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Technical Contact E-Mail Address:</font>
|
|
Packit |
667938 |
<font size="1"><input type="text" name="TechEMail" size="20" value="<%= EMail_Address %>" class="INPUT"></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Show The Daily Graph:</font>
|
|
Packit |
667938 |
<font size="1"><input type="checkbox" name="Daily_Graph" value="1" <% if graph_day = true then%>checked <% end if%>></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Show The Weekly Graph:</font>
|
|
Packit |
667938 |
<font size="1"><input type="checkbox" name="Weekly_Graph" value="1" <% if graph_week = true then %>checked<% end if %>></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Show The Monthly Graph:</font>
|
|
Packit |
667938 |
<font size="1"><input type="checkbox" name="Monthly_Graph" value="1" <% if graph_month = true then %>checked<% end if %>></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">Show The Yearly Graph:</font>
|
|
Packit |
667938 |
<font size="1"><input type="checkbox" name="Yearly_Graph" value="1" <% if graph_year = true then %>checked<% end if %>></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<input type="submit" value="Update Configuration" name="UPDATE" class="BUTTON">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
</form>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font size="1">©2000 Chris Knipe. All Rights Reserved.</font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<SPACER TYPE=VERTICAL SIZE=4>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<font face="Arial,Helvetica" size="2">Tobias Oetiker <tobi@oetiker.ch>
|
|
Packit |
667938 |
and Dave Rand <dlr@bungi.com></font>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
</body>
|
|
Packit |
667938 |
</html>
|