-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_sites.php
More file actions
70 lines (65 loc) · 1.76 KB
/
Copy path_sites.php
File metadata and controls
70 lines (65 loc) · 1.76 KB
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
include("_header.php");
$list_page = array("privacy-policy","disclaimer","about-us");
if(isset($_GET['page']))
{
$page = $_GET['page'];
if(!in_array($page, $list_page))
{
header("Location: /404");
}
if($page == "privacy-policy")
{
$title_page = "Privacy Policy";
}
elseif($page == "disclaimer")
{
$title_page = "Disclaimer";
}
elseif($page == "about-us")
{
$title_page = "About Us";
}
?>
<div class="container mt-1 p-2 text-light bchan-font-header bchan-head-list-discussion">
<div class="clearfix">
<div class="float-left">
<h2 class="bchan-discussion-list"><b><?php echo $title_page; ?></b></h2>
</div>
<div class="float-right">
<h2 class="bchan-discussion-list"><strong>Bchan Forum</strong></h2>
</div>
</div>
</div>
<div class="container justify-content-center text-dark">
<div class="card">
<div class="card-body">
<?php
switch($page)
{
case "privacy-policy":{
include("page/privacy-policy.html");
}
break;
case "disclaimer":{
include("page/disclaimer.html");
}
break;
case "about-us":{
include("page/about-us.html");
}
break;
}
?>
</div>
</div>
</div>
<?php
}
else{
header("Location: /404");
}
?>
<?php
include("_footer.php");
?>