-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.php
More file actions
93 lines (90 loc) · 5.29 KB
/
navbar.php
File metadata and controls
93 lines (90 loc) · 5.29 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.php">Quizzy</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="index.php">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.php">About Us</a></li>
<li class="nav-item"><a class="nav-link" href="privacy-policy.php">Privacy Policy</a></li>
<li class="nav-item"><a class="nav-link" href="terms.php">Terms and Conditions</a></li>
</ul>
</div>
</div>
</nav>
<?php
if(isset($_GET['signupsuccess']) && $_GET['signupsuccess'] == "true"){
echo '<div class="alert alert-success alert-dismissible fade show my-0" role="alert">
<strong>Success!</strong> Your account has been created. Check your mail and activate your account.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['signupsuccess']) && $_GET['signupsuccess'] == "false" && $_GET['error'] == "Email already exists."){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Failed!</strong> Email Already Exists.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['signupsuccess']) && $_GET['signupsuccess'] == "false" && $_GET['error'] == "Passwords do not match"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Failed!</strong> Passwords do not match.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['signupsuccess']) && $_GET['signupsuccess'] == "false" && $_GET['error'] == "Length too small"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Failed!</strong> Password is too small.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['reset-success']) && $_GET['reset-success'] == "false" && $_GET['error'] == "Email don't exist in database"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Sorry! </strong> Email does not exist in database
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['reset-success']) && $_GET['reset-success'] == "true"){
echo '<div class="alert alert-success alert-dismissible fade show my-0" role="alert">
<strong>Success! </strong> Reset verification email sent.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['activate-success']) && $_GET['activate-success'] == "true"){
echo '<div class="alert alert-success alert-dismissible fade show my-0" role="alert">
<strong>Success! </strong> Account verified.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['activate-success']) && $_GET['activate-success'] == "false" && $_GET['error'] == "Something went wrong"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Ghosh! </strong> Something went wrong.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['loginsuccess']) && $_GET['loginsuccess'] == "false" && $_GET['error'] == "Wrong Cridentials"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Sorry! </strong> Wrong Cridentials
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['loginsuccess']) && $_GET['loginsuccess'] == "false" && $_GET['error'] == "Create Account first"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Sorry! </strong> Create Account first
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['loginsuccess']) && $_GET['loginsuccess'] == "false" && $_GET['error'] == "Activate account"){
echo '<div class="alert alert-danger alert-dismissible fade show my-0" role="alert">
<strong>Sorry! </strong> Activate your account.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
if(isset($_GET['msg']) && $_GET['msg'] == "Profile Updated"){
echo '<div class="alert alert-success alert-dismissible fade show my-0" role="alert">
<strong>Wow! </strong>Profile has been updated. Login Again.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';}
?>