-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.cfm
116 lines (104 loc) · 5.29 KB
/
index.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!--- generate a seed id for later hashing with CryptoJS --->
<cfset seedId = 's' & LCase(Left(Hash(CreateUUID()),RandRange(8,16))) />
<!--- generate a seed value for later hashing with CryptoJS --->
<cfset seedVal = Left(Hash(CreateUUID(),'SHA-512'),RandRange(16,32)) />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.ico">
<title><cfoutput>#APPLICATION.siteName#</cfoutput></title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="//cdn.vsgcom.net/css/jumbotron.css" rel="stylesheet">
<!--- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.cfm"><cfoutput>#APPLICATION.siteLongName#</cfoutput></a>
</div>
<div class="navbar-collapse collapse">
<form class="navbar-form navbar-right" role="form" method="post" action="login.cfm" onSubmit="hashIt();">
<cfoutput><input type="hidden" id="#seedId#" name="ff#LCase(Hash('seedId','SHA-256'))#" value="#seedVal#" /></cfoutput>
<div class="form-group">
<input type="email" placeholder="Email" class="form-control" name="email" id="email" required>
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control" name="password" id="password" required>
</div>
<button name="btn_Submit" type="submit" class="btn btn-success">Sign in</button>
</form>
</div><!---/.navbar-collapse --->
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1><cfoutput>#APPLICATION.siteLongName#</cfoutput></h1>
<p>This site is designed to allow development, design and IT professionals who speak at user groups and conferences to add their information to our database, and those seeking speakers for their events to search our database to find suitable speakers and contact them.</p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<h2>Search Speakers</h2>
<p>Enter your natural language search terms below to search for speakers by location, name, or specialty. Optionally, use AND to search multiple terms.</p>
<form class="form-horizontal" role="form" method="post" action="speakers.cfm">
<cfoutput><input type="hidden" name="mode" value="#Hash('search','SHA-512')#" /></cfoutput>
<p><input type="search" class="form-control input-md" name="search" placeholder="Enter search term AND search term" required>
<div class="checkbox">
<label for="onlineSearch">
<input name="onlineSearch" id="onlineSearch" value="1" type="checkbox">
Search Only Online Speakers
</label>
</div></p>
<p><button type="submit" class="btn btn-primary">Search Speakers</button></p>
</form>
</div>
<div class="col-md-4">
<h2>Browse Speakers</h2>
<p>If you would prefer to browse through available speakers by location instead of searching for them, use our convenient browse functions to list speakers available in your area.</p>
<p> </p>
<p> </p>
<p><a class="btn btn-info" href="browse.cfm" role="button">Browse Speakers</a></p>
</div>
<div class="col-md-4">
<h2>Speaker Sign Up</h2>
<p>Are you a development, design or IT professional with experience and interest in speaking to user groups and at conferences? Use our easy sign-up form to add your information to our database!</p>
<p> </p>
<p> </p>
<p><a class="btn btn-success" href="signup.cfm" role="button">Sign Up Now</a></p>
</div>
</div>
<hr>
<cfinclude template="includes/footer.cfm" />
</div> <!--- /container --->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="//cdn.vsgcom.net/js/sha384.js"></script>
<cfoutput>
<script type="text/javascript">
var $pwd = $('##password');
var $sd = $('###seedId#');
function hashIt() {
$pwd.val(CryptoJS.SHA384($pwd.val()));
$pwd.val(CryptoJS.SHA384($pwd.val() + $sd.val()));
};
</script>
</cfoutput>
</body>
</html>