-
Notifications
You must be signed in to change notification settings - Fork 54
/
tag.php
85 lines (67 loc) · 2.13 KB
/
tag.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
<?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;
$settings = new settings;
$noti = new notifications;
$message = new message;
$tags = new tags;
?>
<?php
if ($universal->checkGet($_GET['tag']) == false) {
header('Location:'.DIR);
}
if ($universal->isLoggedIn() == false) {
header("Location:". DIR ."/login");
}
$tag = $_GET['tag'];
$session = $_SESSION['id'];
?>
<?php
$title = "{$noti->titleNoti()} *$tag • Hashtag";
$keywords = "$tag, Hashtag, Share and capture world's moments";
$desc = "View people with $tag tag • Hashtag";
?>
<?php include_once 'includes/header.php'; ?>
<?php include_once 'needs/heading.php'; ?>
<?php include_once 'needs/nav.php'; ?>
<div class="user_info" data-tag='<?php echo $tag; ?>' data-userid='<?php echo $session; ?>'></div>
<div class="overlay"></div>
<div class="notify"><span></span></div>
<div class="badshah">
<div class="senapati">
<div class="hashtag_info tag_info inst">
<span>*<?php echo $tag; ?></span>
<span class="no_of_tag_peop"><?php echo $tags->noOfTagPeople($tag); ?> members</span>
</div>
<div class="prajkumar view_rajkumar">
<div class="tagged_people">
<?php $tags->sameTagPeople($tag); ?>
</div>
</div>
<div class="srajkumar">
<div class="your_tags inst">
<span>Your tags</span>
<div class="y_tags_main">
<?php $tags->userTags($session, "page") ?>
</div>
</div>
<div class="your_tags inst pop_tags">
<span>Most popular tags</span>
<div class="y_tags_main">
<?php $tags->popularTags(); ?>
</div>
</div>
</div>
</div>
</div>
<?php include_once 'needs/profile_avatars.php'; ?>
<?php include_once 'needs/display.php'; ?>
<?php include_once 'needs/prompt.php'; ?>
<?php include_once 'needs/image_show.php'; ?>
<?php include_once 'needs/stickers.php'; ?>
<?php include_once 'needs/search.php'; ?>
<?php include_once 'includes/footer.php'; ?>