diff options
Diffstat (limited to 'lookup_post_inc.php')
| -rw-r--r-- | lookup_post_inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lookup_post_inc.php b/lookup_post_inc.php new file mode 100644 index 0000000..2db4d96 --- /dev/null +++ b/lookup_post_inc.php @@ -0,0 +1,11 @@ +<?php + global $gContent, $smarty; + + if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) { + $postId = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL; + $gContent = new BitBlogPost( $postId ); + $gContent->load(); + $comments_return_url = $_SERVER['PHP_SELF']."?post_id=$postId"; + $smarty->assign_by_ref( 'gContent', $gContent ); + } +?> |
