blob: 12b127d9338cb1e551815ce59b4453aadcca99a8 (
plain)
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
|
<?php
// $Header: /cvsroot/bitweaver/_bit_blogs/view_post.php,v 1.1 2005/06/19 03:57:42 bitweaver Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
require_once( '../bit_setup_inc.php' );
require_once( BLOGS_PKG_PATH.'BitBlogPost.php' );
if ( empty( $_REQUEST["post_id"] ) && empty( $_REQUEST["content_id"] ) ) {
$gBitSystem->fatalError( 'No post indicated' );
}
global $gContent;
$postId = !empty( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL;
$conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL;
$gContent = new BitBlogPost( $postId, $conId );
if( $gContent->load() ) {
include_once( BLOGS_PKG_PATH.'display_bitblogpost_inc.php' );
} else {
$gBitSystem->fatalError( 'Post could not be found.' );
}
?>
|