-
Notifications
You must be signed in to change notification settings - Fork 0
/
privacy-policy.php
342 lines (341 loc) · 15.7 KB
/
privacy-policy.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<?php
include 'include/functions.php';
include 'include/config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php
echo "Privacy & Policy" . " - " . siteinfo('site_name');
?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='../../upload/img/<?php echo siteinfo('favicon'); ?>' rel='icon' type='image/x-icon' />
<link rel="stylesheet" href="../../assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../../assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../assets/css/public-style.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="/index.php">
<img src="../../upload/img/<?php echo siteinfo('logo'); ?>" width="130" height="30">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon">
</span>
</button>
<div class="collapse navbar-collapse dark" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/index.php">Home</a>
</li>
<?php if (isset($_SESSION['loginsuccessuser'])) { ?>
<li class="nav-item">
<a class="nav-link" href="/user/index.php">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/user/logout.php">Log Out</a>
</li>
<?php } else { ?>
<li class="nav-item">
<a class="nav-link" href="/signin.php">Sign In</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/signup.php">Sign Up</a>
</li>
<?php } ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Categorys</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<?php
$category_query = "SELECT * FROM categorys";
$category_query_result = mysqli_query($conn, $category_query);
$category_count = mysqli_num_rows($category_query_result);
if ($category_count > 0) {
while ($category_row = mysqli_fetch_assoc($category_query_result)) {
$category_name = $category_row['name'];
$category_perma = $category_row['permalink'];
?>
<a class="dropdown-item" href="/category/<?php echo $category_perma; ?>"><?php echo $category_name; ?></a>
<?php
}
} else {
echo '<a class="dropdown-item">No Category</a>';
}
?>
</div>
</li>
</ul>
<div class="form-inline mt-2 mt-md-0">
<ul class="list-unstyled list-inline text-center">
<li class="list-inline-item">
<a class="btn-floating btn-fb mx-1" href="<?php echo siteinfo('facebook'); ?>" style="color: #ffffff;"><i class="fa fa-facebook-square fa-1x" aria-hidden="true"></i></a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-tw mx-1" href="<?php echo siteinfo('twitter'); ?>" style="color: #ffffff;"><i class="fa fa-twitter-square fa-1x" aria-hidden="true"></i></a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-gplus mx-1" href="<?php echo siteinfo('instagram'); ?>" style="color: #ffffff;"><i class="fa fa-instagram fa-1x" aria-hidden="true"></i></a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-li mx-1" href="<?php echo siteinfo('youtube'); ?>" style="color: #ffffff;"><i class="fa fa-youtube-square fa-1x" aria-hidden="true"></i></a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-dribbble mx-1" href="<?php echo "mailto:" . siteinfo('email'); ?>" style="color: #ffffff;"><i class="fa fa-envelope fa-1x" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<?php
$header_ads = mysqli_query($conn, "SELECT * FROM ads WHERE id = 1 AND status='Active'");
while ($header_ads_row = mysqli_fetch_assoc($header_ads)) {
$header_ads_code = $header_ads_row['code'];
?>
<div class="widget">
<div>
<?php echo $header_ads_code; ?>
</div>
</div>
<?php } ?>
<div class="row">
<div class="col-sm-8">
<div class="blog-post hentry index-post">
<?php
$privacy_query = mysqli_query($conn, "SELECT * FROM pages WHERE id = 4 AND status = 'Active'");
while ($privacy_query_row = mysqli_fetch_assoc($privacy_query)) {
$title = $privacy_query_row['title'];
$maintopic = $privacy_query_row['main_topic'];
?>
<h1 class="post-title"><?php echo $title; ?></h1>
<div class="post-body"><?php echo $maintopic; ?>
<div class="sectionbtn">
<ul class="social-btns">
<li>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" class="social-btn-flip" rel="nofollow">
<div class="social-btn-cube">
<i class="social-btn-face default fa fa-lg fa-facebook facebook"></i>
<i class="social-btn-face active fa fa-lg fa-facebook facebook"></i>
</div>
</a>
</li>
<li>
<a target="_blank" href="https://twitter.com/intent/tweet?url=<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" class="social-btn-flip" rel="nofollow">
<div class="social-btn-cube">
<i class="social-btn-face default fa fa-lg fa-twitter twitter"></i>
<i class="social-btn-face active fa fa-lg fa-twitter twitter"></i>
</div>
</a>
</li>
<li>
<a target="_blank" href="https://www.linkedin.com/shareArticle?url=<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" class="social-btn-flip" rel="nofollow">
<div class="social-btn-cube">
<i class="social-btn-face default fa fa-lg fa fa-linkedin linkedin"></i>
<i class="social-btn-face active fa fa-lg fa fa-linkedin linkedin"></i>
</div>
</a>
</li>
<li>
<a target="_blank" href="https://web.whatsapp.com/send?text=<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" class="social-btn-flip" rel="nofollow">
<div class="social-btn-cube">
<i class="social-btn-face default fa fa-lg fa-whatsapp whatsapp"></i>
<i class="social-btn-face active fa fa-lg fa-whatsapp whatsapp"></i>
</div>
</a>
</li>
</ul>
</div>
</div>
<?php
}
?>
</div>
</div>
<div class="col-sm-4">
<div class="widget">
<div class="widget-title">
<h3 class="title">Search</h3>
</div>
<div class="widget-content">
<div>
<form action="/search.php">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Search..." name="s" required>
<div class="input-group-append">
<input class="btn btn-outline-secondary" type="submit" value="Go">
</div>
</div>
</form>
</div>
</div>
</div>
<?php
$sidebar_ads = mysqli_query($conn, "SELECT * FROM ads WHERE id = 2 AND status='Active'");
while ($sidebar_ads_row = mysqli_fetch_assoc($sidebar_ads)) {
$sidebar_ads_code = $sidebar_ads_row['code'];
?>
<div class="widget">
<div>
<?php echo $sidebar_ads_code; ?>
</div>
</div>
<?php } ?>
<div class="widget">
<div class="widget-title">
<h3 class="title">Category</h3>
</div>
<div class="widget-content">
<ul class="list-group">
<?php
$category_query = "SELECT * FROM categorys ORDER BY name";
$category_query_result = mysqli_query($conn, $category_query);
$category_count = mysqli_num_rows($category_query_result);
if ($category_count > 0) {
while ($category_row = mysqli_fetch_assoc($category_query_result)) {
$category_name = $category_row['name'];
$category_permalink = $category_row['permalink'];
?>
<li class="cat-list d-flex justify-content-between align-items-center"><?php echo "<a href='/category/" . $category_permalink . "' style='test-align: left;'>" . $category_name . "</a>";
$post_count_cat_query = "SELECT * FROM posts WHERE category = '$category_name' AND status = 'Active'";
$post_count_cat_result = mysqli_query($conn, $post_count_cat_query);
$post_count_cat = mysqli_num_rows($post_count_cat_result);
echo "<span class='badge badge-dark badge-pill'>" . $post_count_cat . "</span>"; ?></li>
<?php
}
} else {
echo '<li class="cat-list d-flex justify-content-between align-items-center">No Category.</li>';
}
?>
</ul>
</div>
</div>
</div>
</div>
<?php
$footer_ads = mysqli_query($conn, "SELECT * FROM ads WHERE id = 3 AND status='Active'");
while ($footer_ads_row = mysqli_fetch_assoc($footer_ads)) {
$footer_ads_code = $footer_ads_row['code'];
?>
<div class="widget">
<div>
<?php echo $footer_ads_code; ?>
</div>
</div>
<?php } ?>
</div>
<footer class="page-footer font-small pt-4 bg-dark">
<div class="container text-center text-md-left">
<div class="row">
<div class="col-md-4 mx-auto">
<h5 class="font-weight-bold text-uppercase mt-3 mb-4">
<?php echo siteinfo('site_name'); ?>
</h5>
<p style="text-align:justify;"><?php echo siteinfo('description'); ?>
</p>
<a href="/about-us.php">
<span class="readmore">Read More</span><br><br>
</a>
</div>
<hr class="clearfix w-100 d-md-none">
<div class="col-md-4 mx-auto">
<h5 class="font-weight-bold text-uppercase mt-3 mb-4">Popular Posts
</h5>
<?php
$popular_post_view_query = "SELECT * FROM posts WHERE status = 'Active' ORDER BY views desc LIMIT 0, 2";
$popular_post_view_query_result = mysqli_query($conn, $popular_post_view_query);
if (mysqli_num_rows($popular_post_view_query_result) > 0) {
while ($popular_post_view_row = mysqli_fetch_assoc($popular_post_view_query_result)) {
$post_id = $popular_post_view_row['id'];
$post_date = $popular_post_view_row['datetime'];
$post_title = $popular_post_view_row['title'];
$post_image = $popular_post_view_row['image'];
$post_post = $popular_post_view_row['post'];
?>
<div class="row">
<div class="col-3">
<a class="post-title" href="/article/<?php echo $post_id; ?>">
<img alt="<?php echo $post_title; ?>" src="../../upload/<?php echo $post_image; ?>" width="80" height="65" class="popular-post-thumb">
</a>
</div>
<div class="col-8">
<a class="post-title" href="/article/<?php echo $post_id; ?>">
<?php echo $post_title; ?>
</a>
<div class="date">
<i class="fa fa-clock-o" aria-hidden="true">
</i>
<?php echo $post_date; ?>
</div>
</div>
</div>
<br>
<?php
}
} else {
echo "No post found.";
}
?>
</div>
<hr class="clearfix w-100 d-md-none">
<div class="col-md-2 mx-auto">
<h5 class="font-weight-bold text-uppercase mt-3 mb-4">Links
</h5>
<ul class="list-unstyled">
<li>
<a href="/about-us.php">About Us</a>
</li>
<li>
<a href="/contact-us.php">Contact Us</a>
</li>
<li>
<a href="/advertise.php">Advertise</a>
</li>
<li>
<a href="/privacy-policy.php">Privacy & Policy</a>
</li>
</ul>
</div>
</div>
</div>
<hr>
<ul class="list-unstyled list-inline text-center">
<li class="list-inline-item">
<a class="btn-floating btn-fb mx-1" href="<?php echo siteinfo('facebook'); ?>">
<i class="fa fa-facebook-square fa-2x" aria-hidden="true">
</i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-tw mx-1" href="<?php echo siteinfo('twitter'); ?>">
<i class="fa fa-twitter-square fa-2x" aria-hidden="true">
</i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-gplus mx-1" href="<?php echo siteinfo('instagram'); ?>">
<i class="fa fa-instagram fa-2x" aria-hidden="true">
</i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-li mx-1" href="<?php echo siteinfo('youtube'); ?>">
<i class="fa fa-youtube-square fa-2x" aria-hidden="true">
</i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-dribbble mx-1" href="<?php echo "mailto:" . siteinfo('email'); ?>">
<i class="fa fa-envelope fa-2x" aria-hidden="true">
</i>
</a>
</li>
</ul>
<div class="footer-copyright text-center py-3">Copyright © <?php echo date("Y"); ?>
<a href="/index.php"><?php echo siteinfo('site_name'); ?></a>
</div>
</footer>
<script src="../assets/js/jquery-3.5.1.slim.min.js"></script>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
</body>
</html>