-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
executable file
·51 lines (45 loc) · 1.62 KB
/
dashboard.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
</head>
<body>
<?php
require "header.php";
require "prevent_login.php";
require "prevent_protocols/prevent_staff.php";
require "cms-nav_stu.php";
if(isset($_GET['login'])) {
if ($_GET['login'] == 'successful'){
echo "<script>window.alert('Login was successful!');</script>";
echo "<h4> Welcome ".$_SESSION['uid']." to the dashboard!</h4>";
$url = "../personal_details.php";
echo "<a href='".$url."'>Update Details</a>";
}
}
if(isset($_GET['signup'])) {
if ($_GET['signup'] == 'successful'){
echo "<script>window.alert('Signup was successful!');</script>";
echo "<h4> Welcome ".$_SESSION['uid']." to the dashboard!</h4>";
$url = "../personal_details.php";
echo"<a href='".$url."'>Update Details</a>";
}
}
if(isset($_GET['passwordchange'])){
if($_GET['passwordchange'] == 'success'){
echo"<h4>Password changed successfully!</h4>";
}
}
if(isset($_GET['pictureupdate'])){
if($_GET['pictureupdate'] == 'success'){
echo"<h4>Profile picture uploaded successfully!</h4>";
}
}
//require "nav-bar.php";
require "stu-notice_table.php";
require "footer.php";
?>
</body>
</html>