Subversion Repositories DevTools

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3943
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
'=====================================================
3
'=====================================================
4
'|                                                   |
4
'|                                                   |
5
'|				          INDEX						 |
5
'|                    INDEX                   |
6
'|                                                   |
6
'|                                                   |
7
'=====================================================
7
'=====================================================
8
%>
8
%>
9
<%
9
<%
10
Option explicit
10
Option explicit
Line 21... Line 21...
21
'----------------------------------------------
21
'----------------------------------------------
22
%>
22
%>
23
<%
23
<%
24
'----------------------------------------------------------------------------------------------------------------------------------------------
24
'----------------------------------------------------------------------------------------------------------------------------------------------
25
Sub Logon ()
25
Sub Logon ()
26
	On Error Resume Next
26
   On Error Resume Next
27
	
27
   
28
	objEH.Try()
28
   objEH.Try()
29
	
29
   
30
	Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password"), OraDatabase )
30
   Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password"), OraDatabase )
31
	
31
   
32
	objEH.Catch()
32
   objEH.Catch()
33
	
33
   
34
End Sub
34
End Sub
35
'----------------------------------------------------------------------------------------------------------------------------------------------
35
'----------------------------------------------------------------------------------------------------------------------------------------------
36
Sub AccessManagerMessage ( nMessage )
36
Sub AccessManagerMessage ( nMessage )
37
	Dim sMessage
37
   Dim sMessage
38
	On Error Resume Next
38
   On Error Resume Next
39
	
39
   
40
	objEH.Try()
40
   objEH.Try()
41
		Select Case CInt( nMessage )
41
      Select Case CInt( nMessage )
42
			Case 1
42
         Case 1
43
				Err.Raise 8, _
43
            Err.Raise 8, _
44
					"Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
44
            	"Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
45
			Case 2
45
         Case 2
46
				Err.Raise 8, _
46
            Err.Raise 8, _
47
					"Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
47
            	"Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
-
 
48
         Case 3
-
 
49
            Err.Raise 8, _
-
 
50
            	"Application is Off-Line !", "This application is currently off-line for maintenance. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
-
 
51
            
-
 
52
         Case 4
-
 
53
            Err.Raise 8, _
-
 
54
            	"You are Not Authorised !", "You are not authorised to perform this action. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
-
 
55
            
48
		End Select
56
      End Select
49
	objEH.Catch()
57
   objEH.Catch()
50
	
58
   
51
End Sub
59
End Sub
52
'----------------------------------------------------------------------------------------------------------------------------------------------
60
'----------------------------------------------------------------------------------------------------------------------------------------------
53
%>
61
%>
54
<%
62
<%
55
'------------ RUN BEFORE PAGE RENDER ----------
63
'------------ RUN BEFORE PAGE RENDER ----------
56
objPMod.PersistInQryString ( aPersistList )
64
objPMod.PersistInQryString ( aPersistList )
57
 
65
 
58
' --- RUN onPostBack ---
66
' --- RUN onPostBack ---
59
If CBool(Request("action")) Then
67
If CBool(Request("action")) Then
60
	Call Logon ()
68
   Call Logon ()
61
	
69
   
62
	If objEH.Finally Then
70
   If objEH.Finally Then
63
		If Request("rfile") <> "" Then
71
      If Request("rfile") <> "" Then
64
			Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
72
         Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
65
		Else
73
      Else
66
			Call OpenInWindow ( "Default.asp" )
74
         Call OpenInWindow ( "Default.asp" )
67
		End If
75
      End If
68
		
76
      
69
		
77
      
70
	End If
78
   End If
71
End If
79
End If
72
 
80
 
73
Call AccessManagerMessage( Request("message") )
81
Call AccessManagerMessage( Request("message") )
74
'----------------------------------------------
82
'----------------------------------------------
75
%>
83
%>
Line 91... Line 99...
91
  <tr>
99
  <tr>
92
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
100
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
93
  </tr>
101
  </tr>
94
  <tr>
102
  <tr>
95
    <td align="center" valign="middle" bgcolor="#FFFFFF">
103
    <td align="center" valign="middle" bgcolor="#FFFFFF">
96
	<!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
104
   <!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
97
      <table width="570" border="0" cellspacing="0" cellpadding="1">
105
      <table width="570" border="0" cellspacing="0" cellpadding="1">
98
        <tr>
106
        <tr>
99
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
107
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
100
            <tr>
108
            <tr>
101
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
109
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
102
                <tr>
110
                <tr>
103
                  <td class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
111
                  <td class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
104
      Please enter your Username and Password. <br>
112
      Please enter your Username and Password. <br>
105
      <hr width="100%" size="1" noshade color="#ACA899">
113
      <hr width="100%" size="1" noshade color="#ACA899">
106
      Forgot your <a href="#" class="body_link">password</a> ? <br>
114
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
107
      New Members please <a href="#" class="body_link">Register</a></td>
115
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Access Manager Account" class="body_link">Register</a></td>
108
                </tr>
116
                </tr>
109
                <tr>
117
                <tr>
110
                  <td align="center" valign="top">
118
                  <td align="center" valign="top">
111
				  <table width="100"  border="0" cellspacing="2" cellpadding="0">
119
                    <table width="100"  border="0" cellspacing="2" cellpadding="0">
112
                      <tr>
120
                      <tr>
113
                        <td width="10%" nowrap class="form_iname">Username</td>
121
                        <td width="10%" nowrap class="form_iname">Username</td>
114
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
122
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
115
                      </tr>
123
                      </tr>
116
                      <tr>
124
                      <tr>
117
                        <td nowrap class="form_iname">Password</td>
125
                        <td nowrap class="form_iname">Password</td>
118
                        <td><input name="user_password" type="password" class="form_ivalue" size="20"></td>
126
                        <td><input name="user_password" type="password" class="form_ivalue" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></td>
119
                      </tr>
127
                      </tr>
120
                      <tr>
128
                      <tr>
121
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
129
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
122
                        <td valign="top">&nbsp;</td>
130
                        <td valign="top">&nbsp;</td>
123
                      </tr>
131
                      </tr>
124
                  </table></td>
132
                  </table></td>
125
                </tr>
133
                </tr>
126
                <tr>
134
                <tr>
127
                  <td background="images/bg_drk_bage_pane.gif">
135
                  <td background="images/bg_drk_bage_pane.gif">
128
				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
136
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
129
                      <tr>
137
                      <tr>
130
                        <td><%=ProgressBar()%></td>
138
                        <td><%=ProgressBar()%></td>
131
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
139
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
132
                      </tr>
140
                      </tr>
133
                  </table></td>
141
                  </table></td>
134
                </tr>
142
                </tr>
135
              </table>			  </td>
143
              </table>          </td>
136
            </tr>
144
            </tr>
137
          </table></td>
145
          </table></td>
138
        </tr>
146
        </tr>
139
      </table>
147
      </table>
140
	  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
148
     <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
141
	  </td>
149
     </td>
142
  </tr>
150
  </tr>
143
  <tr>
151
  <tr>
144
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
152
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
145
  </tr>
153
  </tr>
146
<%=objPMod.ComposeHiddenTags()%>
154
<%=objPMod.ComposeHiddenTags()%>