-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirstpage.php
200 lines (147 loc) · 7.17 KB
/
firstpage.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
<DOCTYPE html>
<html>
<head>
<title>Welcome to my cause Site</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/custom.css">
<style>
</style>
<?php
if(!isset($_COOKIE["username"])){
header("Location:login.php");
exit();
}
?>
</head>
<body>
<div class="container-fluid" >
<div class="row">
<div class="col-md-12 header" style="min-height: 100vh;">
<div id="carouselExampleFade" class="carousel slide carousel-fade" data-ride="carousel" style="max-height: 400px;">
<div class="carousel-inner" style="min-height: 100vh;">
<div class="carousel-item active">
<img src="img/1.png" height="650" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="img/2.jpg" height="650" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="img/4.png" height="650" class="d-block w-100" alt="...">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleFade" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleFade" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="row">
<!-- <div class="col-md-12">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01"
aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<a class="navbar-brand" href="#">Home</a>
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item active">
<a class="nav-link" href="boostrap/index.html">More Info <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="bootstrap/index.html">Adopt</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
</div> -->
</div>
<div class="row">
<div class="col-md-8 feed">
<div class="alert alert-success" role="alert">
<h4 class="alert-heading">History!</h4>
Snake is the common name for a video game concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. The concept originated in the 1976 arcade game Blockade, and the ease of implementing Snake has led to hundreds of versions (some of which have the word snake or worm in the title) for many platforms. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in the snake concept as it found a larger audience. There are over 300 Snake-like games for iOS alone.
</p>
<hr>
The Snake design dates back to the arcade game Blockade, developed and published by Gremlin in 1976. It was cloned as Bigfoot Bonkers the same year. In 1977, Atari released two Blockade-inspired titles: the arcade game Dominos and Atari VCS game Surround. Surround was one of the nine Atari VCS (later the Atari 2600) launch titles in the United States and was also sold by Sears under the name Chase. That same year, a similar game was launched for the Bally Astrocade as Checkmate.
</div>
</div>
<div class="col-md-4 sidenav">
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<?php
print "<h1>Welcome back, " . $_COOKIE['username'] . ' Sir.</h1>';
?>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<?php
print "<h6>Your favorite quote for today is: </h6>";
?>
</div>
<div class="alert alert-warning" role="alert">
<?php
// print "Your favorite quote is" . $_COOKIE['username'] . ' Sir ';
include('config.php');
$data = file_get_contents($path.'/data/'.$_COOKIE['username'].'.txt');
$data = explode(',', $data);
print "<h3>$data[1]</h3>";
?>
</div>
</div>
</div>
<div class="row footer">
<div class="col-md-4">
<div class="alert alert-primary" role="alert">
Educations from the game
</div>
<div class="alert alert-warning" role="alert">
<ul>
<li>Snake is a classic game that requires players to assess their surroundings and find the quickest or safest route to a point. This is an excellent opportunity to learn about spatial awareness.
</li>
<li>
The classic game is infamous for using your own success against you when you become so long that you get in your own way. It can teach your child about vital life skills and long term strategic planning.
</li>
<li>
It can be extremely frustrating to reach such a high level and then lose as you crash into your own tail. The game requires patience in order to grow and a cool head once you inevitably lose. These are all valuable skills to learn for a person.
</li>
</ul>
</div>
</div>
<div class="col-md-8">
<div class="jumbotron">
<h1 class="display-4">Wait! Someone has a higher score than you.</h1>
<?php
// print "Your favorite quote is" . $_COOKIE['username'] . ' Sir ';
include('config.php');
$data = file_get_contents($path.'/data/highest.txt');
$data = explode(',', $data);
print "<h3>name: $data[1]</h3>";
print "<h3>score: $data[0]</h3>";
?>
<hr class="my-4">
<a class="btn btn-primary btn-lg" href="game.php" role="button">Trying to beat him/her?</a>
</div>
</div>
</div>
</div>
<a href="logout.php">Logout</a>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
</body>
</html>