diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 03:57:42 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 03:57:42 +0000 |
| commit | 48f33945f41e0b30628d8d7941fe8d62e88ac97b (patch) | |
| tree | 5d624eda3cf1bd0cdc9e788fbbba5c70a3ddb0e4 /view_post.php | |
| download | blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.gz blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.bz2 blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'view_post.php')
| -rw-r--r-- | view_post.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/view_post.php b/view_post.php new file mode 100644 index 0000000..12b127d --- /dev/null +++ b/view_post.php @@ -0,0 +1,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.' ); +} + +?> |
