-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadTag.php
More file actions
38 lines (36 loc) · 910 Bytes
/
Copy pathloadTag.php
File metadata and controls
38 lines (36 loc) · 910 Bytes
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
<?php
ob_start();
session_start();
require_once 'include/lib.php';
$user=new user_class();
$filter=new filter_class();
if (isset($_SESSION['id']))
{
$user->id=$_SESSION['id'];
$user->loggedin=true;
$user->set('users',$user->id);
$user->load_vars();
}
if(isset($_POST['tid'])){
$tagObj=new item_class();
$tagObj->set("tags",$_POST['tid']);
$tagObj->load_vars();
ob_end_clean();
?>
<div class="tag-container">
<div class="tag-head">
<div class="tag-name">
<a href="tagged_posts.php?tid=<?=$tagObj->id?>"><?=$tagObj->tag;?></a>
</div>
<div class="close-tag-details glyphicon glyphicon-remove"></div>
</div>
<div class="tag-description">
<?=$tagObj->description;?>
</div>
<div class="tag-chara">
posts:<?=$tagObj->maxpost;?>  followers:<?=$tagObj->followers?>
</div>
</div>
<?php
}
?>