homepage-picocms/index.php
2020-01-28 10:41:16 +01:00

38 lines
914 B
PHP

<?php
// @codingStandardsIgnoreFile
/**
* This file is part of Pico. It's copyrighted by the contributors recorded
* in the version control history of the file, available from the following
* original location:.
*
* <https://github.com/picocms/pico-composer/blob/master/index.php>
*
* SPDX-License-Identifier: MIT
* License-Filename: LICENSE
*/
// load dependencies
// pico-composer MUST be installed as root package
if (is_file(__DIR__.'/vendor/autoload.php')) {
require_once __DIR__.'/vendor/autoload.php';
} else {
die("Cannot find 'vendor/autoload.php'. Run `composer install`.");
}
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'deu_deu');
// instance Pico
$pico = new Pico(
__DIR__, // root dir
'config/', // config dir
'plugins/', // plugins dir
'themes/' // themes dir
);
// override configuration?
//$pico->setConfig(array());
// run application
echo $pico->run();