-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (25 loc) · 733 Bytes
/
Copy pathindex.php
File metadata and controls
27 lines (25 loc) · 733 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
<?php
include('./parsedown-1.7.4/Parsedown.php');
$Parsedown = new Parsedown();
$requested_locale = $_GET["lang"];
$locale = "de";
if($requested_locale == "en") {
$locale = "en";
}
$text = file_get_contents("https://github.com/hmolsen/hmolsen.github.io/raw/main/index-$locale.md");
?>
<!DOCTYPE html>
<html lang="<? echo $locale ?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/github-markdown.min.css">
<link rel="stylesheet" href="css/style.css">
<title>Vulnerads</title>
</head>
<body>
<div class="markdown-body">
<?php echo $Parsedown->text($text); ?>
</div>
</body>
</html>