-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
47 lines (33 loc) · 1.05 KB
/
index.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
<?php
// Destroying any existing session will allow the user to start over fresh each time they hit index.
session_start();
session_unset();
session_destroy();
?>
<html>
<?php
include 'header.php';
?>
<body>
<table style="width: 40%"><tr><td align="right"><a href="http://www.mailchimp.com">visit mailchimp</a></td></tr></table>
<!-- Using a table for the form, as I just thought it looked nice, and it was quick -->
<table style="outline: thin solid; width: 40%">
<tr bgcolor="#6DC5DC"><th height="30">Please Enter a <sub><img src="/austin/mclogo.png" alt="MailChimp" height="20" width="80"></sub> API Key</th></tr>
<tr style="outline: thin solid"><td><br>
<!-- Including a form action using the htmlspecialchars to prevent scripting exploits in the URL. A cool trick I saw on the internet! -->
<form action="
<?php
echo htmlspecialchars('/austin/lists.php');
?>
" method="post">
<center><input type="text" size="60" name="apikey"></center>
<br>
<center><input type="submit"></center>
</form>
</td></tr>
</table>
</body>
<?php
include 'footer.php';
?>
</html>