1
|
<?php
|
2
|
|
3
|
// $Id: index.php 310 2006-02-19 05:31:10Z ryan $
|
4
|
|
5
|
/*
|
6
|
|
7
|
Website Baker Project <http://www.websitebaker.org/>
|
8
|
Copyright (C) 2004-2006, Ryan Djurovich
|
9
|
|
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
|
// Include the config file
|
27
|
require('../config.php');
|
28
|
|
29
|
// 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
|
define('PAGE_TITLE', 'Search');
|
38
|
define('MENU_TITLE', 'Search');
|
39
|
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
|
// Include index (wrapper) file
|
54
|
require(WB_PATH.'/index.php');
|
55
|
|
56
|
?>
|