-
Notifications
You must be signed in to change notification settings - Fork 0
/
emailLogin.phtml
115 lines (95 loc) · 5.23 KB
/
emailLogin.phtml
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
<?php
$hostname="localhost:3306";
$username="jyang";
$password="Lucky12345!";
$dbname="WifiLogin";
$tablename="WifiLoginSubmission";
$user_submission = $_POST["32411"];
$type = 'Email';
$date_time = $_POST["date_time"];
$client_ip = $_POST["clientIp"];
$client_mac = $_POST["clientMac"];
$node_id = $_POST["nodeId"];
$node_mac = $_POST["nodeMac"];
$gateway_id = $_POST["gatewayId"];
$con = mysql_connect($hostname, $username, $password) or die ("<html><script language='JavaScript'>alert('Unable to connect to database! Please try again later.'),history.go(-1)</script></html>");
$db_found = mysql_select_db($dbname) or die ("<html><script language='JavaScript'>alert('Could not select database.'),history.go(-1)</script></html>");
if($db_found) {
$dupCheck = mysql_query("SELECT * FROM $tablename WHERE UserSubmission = '$user_submission' LIMIT 1");
$num_rows = mysql_num_rows($dupCheck);
// Check if there are dups in the db
if($num_rows == 0) { // if no dup add it
$query = "INSERT INTO $dbname.$tablename (UserSubmission, Type, Date_Time, ClientIp, ClientMac, NodeId, NodeMac, GatewayId, Artist1, Artist2, Artist3, Genre1, Genre2, Genre3, Track1, Track2, Track3) VALUES ('$user_submission', '$type','$date_time', '$client_ip', '$client_mac', '$node_id', '$node_mac', '$gateway_id', '', '', '', '', '', '', '', '', '')";
$result = mysql_query($query) or die ("<html><script language='JavaScript'>alert('Query Failed.'),history.go(-1)</script></html>");
}
}
mysql_close($con);
?>
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the faviconFolder directory -->
<link rel="apple-touch-icon" sizes="152x152" href="faviconFolder/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="faviconFolder/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="faviconFolder/favicon-16x16.png">
<link rel="manifest" href="faviconFolder/manifest.json">
<link rel="mask-icon" href="faviconFolder/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" type="text/css" href="css/loginCSS.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/spot_fb_button.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- FACEBOOK LOGIN SCRIPT -->
<div id="fb-root"></div>
<script type="text/javascript" src="js/facebook.js"></script>
<!-- Add your site or application content here -->
<div class="Wrapper">
<picture class="bgPic">
<source media="(min-width: 631px)" srcset="img/SplashPage_Bg.png">
<source media="(max-width: 630px)" srcset="img/Mob_SplashPage_Bg.png">
<img src="img/SplashPage_Bg" alt="Lucky Brand Public Wi-Fi Splash Page Image">
</picture>
<div class="EmailForm">
<div class="LogoWrapper">
<img src="img/SplashPage_Logo_03.png" alt="Lucky Brand Logo">
</div>
<p class="MiddleRow">Connecting</p>
<!-- Pending Icon -->
<div class="sk-circle">
<div class="sk-circle1 sk-child"></div>
<div class="sk-circle2 sk-child"></div>
<div class="sk-circle3 sk-child"></div>
<div class="sk-circle4 sk-child"></div>
<div class="sk-circle5 sk-child"></div>
<div class="sk-circle6 sk-child"></div>
<div class="sk-circle7 sk-child"></div>
<div class="sk-circle8 sk-child"></div>
<div class="sk-circle9 sk-child"></div>
<div class="sk-circle10 sk-child"></div>
<div class="sk-circle11 sk-child"></div>
<div class="sk-circle12 sk-child"></div>
</div>
<div id="delay"></div>
<!-- </form> -->
</div>
</div>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript" src="js/emailLogin.js"></script>
</body>
</html>