25 |
- |
1 |
<?php
|
31 |
- |
2 |
// Include Session Handling
|
65 |
- |
3 |
require_once ('includes/session.php');
|
25 |
- |
4 |
// Include config & login validate file
|
65 |
- |
5 |
require_once ('includes/validateUser.php');
|
25 |
- |
6 |
?>
|
|
|
7 |
<!DOCTYPE html>
|
|
|
8 |
<html lang="en-US">
|
|
|
9 |
<head>
|
|
|
10 |
<!--head-->
|
65 |
- |
11 |
<?php include_once ('elements/head.php'); ?>
|
120 |
- |
12 |
<script src="<?php echo PUBLIC_URL . "js/policies.js?" . filemtime("assets/js/policies.js"); ?>" async defer integrity="sha384-<?php echo base64_encode(hash_file("sha384", "assets/js/policies.js", true)); ?>" crossorigin="anonymous"></script>
|
25 |
- |
13 |
<!--//head-->
|
|
|
14 |
</head>
|
|
|
15 |
<body>
|
43 |
- |
16 |
<div class="main">
|
25 |
- |
17 |
<!--header-->
|
65 |
- |
18 |
<?php include_once ('elements/header.php'); ?>
|
25 |
- |
19 |
<!--//header-->
|
29 |
- |
20 |
|
25 |
- |
21 |
<!--main-->
|
|
|
22 |
<div class="main-content">
|
57 |
- |
23 |
<div class="wrapper-frm bg-light text-dark border shadow text-center">
|
124 |
- |
24 |
<div class="header">
|
107 |
- |
25 |
<h1>Login To Your Account</h1>
|
57 |
- |
26 |
</div>
|
25 |
- |
27 |
<div class="top">
|
65 |
- |
28 |
<?php echo !empty($statusMsg) ? '<p class="status-msg ' . $statusMsgType . '">' . $statusMsg . '</p>' : ''; ?>
|
129 |
- |
29 |
<form id="loginForm" action="<?php echo BASE_URL; ?>userAccount.php" method="post">
|
122 |
- |
30 |
<input type="hidden" name="nonce" value="<?php if (isset($_SESSION['nonce'])) echo $_SESSION['nonce']; ?>" />
|
25 |
- |
31 |
<div class="frm-input">
|
143 |
- |
32 |
<input type="email" name="email" class="email-in" placeholder="Email" required="" aria-label="Email Address" autocomplete="email" />
|
25 |
- |
33 |
</div>
|
|
|
34 |
<div class="frm-input">
|
116 |
- |
35 |
<input type="password" name="password" class="pass-in" placeholder="Password" required="" aria-label="Password" autocomplete="current-password" />
|
25 |
- |
36 |
</div>
|
|
|
37 |
<div class="frm-info">
|
|
|
38 |
<div class="check">
|
116 |
- |
39 |
<input type="checkbox" id="remb" name="rememberMe" value="1" />
|
25 |
- |
40 |
<label for="remb"><span></span>Remember me</label>
|
|
|
41 |
</div>
|
|
|
42 |
<a href="<?php echo BASE_URL; ?>forgotPassword.php">Forgot Password?</a>
|
57 |
- |
43 |
<div class="clearfix"></div>
|
25 |
- |
44 |
</div>
|
|
|
45 |
<div class="frm-btn">
|
57 |
- |
46 |
<button class="btn btn-success" type="submit" name="loginSubmit" value="Sign In">Sign In</button>
|
25 |
- |
47 |
</div>
|
|
|
48 |
</form>
|
129 |
- |
49 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
|
|
|
50 |
document.addEventListener("DOMContentLoaded", function() {
|
134 |
- |
51 |
document.getElementById("loginForm").addEventListener("submit", function(e) {
|
|
|
52 |
if (window.google_tag_manager && window.ga && ga.create) {
|
|
|
53 |
e.preventDefault();
|
|
|
54 |
var form = e.target.closest("form");
|
|
|
55 |
window.dataLayer.push({"event": "login", "method": "Website", "eventTimeout": 2000, "eventCallback": function() { form.submit(); }});
|
|
|
56 |
}
|
129 |
- |
57 |
});
|
|
|
58 |
});
|
|
|
59 |
</script>
|
25 |
- |
60 |
</div>
|
65 |
- |
61 |
<?php if (!empty($fbLoginURL) || !empty($gpLoginURL) || !empty($twLoginURL)) { ?>
|
42 |
- |
62 |
<div class="group">
|
|
|
63 |
<div class="item line"></div>
|
|
|
64 |
<div class="item text">or</div>
|
|
|
65 |
<div class="item line"></div>
|
|
|
66 |
</div>
|
|
|
67 |
<div class="social-icons">
|
107 |
- |
68 |
<h2>Login with your Social Account</h2>
|
42 |
- |
69 |
<div class="check pt-4 pb-2">
|
|
|
70 |
<p id="acceptPoliciesMsg"></p>
|
116 |
- |
71 |
<input type="checkbox" id="acceptPolicies" name="acceptPolicies" value="1" required="" />
|
42 |
- |
72 |
<label for="acceptPolicies"><span></span>I agree to the <a href="../terms.php" target="_blank">Terms of Service</a> and I accept the <a href="../privacy.php" target="_blank">Privacy Policy</a>.</label>
|
|
|
73 |
</div>
|
25 |
- |
74 |
<ul class="bottom-sc-icons">
|
65 |
- |
75 |
<?php if (!empty($fbLoginURL)) { ?>
|
120 |
- |
76 |
<li><a id="fbLoginBtn" href="<?php echo $fbLoginURL; ?>" class="facebook"><i></i><span>Facebook</span></a></li>
|
|
|
77 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
|
|
|
78 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
79 |
document.getElementById("fbLoginBtn").addEventListener("click", function(e) {
|
134 |
- |
80 |
if (!checkAcceptPolicies()) {
|
|
|
81 |
e.preventDefault();
|
|
|
82 |
} else if (window.google_tag_manager && window.ga && ga.create) {
|
|
|
83 |
e.preventDefault();
|
|
|
84 |
var href = e.target.closest("a").href;
|
|
|
85 |
console.log(href);
|
|
|
86 |
window.dataLayer.push({"event": "login", "method": "Facebook", "eventTimeout": 2000, "eventCallback": function() { window.location = href; }});
|
|
|
87 |
}
|
120 |
- |
88 |
});
|
|
|
89 |
});
|
|
|
90 |
</script>
|
65 |
- |
91 |
<?php
|
|
|
92 |
} ?>
|
|
|
93 |
<?php if (!empty($gpLoginURL)) { ?>
|
120 |
- |
94 |
<li><a id="gpLoginBtn" href="<?php echo $gpLoginURL; ?>" class="google"><i></i><span>Google</span></a></li>
|
|
|
95 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
|
|
|
96 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
97 |
document.getElementById("gpLoginBtn").addEventListener("click", function(e) {
|
134 |
- |
98 |
if (!checkAcceptPolicies()) {
|
|
|
99 |
e.preventDefault();
|
|
|
100 |
} else if (window.google_tag_manager && window.ga && ga.create) {
|
|
|
101 |
e.preventDefault();
|
|
|
102 |
var href = e.target.closest("a").href;
|
|
|
103 |
console.log(href);
|
|
|
104 |
window.dataLayer.push({"event": "login", "method": "Google", "eventTimeout": 2000, "eventCallback": function() { window.location = href; }});
|
|
|
105 |
}
|
120 |
- |
106 |
});
|
|
|
107 |
});
|
|
|
108 |
</script>
|
65 |
- |
109 |
<?php
|
|
|
110 |
} ?>
|
|
|
111 |
<?php if (!empty($twLoginURL)) { ?>
|
120 |
- |
112 |
<li><a id="twLoginBtn" href="<?php echo $twLoginURL; ?>" class="twitter"><i></i><span>Twitter</span></a></li>
|
|
|
113 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
|
|
|
114 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
115 |
document.getElementById("twLoginBtn").addEventListener("click", function(e) {
|
134 |
- |
116 |
if (!checkAcceptPolicies()) {
|
|
|
117 |
e.preventDefault();
|
|
|
118 |
} else if (window.google_tag_manager && window.ga && ga.create) {
|
|
|
119 |
event.preventDefault();
|
|
|
120 |
var href = e.target.closest("a").href;
|
|
|
121 |
console.log(href);
|
|
|
122 |
window.dataLayer.push({"event": "login", "method": "Twitter", "eventTimeout": 2000, "eventCallback": function() { window.location = href; }});
|
|
|
123 |
}
|
120 |
- |
124 |
});
|
|
|
125 |
});
|
|
|
126 |
</script>
|
65 |
- |
127 |
<?php
|
|
|
128 |
} ?>
|
25 |
- |
129 |
</ul>
|
57 |
- |
130 |
<div class="clearfix"> </div>
|
25 |
- |
131 |
</div>
|
65 |
- |
132 |
<?php
|
|
|
133 |
} ?>
|
25 |
- |
134 |
<div class="bottom">
|
|
|
135 |
<p>Don't Have an Account? <a href="<?php echo BASE_URL; ?>registration.php">Register Now</a></p>
|
|
|
136 |
</div>
|
57 |
- |
137 |
</div>
|
25 |
- |
138 |
</div>
|
|
|
139 |
<!--//main-->
|
29 |
- |
140 |
|
25 |
- |
141 |
<!--footer-->
|
65 |
- |
142 |
<?php include_once ('elements/footer.php'); ?>
|
25 |
- |
143 |
<!--//footer-->
|
|
|
144 |
</div>
|
|
|
145 |
</body>
|
31 |
- |
146 |
</html>
|
|
|
147 |
<?php MySessionHandler::commit(session_id()); ?>
|