forked from jstolpe/blog_code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
68 lines (67 loc) · 1.52 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
<?php
// get files in the current directory
$files = scandir( getcwd() );
?>
<!DOCTYPE html>
<html>
<head>
<title>
Justin Stolpe's YouTube and Blog Code
</title>
<meta charset="utf-8">
<meta name="title" content="Justin Stolpe's YouTube and Blog Code" />
<meta name="description" content="This site contains the code from my YouTube and Blog tutorials." />
<meta name="keywords" content="Programming, Coding, Developer" />
<meta name="author" content="Justin Stolpe" />
<meta name="robots" content="index, follow" />
</head>
<body>
<h1>
Justin Stolpe's YouTube and Blog Code
</h1>
<h2>
Programming | Coding | Developer
</h2>
<hr />
<h3>
Tutorial Code
</h3>
<ul>
<?php foreach ( $files as $file ) : ?>
<?php if ( '.' != $file && '..' != $file && '.git' != $file && 'README.md' != $file && '.htaccess' != $file ) : ?>
<li>
<a href="<?php echo $file; ?>">
<?php echo $file; ?>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<hr />
<h3>
Links
</h3>
<ul>
<li>
<a href="https://youtube.com/justinstolpe" target="_blank">
YouTube
</a>
</li>
<li>
<a href="https://justinstolpe.com/blog/" target="_blank">
Blog
</a>
</li>
<li>
<a href="https://justinstolpe.com" target="_blank">
Justin's Website
</a>
</li>
<li>
<a href="https://github.com/jstolpe/" target="_blank">
GitHub
</a>
</li>
</ul>
</body>
</html>