-
Notifications
You must be signed in to change notification settings - Fork 0
/
_fetch.cfm
90 lines (65 loc) · 2.22 KB
/
_fetch.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!---
Copyright (C) Volition, Inc. 2005. All rights reserved.
All source code herein is the property of Volition, Inc. You may not sell
or otherwise commercially exploit the source or things you created based on the
source.
--->
<cfinclude template="variables.cfm">
<cfinclude template="doctop.cfm">
<!--- Page info goes here --->
<cfif #form.login# IS NOT ''>
<cfquery datasource="PXO" name="get_logins">
SELECT *
FROM Users
WHERE login='#form.login#'
</cfquery>
<cfelseif #form.email# IS NOT ''>
<cfquery datasource="PXO" name="get_logins">
SELECT *
FROM Users
WHERE email='#form.email#'
</cfquery>
<cfelse>
<div class="copy">
You did not fill out the form.
</div>
</cfif>
<cfif #form.login# IS NOT ''>
<cfif get_logins.recordcount IS 0>
<!--- NO LOGIN IN DBASE --->
<div class="copy">
No login "<cfoutput>#form.login#</cfoutput>" is registered.
</div>
</cfif>
<cfmail to="#get_logins.email#" from="[email protected]" subject="Your Parallax Online Account" server="v-exchange.volition.net">
Your Parallax Online password is "#get_logins.password#" for the login "#form.login#".
Thank you!
-Parallax Online Support
</cfmail>
<div class="copy">
Your password has been emailed to <cfoutput>#get_logins.email#</cfoutput>.
</div>
<cfelseif #form.email# IS NOT ''>
<cfif get_logins.recordcount IS 0>
<!--- NO EMAIL IN DBASE --->
<div class="copy">
The email "<cfoutput>#form.email#</cfoutput>" has no registered logins.
</div>
</cfif>
<cfmail to="#form.email#" from="[email protected]" subject="Your Parallax Online Account" server="v-exchange.volition.net">
Here are the logins and passwords for all of the PXO accounts registered to "#form.email#":
<cfloop query="get_logins">
#get_logins.login# : #get_logins.password#
</cfloop>
Thank you!
-Parallax Online Support
</cfmail>
<div class="copy">
All account information has been emailed to <cfoutput>#form.email#</cfoutput>.
</div>
</cfif>
<!--- End page info --->
<cfinclude template="docmid.cfm">
<cfinclude template="menus/_menu_accounts.cfm">
<!--- end menus --->
<cfinclude template="docbot.cfm">