Location: PHPKode > projects > Wiking CMS > index.php
$debug = true; # Set to true if you need debug info

	Wiking CMS - "the Wiki 2.0" - <http://wikingcms.sourceforge.net>
	Copyright (C) 2007-2008 Victor Loux and contributors
	Code documented with Natural Docs <http://www.naturaldocs.org>

	This program 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 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>


# Start page loading time counter
$load_start = microtime(true);

# Wiking version [do not change]
define('WK_VERSION','0.01', false);

# Validity for included pages
define('WK_VALID', true, false);

# Load debug and fatal error functions

// Check that conf file exists : if not, go to the install dir.
if(!file_exists('data/configuration.php') || filesize('data/configuration.php') < 1)
		header('Location: ./installation/');
		wkError('No configuration file was found and the installation directory is not present.');
// If everything is OK, prepare Wiking.
include('data/configuration.php'); // Include config file
include('core/classes/global.class.php'); // Include the main class (wikingCore)
include('core/controllers/urlmanager.php'); // Include the URL class

$w = new wikingCore(); // Initialize $w

// TO-DO : pour la conversion MVC, la gestion d'URL c'est dans les contrôleurs...
// This method will parse the URL and extract the page we want to be shown.
$data = URL::processData();
echo $w->template->layout($data); // Send the page to the client
$db = NULL; // Terminate the MySQL connection
Return current item: Wiking CMS