Project

General

Profile

1 4 ryan
<?php
2
3 106 stefan
// $Id$
4 4 ryan
5
/*
6
7
 Website Baker Project <http://www.websitebaker.org/>
8 519 Ruebenwurz
 Copyright (C) 2004-2008, Ryan Djurovich
9 4 ryan
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
24
*/
25
26 106 stefan
// Include the config file
27
require('../config.php');
28
29 4 ryan
// Required page details
30
$page_id = 0;
31
$page_description = '';
32
$page_keywords = '';
33
define('PAGE_ID', 0);
34
define('ROOT_PARENT', 0);
35
define('PARENT', 0);
36
define('LEVEL', 0);
37 440 Ruebenwurz
define('PAGE_TITLE', $TEXT['SEARCH']);
38
define('MENU_TITLE', $TEXT['SEARCH']);
39 4 ryan
define('MODULE', '');
40
define('VISIBILITY', 'public');
41
define('PAGE_CONTENT', 'search.php');
42
43
// Find out what the search template is
44
$database = new database();
45
$query_template = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'template' LIMIT 1");
46
$fetch_template = $query_template->fetchRow();
47
$template = $fetch_template['value'];
48
if($template != '') {
49
	define('TEMPLATE', $template);
50
}
51
unset($template);
52
53 369 Ruebenwurz
//Get the referrer page ID if it exists
54
if(isset($_REQUEST['referrer']) && intval($_REQUEST['referrer']) > 0) {
55
	define('REFERRER_ID', intval($_REQUEST['referrer']));
56
} else {
57
	define('REFERRER_ID', 0);
58
}
59
60 4 ryan
// Include index (wrapper) file
61
require(WB_PATH.'/index.php');
62
63
?>