-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·150 lines (143 loc) · 6.99 KB
/
header.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php include 'database.php'?>
<?php
session_start();
$categories = get_category_list();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Project Hub</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="manifest" href="site.webmanifest"> -->
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.png">
<!-- CSS here -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/owl.carousel.min.css">
<link rel="stylesheet" href="/css/magnific-popup.css">
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/themify-icons.css">
<link rel="stylesheet" href="/css/nice-select.css">
<link rel="stylesheet" href="/css/flaticon.css">
<link rel="stylesheet" href="/css/gijgo.css">
<link rel="stylesheet" href="/css/animate.css">
<link rel="stylesheet" href="/css/slicknav.css">
<link rel="stylesheet" href="/css/style.css">
<!-- <link rel="stylesheet" href="css/responsive.css"> -->
</head>
<body>
<!-- header-start -->
<header>
<div class="header-area ">
<div id="sticky-header" class="main-header-area">
<div class="container-fluid p-0">
<div class="row align-items-center no-gutters">
<div class="col-xl-2 col-lg-2">
<div class="logo-img">
<a href="/index.html">
<img src="/img/logo.png" alt="">
</a>
</div>
</div>
<div class="col-xl-7 col-lg-7">
<div class="main-menu d-none d-lg-block">
<nav>
<ul id="navigation">
<li><a href="/index.html">Home</a></li>
<li><a href="#">Projects <i class="ti-angle-down"></i></a>
<ul class="submenu">
<?php foreach($categories as $category):?>
<li>
<a href="/category/<?php echo $category['id']?>/<?php echo preg_replace('/\s+/', '-', $category['name'])?>"><?php echo $category['name']?></a>
</li>
<?php endforeach?>
</ul>
</li>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
</ul>
</nav>
</div>
</div>
<div class="col-xl-3 col-lg-3 d-none d-lg-block">
<div class="log_chat_area d-flex align-items-center">
<?php if(isset($_SESSION['signed_in']) && $_SESSION['signed_in']):?>
<a class="login"><i class="flaticon-user"></i><span><?php echo $_SESSION['user_name']?></span></a>
<a href="/signout.php" class="login"><span>Sign Out</span></a>
<?php else:?>
<a href="#test-form" class="login popup-with-form"><span>Sign In</span></a>
<?php endif?>
</div>
</div>
<div class="col-12">
<div class="mobile_menu d-block d-lg-none"></div>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- header-end -->
<!-- form itself end-->
<form id="test-form" class="white-popup-block mfp-hide" method="POST" action="/signin.php">
<div class="popup_box ">
<div class="popup_inner">
<div class="logo text-center">
<a href="#">
<img src="/img/form-logo.png" alt="">
</a>
</div>
<h3>Sign in</h3>
<form method="POST" action="/signin.php">
<div class="row">
<div class="col-xl-12 col-md-12">
<input type="text" name="email" placeholder="Email" required="true">
</div>
<div class="col-xl-12 col-md-12">
<input type="password" name="password" placeholder="Password" required="true">
</div>
<div class="col-xl-12">
<button type="submit" class="boxed_btn_orange">Sign in</button>
</div>
</div>
</form>
<p class="doen_have_acc">Don’t have an account? <a class="dont-hav-acc" href="#test-form2">Sign Up</a></p>
</div>
</div>
</form>
<!-- form itself end -->
<!-- form itself end-->
<form id="test-form2" class="white-popup-block mfp-hide" method="POST" action="/signup.php">
<div class="popup_box ">
<div class="popup_inner">
<div class="logo text-center">
<a href="#">
<img src="/img/form-logo.png" alt="">
</a>
</div>
<h3>Resistration</h3>
<form>
<div class="row">
<div class="col-xl-12 col-md-12">
<input type="text" name="username" placeholder="Username" required="true">
</div>
<div class="col-xl-12 col-md-12">
<input type="email" name="email" placeholder="Email" required="true">
</div>
<div class="col-xl-12 col-md-12">
<input type="password" name="password" placeholder="Password" required="true">
</div>
<div class="col-xl-12 col-md-12">
<input type="Password" name="password_check" placeholder="Confirm password" required="true">
</div>
<div class="col-xl-12">
<button type="submit" class="boxed_btn_orange">Sign Up</button>
</div>
</div>
</form>
</div>
</div>
</form>
<!-- form itself end -->