Source for file lookup_content_inc.php
Documentation is available at lookup_content_inc.php
* @author spider <spider@steelsun.com>
if( @BitBase::verifyId( $_REQUEST['structure_id'] ) ) {
require_once( LIBERTY_PKG_PATH. 'LibertyStructure.php');
$_REQUEST['structure_id'] = preg_replace( '/[\D]/', '', $_REQUEST['structure_id'] );
if( $gStructure->load() ) {
$gStructure->loadNavigation();
$gBitSmarty->assign( 'structureInfo', $gStructure->mInfo );
// $_REQUEST['page_id'] = $gStructure->mInfo['page_id'];
if( $viewContent = LibertyBase::getLibertyObject( $gStructure->mInfo['content_id'], $gStructure->mInfo['content_type']['content_type_guid'] ) ) {
$gBitSmarty->assign_by_ref( 'pageInfo', $viewContent->mInfo );
$gContent = &$viewContent;
$gBitSmarty->assign_by_ref( 'gContent', $gContent );
} elseif( @BitBase::verifyId( $_REQUEST['content_id'] ) ) {
$_REQUEST['content_id'] = preg_replace( '/[\D]/', '', $_REQUEST['content_id'] );
require_once( LIBERTY_PKG_PATH. 'LibertyBase.php');
$gBitSmarty->assign_by_ref( 'gContent', $gContent );
$gBitSmarty->assign_by_ref( 'pageInfo', $gContent->mInfo );
|