44 lines
No EOL
1.3 KiB
PHP
44 lines
No EOL
1.3 KiB
PHP
<?php
|
||
/*
|
||
****************************************************************************
|
||
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
||
| @ Author : ArslanHassan
|
||
| @ Software : ClipBucket , <20> PHPBucket.com
|
||
****************************************************************************
|
||
*/
|
||
|
||
define("THIS_PAGE",'view_topic');
|
||
define("PARENT_PAGE",'groups');
|
||
|
||
require 'includes/config.inc.php';
|
||
$pages->page_redir();
|
||
|
||
$tid = $_GET['tid'];
|
||
$tdetails = $cbgroup->get_topic_details($tid);
|
||
|
||
if($tdetails)
|
||
{
|
||
$grp_details = $cbgroup->get_group_details($tdetails['group_id']);
|
||
|
||
//Group links
|
||
$group_links = $cbgroup->group_links($grp_details);
|
||
assign('group_links',$group_links);
|
||
|
||
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();
|
||
?>
|