1 |
1262
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category frontend
|
5 |
|
|
* @package search
|
6 |
1268
|
Luisehahne
|
* @author WebsiteBaker Project
|
7 |
1262
|
Luisehahne
|
* @copyright 2004-2009, Ryan Djurovich
|
8 |
1349
|
Luisehahne
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9 |
1262
|
Luisehahne
|
* @link http://www.websitebaker2.org/
|
10 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
11 |
|
|
* @platform WebsiteBaker 2.8.x
|
12 |
1373
|
Luisehahne
|
* * @requirements PHP 5.2.2 and higher
|
13 |
1268
|
Luisehahne
|
* @version $Id$
|
14 |
|
|
* @filesource $HeadURL$
|
15 |
1262
|
Luisehahne
|
* @lastmodified $Date$
|
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 |
4
|
ryan
|
?>
|