-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
48 lines (37 loc) · 885 Bytes
/
Copy pathindex.php
File metadata and controls
48 lines (37 loc) · 885 Bytes
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
<head>
<link rel="shortcut icon" type="image" href="images/elogo_1.png" />
<title>XCC Website</title>
</head>
<style>
h1 {
text-align: center;
font-size: 40;
}
h2 {
text-align: center;
}
a {
font-size: 20;
}
</style>
<body>
<h1>XCC Website</h1>
<p> The somewhat offical website for XCC </p>
<hr>
<h2>Personal Pages</h2>
<hr>
<?php
// Directory all the pages will be on, then scans and sorts it
$dir = 'personal-pages';
$pages = scandir($dir, 1);
// Prints them out, will remove in future
// print_r($pages);
// print_r($pages);
// Gives you links to them
//Goes through the array minus the last to elements since those lead to the directory and not an actual page
for ($i = 0; $i < count($pages) - 2; $i += 1) {
echo '<a href="personal-pages/', $pages[$i], '">', $pages[$i], '</a><br>';
}
?>
<h2> MORE CONTENT COMING SOON </h2>
</body>