-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patholdIndex.php
205 lines (183 loc) · 7.1 KB
/
oldIndex.php
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php
$con = mysqli_connect('localhost','u155678759_axy','Aviavi200100!','u155678759_databasename1');
//mysqli_select_db($con,'epiz_24668685_quizworld2');
if(!$con){
echo 'error connection: ' . mysqli_connect_error();
}
// $get = mysqli_query($con,"SELECT ID FROM tablename");
// $option = '';
// while($row = mysqli_fetch_assoc($get))
// {
// if($row['ID']!="1")$option .= '<option value = "'.$row['class'].'">'.$row['class'].'</option>';
// }
if(!empty($_GET['msg']))
{
$msg = $_GET['msg'];
if($msg == "switchpc")
{
if(session_status() == PHP_SESSION_ACTIVE) session_destroy();
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Welcome</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<link href="dist/fonts/gfonts.css" rel="stylesheet">
<link rel="stylesheet" href="dist/css/bootstrap/bootstrap(3).css">
<script src="dist/js/jquery-1.12.4.min.js"></script>
<script src="dist/js/popper.min.js"></script>
<!-- <link rel="stylesheet" href="dist/css/bootstrap/bootstrap(2).css"> -->
<script src="dist/js/bootstrap.min.js"></script>
<script src="dist/js/jquery-ui.min.js"></script>
<script src="dist/js/jquery.backstretch.min.js"></script>
<link rel="stylesheet" type="text/css" href="dist/css/style.css">
<!--
font-family: 'Montserrat', sans-serif;
font-family: 'Open Sans', sans-serif;
-->
<style type="text/css">
html{
background: linear-gradient(199deg, #1eb1f6, #ac34f7, #ffc800);
background-size: 600% 600%;
animation: Infinity 30s ease infinite;
}
@keyframes Infinity {
0%{background-position:0% 50%}
50%{background-position:100% 51%}
100%{background-position:0% 50%}
}
</style>
</head>
<body style="display:grid;background:none;">
<div id="containah" style="display: flex;height: 100%;background:transparent;">
<div class="row specialRow">
<h3 class="text-center" style="color:white; width: 100%;font-size: 32px;text-shadow: 1px 1px 3px black;"> Incentives Program </h3><br>
<div class="col-lg-6" style="margin-left: auto;margin-right: auto;">
<div class="card">
<h4 class="card-header text-center"> Login </h4>
<form action="login.php" style="margin-bottom: 0.75rem;" method="post">
<div class="form-group">
<input id="nameInput" autocomplete="off" autocapitalize="word" type="text" name="user" id="user" placeholder="Username" class="form-control">
</div>
<div class="form-group">
<input id="passInput" autocomplete="off" autocapitalize="word" type="password" name="pass" id="pass" placeholder="Password" class="form-control">
</div>
<button class="btn btn-success d-block m-auto" type="submit"> Sign In </button>
</form>
</div>
</div>
<!-- <div class="col-lg-6">
<div class="card">
<h4 class="card-header text-center"> Register </h4>
<br>
<form action="registration.php" style="margin-bottom: 0.75rem;" method="post">
<div class="form-group">
<input autocapitalize="word" type="text" name="user" placeholder="First Name" id="user" class="form-control">
</div>
<div class="form-group">
<input autocapitalize="word" type="text" name="pass" placeholder="Last Name" id="pass" class="form-control">
</div>
<select name="class" class="custom-select"style="margin-left: 20px;max-width: 361px;background-color: transparent;filter: invert();border-color: black;color: black;font-size: 19px;margin-bottom: 1rem !important;">
<?php echo $option; ?>
</select>
<button class="btn btn-success d-block m-auto" type="submit"> Register </button>
<div class="duplicate"> </div>
</form>
</div>
</div> -->
</div>
</div>
</body>
<script>
// $("#passInput").hide();
// $.backstretch([
// 'background/1 (0).jpg',
// 'background/1 (1).jpg',
// 'background/1 (2).jpg',
// 'background/1 (3).jpg',
// 'background/1 (4).jpg',
// 'background/1 (5).jpg',
// 'background/1 (6).jpg',
// 'background/1 (7).jpg',
// 'background/1 (8).jpg',
// 'background/1 (9).jpg',
// 'background/1 (10).jpg',
// 'background/1 (12).jpg',
// 'background/1 (13).jpg',
// 'background/1 (14).jpg'
// ], {
// fade: 750,
// duration: 10000,
// preload: 1, //Use the lazy-loading functionality
// start: 0 //Optional - now starts with "dome.jpg"
// });
// $(document).ready(function() {
// });
$('.DL-extension-container').parent().hide();
$(window).on("backstretch.after", function (e, instance, index) {
//$('.backstretch-item').animate({zoom: '110%'},15000);
$('.backstretch-item').css("transform","scale(1.05)");
});
// $("#passInput").focus(function(){
// var usrValue = $("#nameInput").val().toLowerCase();
// if (usrValue == "admin")
// {
// this.type = 'password';
// }
// else if (usrValue == "teacher")
// {
// this.type = 'password';
// }
// else
// {
// this.type = 'text';
// this.
// }
// });
var msg = "<?php if(!empty($_GET['msg']))echo $_GET['msg']; ?>";
if(msg == "nousr")
{
var nr = Math.floor(Math.random() * 10);
var str2 ='';
if(nr == 0) str2 = 'perhaps you should learn to type your own name?';
else if(nr == 1) str2 = 'truly truly I say unto you, try again and you will eventually succeed.';
else if(nr == 2) str2 = 'please try again.';
else if(nr == 3) str2 = 'type it again, carefully!';
else if(nr == 4) str2 = 'you should consider getting new glasses so you can type it correctly.';
else if(nr == 5) str2 = 'type your name again.';
else if(nr == 6) str2 = 'ask your teacher to type your name for you if you cannot do it yourself.';
else if(nr == 7) str2 = 'your turret has been destroyed, DEFEAT! JK try again.';
else if(nr == 8) str2 = 'if you keep getting this message contact your teacher, perhaps your name has not been registered.';
else if(nr == 9) str2 = "perhaps your name exists, perhaps not, it's a mystery, try again so you can figure it out!";
var str = '<div style="position: absolute;width: 100%;display: flex;"><div style="width: max-content;margin: auto;margin-top: 1em;background-color: #FF4136DB;" class="alert alert-dismissible alert-danger"><button type="button" class="close">×</button>This name cannot be found, '+str2+'</div></div>';
$("#containah").prepend(str);
}
else if(msg == "switchpc")
{
var str ='<div style="position: absolute;width: 100%;display: flex;"><div style="width: max-content;margin: auto;margin-top: 1em;background-color: #FF4136DB;" class="alert alert-dismissible alert-danger"><button type="button" class="close">×</button>You have signed in to another computer, so I have signed you out from this one.</div></div>';
$("#containah").prepend(str);
}
// $("#nameInput").on('keyup', function (e) {
// var usrValue = $("#nameInput").val().toLowerCase();
// if (usrValue == "admin")
// {
// $("#passInput").show(500);
// $("#passInput").focus();
// }
// else if (usrValue == "teacher")
// {
// $("#passInput").show(500);
// $("#passInput").focus();
// }
// else
// {
// $("#passInput").hide(500);
// }
// });
$(".alert button.close").click(function (e) {
$(this).parent().fadeOut(1000);
});
</script>
</html>