-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
31 lines (29 loc) · 1.06 KB
/
plugin.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
<?php include("core/json.php"); include('functions.php'); ?>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<title><?php echo $name; ?> - search</title>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<?php include("core/menu.php"); ?>
</head>
<body>
<?php
if (!file_get_contents("plugins/". $_GET['page']. "/type.txt") == "page"){
echo "Not a valid page plugin";
echo '<footer>
<center>© '.$copyright.' </center>
</footer>';
exit();
}
?>
<?php
include("plugins/". $_GET['page']. "/core.php");
?>
</body>
<footer>
<center>© <?php print($copyright); ?></center>
</footer>
</html>