-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.php
More file actions
44 lines (44 loc) · 1.51 KB
/
project.php
File metadata and controls
44 lines (44 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
<?php
session_start();
?>
<html>
<head>
<title>SRKR Resources</title>
<link rel="stylesheet" href="styles/project.css">
</head>
<body>
<nav>
<div class="logo">
<img src="images/logo.png" alt="logo">
</div>
<div class="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="project.php">Projects</a></li>
<li><a href="contactus.php">Contact us</a></li>
<li><a href="profile.php">Profile</a></li>
<li><a href="">|</a></li>
<li><a href="login.php">
<?php if(isset($_SESSION['id'])){ echo "Logout";}
else{ echo "Login";};
?>
</a></li>
</ul>
</div>
</nav>
<div class="content">
<center>
<?php
if (isset($_SESSION['id'])){
echo "<h1>Welcome, ".$_SESSION['name']."</h1>
<div class='logs'><a href='search.php'><button type='button'>Search project</button></a></div>
<div class='logs'><a href='upload.php'><button type='button'>Upload project</button></a></div>";
}
else {
echo "<h1>Please login to access the resources.</h1>";
};
?>
</center>
</div>
</body>
</html>