blob: 64342df38a34b5655ffdad1eaa21cc8fb2d6e01f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* @version $Header$
* lookup_content_inc
*
* @author spider <spider@steelsun.com>
* @package liberty
* @subpackage functions
*/
/**
* Required setup
*/
global $gLightweightScan;
$gLightwieightScan = TRUE;
require_once( '../kernel/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->assignByRef('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();
?>
|