| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
| 129 |
ghuddy |
5 |
'| SIGN UP |
|
|
|
6 |
'| |
|
| 119 |
ghuddy |
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
12 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="sec/Crypt.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
'------------ ACCESS CONTROL ------------------
|
|
|
22 |
%>
|
|
|
23 |
<!--#include file="_access_control_general.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ Variable Definition -------------
|
|
|
26 |
'------------ Constants Declaration -----------
|
|
|
27 |
'------------ Variable Init -------------------
|
|
|
28 |
'----------------------------------------------
|
|
|
29 |
%>
|
|
|
30 |
<%
|
|
|
31 |
Sub Sign_Up_User ( SSfullname, SSemail, SSusername, SSpassword, SSdomainauth, SSdomain_name )
|
| 129 |
ghuddy |
32 |
Dim SEQ_user_id
|
|
|
33 |
|
|
|
34 |
If User_Name_Exists ( SSusername ) Then
|
|
|
35 |
' Username exists
|
|
|
36 |
Session("AdditionalParams") = "$USERNAME$,"& SSusername
|
|
|
37 |
Response.Redirect("message.asp?msg=202-14")
|
|
|
38 |
End If
|
|
|
39 |
|
|
|
40 |
SEQ_user_id = Get_From_DUAL("SEQ_USER_ID.nextval")
|
|
|
41 |
If SSdomainauth = "" Then
|
|
|
42 |
SSdomainauth = "N"
|
|
|
43 |
SSpassword = EnCrypt( SSpassword )
|
|
|
44 |
End If
|
|
|
45 |
SSfullname = Replace( SSfullname, "'", "''")
|
|
|
46 |
SSemail = Replace( SSemail, "'", "''")
|
|
|
47 |
|
|
|
48 |
objEH.TryORA ( OraSession )
|
|
|
49 |
On Error Resume Next
|
|
|
50 |
OraDatabase.ExecuteSQL " INSERT INTO users (user_id, full_name, user_name, user_password, user_email, domain_auth, domain_name, disabled)"&_
|
|
|
51 |
" VALUES ( "& SEQ_user_id &", '"& SSfullname &"', '"& SSusername &"', '"& SSpassword &"', '"& SSemail &"', '"& SSdomainauth &"', '"& SSdomain_name &"', 'Y' )"
|
|
|
52 |
objEH.CatchORA ( OraSession )
|
|
|
53 |
|
| 119 |
ghuddy |
54 |
End Sub
|
|
|
55 |
%>
|
|
|
56 |
<%
|
|
|
57 |
'--- Process submition ---
|
|
|
58 |
If CBool(QStrPar("action")) Then
|
| 1376 |
dpurdie |
59 |
' All mandatory parameters FOUND
|
| 129 |
ghuddy |
60 |
Call Sign_Up_User ( Request("FRfullname"), Request("FRemail"), Request("FRusername"), Request("FRpassword"), Request("FRdomainauth"), Request("FRdomain_name") )
|
|
|
61 |
Call Send_Email ( Request("FRfullname"), Request("FRemail"), adminEmail, "Release Manager - New Member Signed Up", "Please enable this account for use.", NULL )
|
|
|
62 |
|
|
|
63 |
Response.Redirect("message.asp?msg=200-6")
|
| 119 |
ghuddy |
64 |
End If
|
|
|
65 |
%>
|
|
|
66 |
<html>
|
|
|
67 |
<head>
|
|
|
68 |
<title>Release Manager</title>
|
|
|
69 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
70 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
71 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
72 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
73 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
74 |
<!-- TIPS -->
|
|
|
75 |
<script language="JavaScript" src="images/tipster.js"></script>
|
|
|
76 |
<script language="JavaScript" src="images/_help_tips.js"></script>
|
|
|
77 |
<script language="JavaScript">
|
|
|
78 |
<!--
|
|
|
79 |
// Auto username
|
|
|
80 |
function AutoUsername() {
|
| 129 |
ghuddy |
81 |
var email,autouser,p;
|
|
|
82 |
email=String(document.signup.FRemail.value);
|
|
|
83 |
autouser=email.substring(0,email.indexOf('@'));
|
|
|
84 |
if (document.signup.FRusername.value=='') document.signup.FRusername.value = autouser;
|
| 119 |
ghuddy |
85 |
}
|
|
|
86 |
|
|
|
87 |
function DisablePassword() {
|
| 129 |
ghuddy |
88 |
if (MM_findObj("FRdomainauth").checked) {
|
|
|
89 |
MM_findObj("FRdomain_name").disabled=false;
|
|
|
90 |
MM_findObj("FRstatus3").value='';
|
|
|
91 |
MM_findObj("FRpassword").disabled=true;
|
|
|
92 |
MM_findObj("FRpasswordc").disabled=true;
|
|
|
93 |
MM_findObj("FRstatus1").value='Not Required!';
|
|
|
94 |
MM_findObj("FRstatus2").value='Not Required!';
|
|
|
95 |
} else {
|
|
|
96 |
MM_findObj("FRdomain_name").disabled=true;
|
|
|
97 |
MM_findObj("FRstatus3").value='Not Required!';
|
|
|
98 |
MM_findObj("FRpassword").disabled=false;
|
|
|
99 |
MM_findObj("FRpasswordc").disabled=false;
|
|
|
100 |
MM_findObj("FRstatus1").value='';
|
|
|
101 |
MM_findObj("FRstatus2").value='';
|
|
|
102 |
}
|
| 119 |
ghuddy |
103 |
}
|
|
|
104 |
|
|
|
105 |
//-->
|
|
|
106 |
</script>
|
|
|
107 |
</head>
|
|
|
108 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
109 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
110 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
111 |
<!----------------------------------------------------->
|
|
|
112 |
<!-- HEADER -->
|
| 2365 |
dpurdie |
113 |
<!--#include file="_header.asp"-->
|
| 119 |
ghuddy |
114 |
<!-- BODY ---->
|
|
|
115 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 129 |
ghuddy |
116 |
<tr>
|
|
|
117 |
<td width="1%" background="images/bg_member_dark.gif" valign="top">
|
| 119 |
ghuddy |
118 |
<!-- MEMBERS MENU ---------------------------------------------->
|
|
|
119 |
<!-- MEMBERS MENU END ------------------------------------------>
|
|
|
120 |
</td>
|
|
|
121 |
<td width="1%" valign="top" background="images/bg_member_light.gif"><a href="index.asp" class="form_txt_link"><img src="images/i_home.gif" width="13" height="12" border="0" align="absmiddle">Exit</a></td>
|
| 129 |
ghuddy |
122 |
<td rowspan="2" valign="top" width="1%" background="images/bg_member_light.gif" nowrap>
|
| 119 |
ghuddy |
123 |
<!------------------------------------------->
|
|
|
124 |
<br>
|
|
|
125 |
<span class="mmb_ttl">Sign Up</span><br>
|
|
|
126 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
127 |
<form name="signup" method="post" action="sign_up.asp" onSubmit="MM_validateForm('FRfullname','Name and Surname','R','FRemail','Email','RisEmail','FRusername','Username','RisCleanStrinLength2:','FRpassword','Password','isCleanStrisPasswordinLength6:');return document.MM_returnValue">
|
| 129 |
ghuddy |
128 |
<tr>
|
| 119 |
ghuddy |
129 |
<td width="1%"> </td>
|
|
|
130 |
<td><img src="images/h_trsp_dot.gif" width="500" height="30"></td>
|
|
|
131 |
<td width="1%"> </td>
|
|
|
132 |
</tr>
|
| 129 |
ghuddy |
133 |
<tr>
|
| 119 |
ghuddy |
134 |
<td align="left" valign="top" width="1%" background="images/bg_member_dark.gif"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
135 |
<td background="images/bg_member_dark.gif" align="left" class="wform_ttl"> </td>
|
|
|
136 |
<td align="right" valign="top" width="1%" background="images/bg_member_dark.gif"> </td>
|
|
|
137 |
</tr>
|
| 129 |
ghuddy |
138 |
<tr>
|
| 119 |
ghuddy |
139 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
140 |
<td bgcolor="#FFFFFF" valign="top" class="form_item"> <br>
|
|
|
141 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 129 |
ghuddy |
142 |
<tr>
|
| 119 |
ghuddy |
143 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
| 129 |
ghuddy |
144 |
<td width="1%" nowrap class="form_group" valign="bottom">PERSONAL
|
| 119 |
ghuddy |
145 |
DETAILS</td>
|
|
|
146 |
<td nowrap width="100%" align="right" class="form_step"><img src="images/h_trsp_dot.gif" width="350" height="10"></td>
|
|
|
147 |
</tr>
|
| 129 |
ghuddy |
148 |
<tr>
|
| 119 |
ghuddy |
149 |
<td width="1%"> </td>
|
| 129 |
ghuddy |
150 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Name
|
| 119 |
ghuddy |
151 |
and Surname</td>
|
| 129 |
ghuddy |
152 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
153 |
<input type="text" name="FRfullname" class="form_item">
|
|
|
154 |
</td>
|
|
|
155 |
</tr>
|
| 129 |
ghuddy |
156 |
<tr>
|
| 119 |
ghuddy |
157 |
<td width="1%"> </td>
|
|
|
158 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Email</td>
|
| 129 |
ghuddy |
159 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
160 |
<input type="text" name="FRemail" value="@erggroup.com" class="form_item" onblur="AutoUsername()">
|
|
|
161 |
</td>
|
|
|
162 |
</tr>
|
| 129 |
ghuddy |
163 |
<tr>
|
| 119 |
ghuddy |
164 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
165 |
<td width="1%" nowrap class="form_group" valign="bottom"><br>
|
|
|
166 |
LOGIN DETAILS</td>
|
|
|
167 |
<td nowrap width="100%" align="right" class="form_step"> </td>
|
|
|
168 |
</tr>
|
| 129 |
ghuddy |
169 |
<tr>
|
| 119 |
ghuddy |
170 |
<td width="1%"> </td>
|
|
|
171 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Username</td>
|
| 129 |
ghuddy |
172 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
173 |
<input type="text" name="FRusername" class="form_item">
|
|
|
174 |
<!-- <input type="checkbox" name="FRdomainauth" value="Y" onClick="DisablePassword();"> -->
|
| 129 |
ghuddy |
175 |
<input type="checkbox" name="FRdomainauth" value="Y" onClick="DisablePassword();">
|
| 119 |
ghuddy |
176 |
<span class="form_txt">Domain User</span><%=Quick_Help ( "domain_user" )%></td>
|
|
|
177 |
</tr>
|
| 129 |
ghuddy |
178 |
<tr>
|
| 119 |
ghuddy |
179 |
<td width="1%"> </td>
|
|
|
180 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Domain Name</td>
|
| 129 |
ghuddy |
181 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
182 |
<input type="text" name="FRdomain_name" class="form_item" disabled><input type="text" name="FRstatus3" class="form_status" disabled value="Not Required!">
|
|
|
183 |
</td>
|
|
|
184 |
</tr>
|
| 129 |
ghuddy |
185 |
<tr>
|
| 119 |
ghuddy |
186 |
<td width="1%"> </td>
|
|
|
187 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Password</td>
|
| 129 |
ghuddy |
188 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
189 |
<input type="password" name="FRpassword" class="form_item"><input type="text" name="FRstatus1" class="form_status" disabled>
|
|
|
190 |
</td>
|
|
|
191 |
</tr>
|
| 129 |
ghuddy |
192 |
<tr>
|
| 119 |
ghuddy |
193 |
<td width="1%"> </td>
|
| 129 |
ghuddy |
194 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
195 |
Password Confirm</td>
|
| 129 |
ghuddy |
196 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 119 |
ghuddy |
197 |
<input type="password" name="FRpasswordc" class="form_item"><input type="text" name="FRstatus2" class="form_status" disabled>
|
|
|
198 |
</td>
|
|
|
199 |
</tr>
|
| 129 |
ghuddy |
200 |
<tr>
|
| 119 |
ghuddy |
201 |
<td width="1%"> </td>
|
|
|
202 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
| 129 |
ghuddy |
203 |
<td nowrap width="100%">
|
| 119 |
ghuddy |
204 |
<input type="hidden" name="action" value="true">
|
|
|
205 |
<input type="submit" name="btn" value="Sign Up" class="form_item">
|
|
|
206 |
<input type="reset" name="btn" value="Cancel" class="form_item" onClick="history.back();">
|
|
|
207 |
<br>
|
|
|
208 |
<br>
|
|
|
209 |
</td>
|
|
|
210 |
</tr>
|
|
|
211 |
</table>
|
| 129 |
ghuddy |
212 |
|
| 119 |
ghuddy |
213 |
<br>
|
|
|
214 |
<br>
|
|
|
215 |
</td>
|
|
|
216 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
|
|
217 |
</tr>
|
| 129 |
ghuddy |
218 |
<tr>
|
| 119 |
ghuddy |
219 |
<td width="1%" background="images/bg_member_dark.gif" valign="bottom"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
220 |
<td background="images/bg_member_dark.gif"></td>
|
|
|
221 |
<td width="1%" background="images/bg_member_dark.gif" valign="bottom" align="right"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
222 |
</tr>
|
|
|
223 |
</form>
|
|
|
224 |
</table>
|
|
|
225 |
<!-------------------------------------------------------->
|
|
|
226 |
<br>
|
|
|
227 |
</td>
|
|
|
228 |
<td rowspan="2" valign="bottom" width="100%" background="images/bg_member_light.gif" align="right"><img src="images/bg_img_member.gif" width="160" height="230" vspace="10" hspace="10"></td>
|
|
|
229 |
</tr>
|
| 129 |
ghuddy |
230 |
<tr>
|
| 119 |
ghuddy |
231 |
<td valign="bottom" align="center" background="images/bg_member_dark.gif"><img src="images/img_members.gif" width="81" height="57" vspace="20" hspace="30"></td>
|
|
|
232 |
<td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
|
|
|
233 |
</tr>
|
|
|
234 |
</table>
|
|
|
235 |
<!-- FOOTER -->
|
|
|
236 |
<!--#include file="_footer.asp"-->
|
|
|
237 |
</body>
|
|
|
238 |
</html>
|
|
|
239 |
<%
|
|
|
240 |
Call Destroy_All_Objects
|
| 129 |
ghuddy |
241 |
%>
|