load($group_id); $parent_group_name = stripslashes($obj_group->title); $parent_group_description = stripslashes($obj_group->description); } catch (PAException $e) { $msg = "Error occured in retreiving group information\n"; $msg .= "
".$e->message."
"; $error_code = $e->code; $error = TRUE; } if (!Group::member_exists((int)$obj_group->collection_id, (int)$_SESSION['user']['id'])) { $error = TRUE; } if ( $error ) { $redirect_msg = "Group does not exist."; $back_to_page = $base_url .'/forums.php'; header("Location: $base_url/generic_error.php?msg=$redirect_msg&back_to_page=$back_to_page"); exit; } $thread_obj = new MessageBoard(); $thread_obj->set_collection_id($group_id); $arr_threads = $thread_obj->get(); } html_header($HTML_TITLE,''); ?> set('msg', $msg); } $content->set('uid', $uid); $content->set('gid', $group_id); $header = & new Template(CURRENT_THEME_FSPATH."/header.tpl"); $header->set('user_name', $first_name." ".$last_name); if ($network_info) { $header->set_object('network_info', $network_info); } $content->set('header', $header); $left_panel = & new Template(CURRENT_THEME_FSPATH."/left_page.tpl"); $left_panel->set('img_path', $base_url."/files/".$user_picture); $content->set('left_panel', $left_panel); $content->set('arr_threads', $arr_threads); $content->set('base_url', $base_url); $content->set('current_theme_path', $current_theme_path); $content->set('parent_name', $parent_group_name); $content->set('parent_description', $parent_group_description); echo $content->fetch(); $footer = & new Template(CURRENT_THEME_FSPATH."/footer.tpl"); echo $footer->fetch(); ?>