batufa/index.php

66 lines
1.7 KiB
PHP
Raw Normal View History

2008-12-05 03:37:18 +02:00
<?php
/**
* 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';
/**
* 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';
/**
* 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';
/**
* 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');
//
// 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)).'/');
// Clean up the configuration vars
2008-12-05 03:37:18 +02:00
unset($application, $modules, $system);
if (file_exists('install'.EXT))
{
// Load the installation check
2008-12-05 03:37:18 +02:00
include 'install'.EXT;
}
elseif (file_exists(APPPATH.'bootstrap'.EXT))
{
// Load the custom bootstrap
2008-12-05 03:37:18 +02:00
include APPPATH.'bootstrap'.EXT;
}
else
{
// Load the default bootstrap
2008-12-05 03:37:18 +02:00
include SYSPATH.'bootstrap'.EXT;
}