Copyright (C) 2004-2006, Ryan Djurovich Website Baker is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Website Baker is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Website Baker; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ $starttime = array_sum(explode(" ",microtime())); // Include config file require_once(dirname(__FILE__).'/config.php'); // Check if the config file has been set-up if(!defined('WB_PATH')) { header("Location: install/index.php"); exit(0); } require_once(WB_PATH.'/framework/class.frontend.php'); // Create new frontend object $wb = new frontend(); // Figure out which page to display // Stop processing if intro page was shown $wb->page_select() or die(); // Collect info about the currently viewed page // and check permissions $wb->get_page_details(); // Collect general website settings $wb->get_website_settings(); // Load functions available to templates, modules and code sections // also, set some aliases for backward compatibility require(WB_PATH.'/framework/frontend.functions.php'); // Display the template require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); define('__PHP_STATS_PATH__','/stats/'); include(__PHP_STATS_PATH__.'php-stats.redir.php'); ?>