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

Source for file preview.php

Documentation is available at preview.php

  1. <?php
  2. /**
  3.  * @version  $Header$
  4.  *  lookup_content_inc
  5.  *
  6.  * @author   spider <spider@steelsun.com>
  7.  * @package  liberty
  8.  * @subpackage functions
  9.  */
  10.  
  11. /**
  12.  * Required setup
  13.  */
  14. global $gLightweightScan;
  15. $gLightwieightScan TRUE;
  16. require_once'../kernel/setup_inc.php' );
  17.  
  18. global $gContent$gBitSystem$gBitSmarty;
  19. include_onceLIBERTY_PKG_PATH.'lookup_content_inc.php' );
  20. // If we can't find one make an invalid one to keep the template happy.
  21. if (empty($gContent)) {
  22.     $gContent new LibertyContent();
  23.     $gBitSmarty->assign_by_ref('gContent'$gContent);
  24. }
  25. // Should we tell the template to generate a closeclick icon
  26. if (isset($_REQUEST['closeclick'])) {
  27.     $gBitSmarty->assign('closeclick'true);
  28. }
  29.  
  30. header'Content-Type: text/html; charset=utf-8' );
  31. echo $gContent->getPreview();
  32.  
  33. ?>

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