liberty
[ class tree: liberty ] [ index: liberty ] [ all elements ]

Source for file lookup_content_inc.php

Documentation is available at lookup_content_inc.php

  1. <?php
  2. /**
  3.  * lookup_content_inc
  4.  *
  5.  * @author   spider <spider@steelsun.com>
  6.  * @version  $Revision$
  7.  * @package  liberty
  8.  * @subpackage functions
  9.  */
  10.     global $gContent;
  11.  
  12.     if@BitBase::verifyId$_REQUEST['structure_id') ) {
  13.         /**
  14.          * required setup
  15.          */
  16.         require_onceLIBERTY_PKG_PATH.'LibertyStructure.php');
  17.         $_REQUEST['structure_id'preg_replace'/[\D]/'''$_REQUEST['structure_id');
  18.         $gStructure new LibertyStructure$_REQUEST['structure_id');
  19.         if$gStructure->load() ) {
  20.             $gStructure->loadNavigation();
  21.             $gStructure->loadPath();
  22.             $gBitSmarty->assign'structureInfo'$gStructure->mInfo );
  23.     //        $_REQUEST['page_id'] = $gStructure->mInfo['page_id'];
  24.             if$viewContent LibertyBase::getLibertyObject$gStructure->mInfo['content_id']$gStructure->mInfo['content_type']['content_type_guid') ) {
  25.                 $viewContent->setStructure$_REQUEST['structure_id');
  26.                 $gBitSmarty->assign_by_ref'pageInfo'$viewContent->mInfo );
  27.                 $gContent &$viewContent;
  28.                 $gBitSmarty->assign_by_ref'gContent'$gContent );
  29.             }
  30.         }
  31.     elseif@BitBase::verifyId$_REQUEST['content_id') ) {
  32.         $_REQUEST['content_id'preg_replace'/[\D]/'''$_REQUEST['content_id');
  33.         require_onceLIBERTY_PKG_PATH.'LibertyBase.php');
  34.         if$gContent LibertyBase::getLibertyObject$_REQUEST['content_id') ) {
  35.             $gBitSmarty->assign_by_ref'gContent'$gContent );
  36.             $gBitSmarty->assign_by_ref'pageInfo'$gContent->mInfo );
  37.         }
  38.     }
  39.  
  40. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:03 +0000 by phpDocumentor 1.5.0-lsces