forked from Subhajit25Mondal/hashtag.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
no_user.php
53 lines (47 loc) · 1.54 KB
/
no_user.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
<?php include 'config/declare.php'; ?>
<!-- a universal file that has all the classes included -->
<?php include 'config/classesGetter.php'; ?>
<!-- creating objects -->
<?php
$universal = new universal;
$avatar = new Avatar;
$noti = new notifications;
$message = new message;
?>
<?php
$title = "{$noti->titleNoti()} Member not found • Hashtag";
$keywords = "eror, 404, document not found, webpage not found, Hashtag, Share and capture world's moments";
$desc = "There's been an error • Hashtag";
?>
<?php
if ($universal->isLoggedIn()) {
include 'includes/header.php';
include 'needs/heading.php';
include 'needs/nav.php';
include_once 'needs/search.php';
} else if ($universal->isLoggedIn() == false) {
include 'index_include/index_header.php';
}
?>
<div class="badshah">
<div class="err">
<h1>Oops, no such member found!</h1>
<img src="<?php echo DIR; ?>/images/needs/error-3.svg" alt="404">
<?php
if ($universal->isLoggedIn()) {
?>
<a href="<?php echo DIR; ?>/profile/<?php echo $universal->getUsernameFromSession(); ?>" class="sec_btn">View profile</a>
<a href="<?php echo DIR; ?>" class="pri_btn">Try going to homepage</a>
<?php } else { ?>
<a href="<?php echo DIR; ?>/login" class="sec_btn">Login</a>
<a href="<?php echo DIR; ?>" class="pri_btn">Try going to homepage</a>
<?php } ?>
</div>
</div>
<?php
if ($universal->isLoggedIn()) {
include 'includes/footer.php';
} else if ($universal->isLoggedIn() == false) {
include 'index_include/index_footer.php';
}
?>