forked from EvanHahn/two-factor-auth-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
102 lines (77 loc) · 2.83 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
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
<?php
// security headers
$csp = "default-src none;style-src 'self'";
header('Content-Security-Policy: ' . $csp);
header('X-Content-Security-Policy: ' . $csp);
header('X-WebKit-CSP: ' . $csp);
header('X-XSS-Protection: 1; mode=block');
header_remove('X-Powered-By');
// other headers
header('Content-Type: text/html; charset=utf-8');
header('X-UA-Compatible: IE=edge');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="the.css">
<title>two-factor authentication list</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<header>
<div class="logo">
<div class="container">
<h1>two-factor authentication list</h1>
</div>
</div>
<div class="description">
<div class="container">
<p>Two-factor authentication requires an additional step in addition to entering your password, usually by sending a message to your mobile phone or using an app in your smartphone. It'll make you more secure.</p>
</div>
</div>
</header>
<?php $services = json_decode(file_get_contents('./data.json'))->services ?>
<ul id="service-list" class="container">
<?php foreach ($services as &$service): ?>
<li>
<h1><?php echo $service->name ?></h1>
<?php if (isset($service->url)): ?>
<a title="Enable it" href="<?php echo $service->url ?>" target="_blank">
Enable it
</a>
<?php endif ?>
<?php if (isset($service->howto)): ?>
<a title="How-to" href="<?php echo $service->howto ?>" target="_blank">
How-to
</a>
<?php endif ?>
<?php if (isset($service->info)): ?>
<a title="Info" href="<?php echo $service->info ?>" target="_blank">
Info
</a>
<?php endif ?>
</li>
<?php endforeach ?>
</ul>
<footer>
<div class="container">
<p>
Lovingly made by <a href="http://evanhahn.com">Evan Hahn</a> with contributions from
<a href="http://twitter.com/_MattDolan">Matt Dolan</a>,
<a href="http://williamella.com/">Billy Ella</a>,
<a href="http://www.linkedin.com/pub/russ-fink/38/401/97b/">Russ Fink</a>,
<a href="http://blog.gastown.biz/">Kevin Hiebert</a>,
<a href="http://mathiasjakobsen.dk/">Mathias Jakobsen</a>,
<a href="https://twitter.com/jacobamunch">Jacob Munch</a>,
<a href="http://about.me/abhisekp/">Abhisek Pattnaik</a>,
Roy Pitchon,
Andrew Uhl,
and <a href="http://physicianfamily.com/">Physician Family Financial Advisors</a>.
❤</p>
<p>Want to add a website? <a href="mailto:[email protected]">Send me an email</a> or <a href="https://github.com/EvanHahn/two-factor-auth-list/edit/master/data.json">send a pull request on GitHub</a>. I'll credit you and the internet will love you forever.</p>
<p><a href="https://github.com/EvanHahn/two-factor-auth-list">Check this project out on GitHub</a>, too. There are pictures of fire.</p>
</div>
</footer>
</body>
</html>