forked from nussucommit/artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
guide.php
32 lines (29 loc) · 960 Bytes
/
guide.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
<?php
session_start();
if(!isset($_SESSION['user_id']) || !isset($_SESSION['user_name'])){
header("Location: login");
exit;
}
?>
<html>
<head>
<title>NUSSU commIT</title>
<link href="includes/css/bootstrap.min.css" rel="stylesheet">
<link href="includes/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="includes/css/style.css" rel="stylesheet">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="includes/js/bootstrap.min.js"></script>
</head>
<body>
<?php $page = "guide"; ?>
<?php include(dirname(__FILE__).'/includes/header.php');?>
<div class="container">
<h1>Guide</h1>
<?php
$myfile = fopen("data/guide.html", "r") or die("Unable to open file!");
echo fread($myfile,filesize("data/guide.html"));
?>
</div>
<?php include(dirname(__FILE__).'/includes/footer.php');?>
</body>
</html>