Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         search
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
13
 * @version         $Id: index.php 1281 2010-01-30 04:57:58Z Luisehahne $
14
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/search/index.php $
15
 * @lastmodified    $Date: 2010-01-30 05:57:58 +0100 (Sat, 30 Jan 2010) $
16
 *
17
 */
18

    
19
// Include the config file
20
require('../config.php');
21

    
22
// Required page details
23
$page_id = 0;
24
$page_description = '';
25
$page_keywords = '';
26
define('PAGE_ID', 0);
27
define('ROOT_PARENT', 0);
28
define('PARENT', 0);
29
define('LEVEL', 0);
30
define('PAGE_TITLE', $TEXT['SEARCH']);
31
define('MENU_TITLE', $TEXT['SEARCH']);
32
define('MODULE', '');
33
define('VISIBILITY', 'public');
34
define('PAGE_CONTENT', 'search.php');
35

    
36
// Find out what the search template is
37
$database = new database();
38
$query_template = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'template' LIMIT 1");
39
$fetch_template = $query_template->fetchRow();
40
$template = $fetch_template['value'];
41
if($template != '') {
42
	define('TEMPLATE', $template);
43
}
44
unset($template);
45

    
46
//Get the referrer page ID if it exists
47
if(isset($_REQUEST['referrer']) && is_numeric($_REQUEST['referrer']) && intval($_REQUEST['referrer']) > 0) {
48
	define('REFERRER_ID', intval($_REQUEST['referrer']));
49
} else {
50
	define('REFERRER_ID', 0);
51
}
52

    
53
// Include index (wrapper) file
54
require(WB_PATH.'/index.php');
55

    
56
?>
(1-1/4)