forked from GreggJuanEduardoPH/Instagram-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
53 lines (47 loc) · 1.59 KB
/
404.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()} Egads! Error • Instagram";
$keywords = "eror, 404, document not found, webpage not found, Instagram, Share and capture world's moments";
$desc = "There's been an error • Instagram";
?>
<?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, that page doesn't exist!</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';
}
?>