-
Notifications
You must be signed in to change notification settings - Fork 0
/
Email.php
413 lines (392 loc) · 14.4 KB
/
Email.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<?php
// Initialize the session
session_start();
$em = "false";
if (isset($_POST['submit'])){
$Email = $_POST['Email'];
$to = "[email protected]";
$subject = $_POST['sub'];
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <$email>' . "\r\n";
if(mail($to,$subject,$message,$headers) == TRUE){
$em = "true";
}
}
if(!isset($_SESSION['username']) || empty($_SESSION['username']))
{
header("location: login.php");
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="viewport" content="width=device-width" />
<title>Gamer Emporium | Email</title>
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/responsee.css">
<link rel="stylesheet" href="owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="owl-carousel/owl.theme.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="js/modernizr.js"></script>
<script type="text/javascript" src="js/responsee.js"></script>
<script type="text/javascript" src="owl-carousel/owl.carousel.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#owl-demo").owlCarousel({
navigation : true,
slideSpeed : 300,
paginationSpeed : 400,
autoPlay : true,
singleItem:true
});
});
$(document).ready(function() {
$("#owl-demo2").owlCarousel({
items : 4,
lazyLoad : true,
autoPlay : true,
navigation : true,
pagination : false
});
});
</script>
<style>
Right{
right: 0px;
position: fixed;
text-align: center;
top: 0px;
}
Right-21{
right: 21px;
position: fixed;
text-align: center;
top: 0px;
}
</style>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="size-960">
<?php
if($em == "true"){
?>
<div class="alert alert-success alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Subscribed!</strong> You are now Subscribed to our weekly Newsletter.
</div>
<?php
}
else
{
}
?>
<!-- HEADER -->
<header>
<div class="line">
<div class="w3-container w3-black">
<div class="s-6 l-2">
<img src="img/logo.png" width="189" height="69">
</div>
</div>
</div>
<!-- TOP NAV -->
<div class="line">
<nav class="margin-bottom">
<p class="nav-text">Custom menu text</p>
<div class="top-nav s-12 l-10">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="Shop.php">Shop</a>
<ul>
<?php
if (isset($_SESSION['username'])){
?>
<li><a href="Shop/Video Games.php">Video Games</a>
<ul>
<li><a href="Shop/Video Games/Consoles.php">Consoles</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony.php">Sony</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/Ps1.php">Playstation 1</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/Ps1/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps1/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps1/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps2.php">Playstation 2</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/Ps2/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps2/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps2/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps3.php">Playstation 3</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/Ps3/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps3/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/Ps3/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Sony/PsP.php">Playstation Poratable</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/PsP/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/PsP/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/PsP/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Sony/PS Move.php">Playstation Move</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Sony/PS Move/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/PS Move/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Sony/PS Move/Accessories.php">Accessories</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Nintendo.php">Nintendo</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Nintendo/Wii.php">Wii</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Nintendo/Wii/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/Wii/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/Wii/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Nintendo/GameCube.php">GameCube</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Nintendo/GameCube/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/GameCube/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/GameCube/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Nintendo/Nintendo 64.php">Nintendo 64</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Nintendo/Nintendo 64/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/Nintendo 64/Games.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Nintendo/Nintendo 64/Games.php">Accessories</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/ATARI.php">ATARI</a>
<ul>
<li><a href="Shop/Video Games/Consoles/ATARI/2600.php">2600</a>
<ul>
<li><a href="Shop/Video Games/Consoles/ATARI/2600/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/ATARI/2600/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/ATARI/2600/Accessories.php">Accessories</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Microsoft.php">Microsoft</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox.php">Xbox</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox 360.php">Xbox 360</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox 360/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox 360/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/Xbox 360/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/Microsoft/PC.php">PC</a>
<ul>
<li><a href="Shop/Video Games/Consoles/Microsoft/PC/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/PC/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/Microsoft/PC/Accessories.php">Accessories</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/SEGA.php">SEGA</a>
<ul>
<li><a href="Shop/Video Games/Consoles/SEGA/Genesis.php">Genesis</a>
<ul>
<li><a href="Shop/Video Games/Consoles/SEGA/Genesis/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/SEGA/Genesis/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/SEGA/Genesis/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/GameGear.php">GameGear</a>
<ul>
<li><a href="Shop/Video Games/Consoles/GameGear/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/GameGear/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/GameGear/Accessories.php">Accessories</a></li>
</ul>
</li>
<li><a href="Shop/Video Games/Consoles/DreamCast.php">DreamCast</a>
<ul>
<li><a href="Shop/Video Games/Consoles/DreamCast/Games.php">Games</a></li>
<li><a href="Shop/Video Games/Consoles/DreamCast/Systems.php">Systems</a></li>
<li><a href="Shop/Video Games/Consoles/DreamCast/Accessories.php">Accessories</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Video Games/Plug N Plays.php">Plug N Plays</a>
<ul>
<li><a href="Shop/Video Games/Plug N Plays/JAKKS.php">Jakks Pacific</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="Shop/Toys.php">Toys</a>
<ul>
<li><a href="Shop/Toys/Stuffed Animals.php">Stuffed Animals</a>
<ul>
<li><a href="Shop/Toys/Stuffed Animals/Beanie Babies.php">Beanie Babies</a>
<li><a href="Shop/Toys/Stuffed Animals/Beanie Babies/TY.php">TY</a></li>
<li><a href="Shop/Toys/Stuffed Animals/Beanie Babies/Nintendo.php">Nintendo</a></li>
</li>
</ul>
</li>
<li><a href="Shop/Dart Guns.php">Dart Guns</a>
<ul>
<li><a href="Shop/Dart Guns/Toys/Dart Guns/Nerf.php">Nerf</a></li>
<li><a href="Shop/Dart Guns/Toys/Dart Guns/Buzz Bee.php">Buzz Bee</a></li>
<li><a href="Shop/Dart Guns/Toys/Dart Guns/Boom Co.php">Boom Co.</a></li>
</ul>
</li>
<li><a href="Shop/Toys/Collectibles.php">Collectibles</a></li>
<li><a href="Shop/Toys/Trading Cards.php">Trading Cards</a>
<ul>
<li><a href="Shop/Toys/Trading Cards/TCG.php">TCG</a>
<ul>
<li><a href="Shop/Toys/Trading Cards/TCG/Pokemon.php">Pokemon</a></li>
<li><a href="Shop/Toys/Trading Cards/TCG/Yu-gi-oh.php">YuGiOh</a></li>
</ul>
</li>
<li><a href="Shop/Toys/Trading Cards/Sports Cards.php">Sports Cards</a>
<ul>
<li><a href="Shop/Toys/Trading Cards/Sports Cards/BaseBall.php">BaseBall</a></li>
<li><a href="Shop/Toys/Trading Cards/Sports Cards/FootBall.php">FootBall</a></li>
<li><a href="Shop/Toys/Trading Cards/Sports Cards/BasketBall.php">BasketBall</a></li>
<li><a href="Shop/Toys/Trading Cards/Sports Cards/Hockey.php">Hockey</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<?php
}
else
{
}
?>
<li><a href="Company.html">Company</a>
<ul>
<li><a href="About.html">About</a></li>
<li><a href="Location.html">Location</a></li>
</ul>
</li>
<li><a href="Contact.html">Contact</a>
<ul>
<li><a href="Contact.html">Email</a></li>
<li><a href="Contact.html">Facebook</a></li>
</ul>
</li>
</ul>
<?php
if(isset($_SESSION['username']))
{
?>
<ul>
<li><a href="logout.php">Logout</a></li>
</ul>
<?php
}
else if(!isset($_SESSION['username']))
{
?>
<ul>
<li><a href="signup.php">Sign Up / Login</a></li>
</ul>
<?php
}
?>
</div>
<div class=" hide-s l-2">
<i class="icon-facebook_circle icon2x right padding"></i>
</div>
</nav>
</div>
</header>
<div class="line">
<div class="container">
<div class="row">
<div class=".col-sm-4">
</div>
<div class=".col-sm-4">
<head>
<p class="Right-21"><font size="20"><strong>Send Us an Email</strong> </font> </p>
</head>
<form method="post">
<div class="form-group">
<label for="usr">Name:</label>
<input type="text" class="form-control" id="usr">
</div>
<div class="form-group">
<label for="Email">Email:</label>
<input type="text" class="form-control" id="Email">
</div>
<div class="form-group">
<label for="sub">Subject:</label>
<input type="text" class="form-control" id="sub">
</div>
<div class="form-group">
<label for="comment">Comment:</label>
<textarea class="form-control" rows="5" id="comment"></textarea>
</div>
<button type="submit" class="btn btn-default" id="submit">Submit</button>
</form>
</div>
<div class=".col-sm-4">
</div>
</div>
</div>
</div>
</body>
</html>