forked from kumar-kshitij/NotesAggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
62 lines (47 loc) · 1.51 KB
/
index.php
File metadata and controls
62 lines (47 loc) · 1.51 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
<?php
session_start();
if(!isset($_SESSION['username'])){
header("Location: login.php");
}
error_reporting(0);
include("connection.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Notes+</title>
<?php include("css.php"); ?>
<?php include("js.php"); ?>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<ul class="nav navbar-nav">
<li class="heading"><img src="images/book.png" width="100px" /> <strong>Notes</strong> <i class="fa fa-plus-circle" aria-hidden="true"></i></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><img src="images/ad1.png" width="225px" /></li>
<li><img src="images/ad2.png" width="100px" /></li>
</ul>
</div>
</nav>
<div class="container">
<nav>
<ul class="nav nav-tabs">
<li class="<?php if($_GET['page']==1){ echo 'active'; } ?>"><a href="?page=1">Upload</a></li>
<li class="<?php if($_GET['page']==2){ echo 'active'; } ?>"><a href="?page=2">Download</a></li>
<li class="<?php if($_GET['page']==3){ echo 'active'; } ?>"><a href="?page=3">Profile Settings</a></li>
<li class="navbar-right"><a href="logout.php">Log Out</a></li>
</ul>
</nav>
</div>
<?php
switch($_GET['page']){
case 1: include("upload.php");break;
case 2: include("download.php");break;
case 3: include("pr_settings.php");break;
}
?>
</body>
</html>