-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_topic.php
More file actions
41 lines (35 loc) · 1.18 KB
/
view_topic.php
File metadata and controls
41 lines (35 loc) · 1.18 KB
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
<?php
/*
****************************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , � PHPBucket.com
****************************************************************************
*/
define("THIS_PAGE",'view_topic');
define("PARENT_PAGE",'groups');
require 'includes/config.inc.php';
$pages->page_redir();
$tid = $_GET['tid'];
$tid = mysql_clean($tid);
$tdetails = $cbgroup->get_topic_details($tid);
if($tdetails)
{
$grp_details = $cbgroup->get_group_details($tdetails['group_id']);
if($grp_details['post_type'] == 1 && !$cbgroup->is_member(userid(),$grp_details['group_id'],TRUE)) {
if($cbgroup->is_member(userid(),$grp_details['group_id']))
e(lang("view_tp_inactive_user"));
else
e(lang("view_tp_join"));
$Cbucket->show_page = false;
} else {
assign('group',$grp_details);
assign('topic',$tdetails);
subtitle($grp_details['group_name']);
//Calling all functions when a topic is called
call_view_topic_functions($tdetails);
}
}
template_files('view_topic.html');
display_it();
?>