'.
'
Application Directory Not Found
'.
'The $kohana_application
directory does not exist.
'.
'Set $kohana_application
in '.KOHANA.' to a valid directory and refresh the page.
'.
''
);
}
// Check SYSPATH
if ( ! (is_dir(SYSPATH) AND is_file(SYSPATH.'core/Bootstrap'.EXT)))
{
die
(
''.
'
System Directory Not Found
'.
'
The $kohana_system
directory does not exist.
'.
'
Set $kohana_system
in '.KOHANA.' to a valid directory and refresh the page.
'.
'
'
);
}
}
//
// Check if the application has been installed
// -------------------------------------------
// This has to be done before bootstrapping the Kohana framework
//
// Does the installer directory exist?
if (file_exists(DOCROOT.DIRECTORY_SEPARATOR.'installer'))
{
if ( ! file_exists(APPPATH.'config'.DIRECTORY_SEPARATOR.'database.php'))
{
// Redirect to the installer
header("Location: ./installer");
exit();
}
}
// Initialize.
require SYSPATH.'core/Bootstrap'.EXT;