-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq.php
70 lines (63 loc) · 2.44 KB
/
faq.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
<?php
require "api/functions.php";
require "api/users/cookies.php";
require "api/games/functions.php";
$parsedown = new Parsedown();
$parsedown->setSafeMode(true);
$parsedown->setMarkupEscaped(true);
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<?php
$title = "FAQ";
require "head.php"
?>
</head>
<body>
<!-- Header Section Begin -->
<header class="header">
<?php require "header.php" ?>
</header>
<!-- Header End -->
<!-- Blog Details Section Begin -->
<section class="blog-details spad">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-lg-8">
<div class="blog__details__content">
<div class="blog__details__text faq">
<?php
try {
$file = fopen(__DIR__ . "/FAQ.md", "r");
if (!$file) echo '<p>Không thể mở được tệp tin FAQ.md. Vui lòng kiểm tra lại tệp tin đó ở thư mục gốc của website.</p>';
else {
$markdown = fread($file, filesize(__DIR__ . "/FAQ.md"));
echo $parsedown->text($markdown);
fclose($file);
}
}
catch (Exception $ex) {
echo '<p>Không thể mở được tệp tin FAQ.md. Vui lòng kiểm tra lại tệp tin đó ở thư mục gốc của website.</p><p>' . $ex->getMessage() . '</p>';
}
?>
</div>
</div>
</div>
</div>
</section>
<!-- Blog Details Section End -->
<!-- Footer Section Begin -->
<footer class="footer">
<?php require "footer.php" ?>
</footer>
<!-- Footer Section End -->
<!-- Js Plugins -->
<script src="/js/jquery-3.3.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/mixitup.min.js"></script>
<script src="/js/jquery.slicknav.js"></script>
<script src="/js/owl.carousel.min.js"></script>
<script src="/js/main.js"></script>
</body>
</html>