-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.php
47 lines (47 loc) · 1.41 KB
/
sitemap.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
<body style="margin: 0; font-size: 120%; line-height: 2; font-family: sans-serif;">
<div style="background: whitesmoke; padding: 10vh 10vw;">
<h1 style="font-size: 150%">Site map</h1>
<ul>
<li><?php $company = "International"; ?>
<strong><?php echo "Oswald $company"; ?></strong>
<ul>
<li><a href="https://oswald.international">Home page</a></li>
<?php
$dir = "text/";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != "..") {
$file_ext = str_replace(".html", "", $file);
echo "<li><a href='https://oswald.international/$file_ext'>" . ucfirst($file_ext) . "</a></li>";
}
}
closedir($dh);
}
}
?>
</ul>
</li>
<li><?php $company = "International"; ?>
<strong><?php echo "Oswald $company"; ?></strong>
<ul>
<li><a href="https://oswald.international">Home page</a></li>
<?php
$dir = "text/";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != "..") {
$file_ext = str_replace(".html", "", $file);
echo "<li><a href='https://oswald.international/$file_ext'>" . ucfirst($file_ext) . "</a></li>";
}
}
closedir($dh);
}
}
?>
</ul>
</li>
</ul>
</div>
</body>