2008-12-05 03:37:18 +02:00
|
|
|
<?php
|
2008-12-09 08:17:28 +02:00
|
|
|
/**
|
|
|
|
* The directory in which your application specific resources are located.
|
|
|
|
* The application directory must contain the config/kohana.php file.
|
|
|
|
*
|
|
|
|
* @see http://docs.kohanaphp.com/install#application
|
|
|
|
*/
|
2008-12-05 03:37:18 +02:00
|
|
|
$application = 'application';
|
|
|
|
|
2008-12-09 08:17:28 +02:00
|
|
|
/**
|
|
|
|
* The directory in which shared resources are located. Each module must be
|
|
|
|
* contained within its own directory.
|
|
|
|
*
|
|
|
|
* @see http://docs.kohanaphp.com/install#modules
|
|
|
|
*/
|
2008-12-05 03:37:18 +02:00
|
|
|
$modules = 'modules';
|
|
|
|
|
2008-12-09 08:17:28 +02:00
|
|
|
/**
|
|
|
|
* The directory in which the Kohana resources are located. The system
|
|
|
|
* directory must contain the classes/kohana.php file.
|
|
|
|
*
|
|
|
|
* @see http://docs.kohanaphp.com/install#system
|
|
|
|
*/
|
2008-12-05 03:37:18 +02:00
|
|
|
$system = 'system';
|
|
|
|
|
2008-12-09 08:17:28 +02:00
|
|
|
/**
|
|
|
|
* The default extension of resource files. If you change this, all resources
|
|
|
|
* must be renamed to use the new extension.
|
|
|
|
*
|
|
|
|
* @see http://docs.kohanaphp.com/install#ext
|
|
|
|
*/
|
2008-12-05 03:37:18 +02:00
|
|
|
define('EXT', '.php');
|
|
|
|
|
2008-12-09 08:17:28 +02:00
|
|
|
//
|
|
|
|
// END OF CONFIGURATION, DO NOT EDIT BELOW!
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
|
|
|
|
// Define the name of the front controller
|
|
|
|
define('FC_FILE', basename(__FILE__));
|
|
|
|
|
|
|
|
// Define the absolute paths for configured directories
|
|
|
|
define('DOCROOT', str_replace('\\', '/', realpath(getcwd())).'/');
|
2008-12-05 03:37:18 +02:00
|
|
|
define('APPPATH', str_replace('\\', '/', realpath($application)).'/');
|
|
|
|
define('MODPATH', str_replace('\\', '/', realpath($modules)).'/');
|
|
|
|
define('SYSPATH', str_replace('\\', '/', realpath($system)).'/');
|
|
|
|
|
2008-12-09 08:17:28 +02:00
|
|
|
// Clean up the configuration vars
|
2008-12-05 03:37:18 +02:00
|
|
|
unset($application, $modules, $system);
|
|
|
|
|
|
|
|
if (file_exists('install'.EXT))
|
|
|
|
{
|
2008-12-09 08:17:28 +02:00
|
|
|
// Load the installation check
|
2008-12-05 03:37:18 +02:00
|
|
|
include 'install'.EXT;
|
|
|
|
}
|
|
|
|
elseif (file_exists(APPPATH.'bootstrap'.EXT))
|
|
|
|
{
|
2008-12-09 08:17:28 +02:00
|
|
|
// Load the custom bootstrap
|
2008-12-05 03:37:18 +02:00
|
|
|
include APPPATH.'bootstrap'.EXT;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-12-09 08:17:28 +02:00
|
|
|
// Load the default bootstrap
|
2008-12-05 03:37:18 +02:00
|
|
|
include SYSPATH.'bootstrap'.EXT;
|
|
|
|
}
|