Project

General

Profile

1
<?php
2

    
3
/*
4

    
5
 Website Baker Project <http://www.websitebaker.org/>
6
 Copyright (C) 2004-2005, Ryan Djurovich
7

    
8
 Website Baker is free software; you can redistribute it and/or modify
9
 it under the terms of the GNU General Public License as published by
10
 the Free Software Foundation; either version 2 of the License, or
11
 (at your option) any later version.
12

    
13
 Website Baker is distributed in the hope that it will be useful,
14
 but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 GNU General Public License for more details.
17

    
18
 You should have received a copy of the GNU General Public License
19
 along with Website Baker; if not, write to the Free Software
20
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21

    
22
*/
23

    
24
$starttime=microtime();
25

    
26
// Include config file
27
require_once('config.php');
28

    
29
// Check if the config file has been set-up
30
if(!defined('WB_PATH')) {
31
	header("Location: install/index.php");
32
}
33

    
34
require_once(WB_PATH.'/framework/class.frontend.php');
35
// Create new frontend object
36
$wb = new frontend();
37

    
38
// Perform general initializations:
39
// session start, language files loading, basic settings.
40
require_once(WB_PATH.'/framework/initialize.php');
41

    
42
// Figure out which page to display
43
// Stop processing if intro page was shown
44
$wb->page_select() or die();
45

    
46
// Collect info about the currently viewed page
47
// and check permissions
48
$wb->get_page_details();
49

    
50
// Collect general website settings
51
$wb->get_website_settings();
52

    
53
// Load some ugly compatibility code
54
require(WB_PATH.'/framework/compatibility.php');
55

    
56
// Display the template
57
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php');
58

    
59
?>
(2-2/2)