Project

General

Profile

1 4 ryan
<?php
2
3
// $Id: index.php,v 1.3 2005/04/02 06:27:52 rdjurovich Exp $
4
5
/*
6
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2005, 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
// Required page details
27
$page_id = 0;
28
$page_description = '';
29
$page_keywords = '';
30
define('PAGE_ID', 0);
31
define('ROOT_PARENT', 0);
32
define('PARENT', 0);
33
define('LEVEL', 0);
34
define('PAGE_TITLE', 'Search');
35
define('MENU_TITLE', 'Search');
36
define('MODULE', '');
37
define('VISIBILITY', 'public');
38
define('PAGE_CONTENT', 'search.php');
39
40
// Include the config file
41
require('../config.php');
42
43
// Include database class file
44
require_once(WB_PATH.'/framework/class.database.php');
45
46
// Find out what the search template is
47
$database = new database();
48
$query_template = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'template' LIMIT 1");
49
$fetch_template = $query_template->fetchRow();
50
$template = $fetch_template['value'];
51
if($template != '') {
52
	define('TEMPLATE', $template);
53
}
54
unset($template);
55
56
// Include index (wrapper) file
57
require(WB_PATH.'/index.php');
58
59
?>