* @package liberty * @subpackage functions */ /** * Required setup */ global $gLightweightScan; $gLightwieightScan = true; require_once '../kernel/includes/setup_inc.php'; global $gContent, $gBitSystem, $gBitSmarty; include_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' ); // If we can't find one make an invalid one to keep the template happy. if (empty($gContent)) { $gContent = new LibertyContent(); $gBitSmarty->assign('gContent', $gContent); } // Should we tell the template to generate a closeclick icon if (isset($_REQUEST['closeclick'])) { $gBitSmarty->assign('closeclick', true); } header( 'Content-Type: text/html; charset=utf-8' ); echo $gContent->getPreview(); ?>