blob: f5645da28c532a0b6486e2fa2b072f5c6e0b0dc0 (
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/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();
?>
|