2015-11-27 19:36:40 +00:00
|
|
|
<?php // @codingStandardsIgnoreFile
|
2017-10-19 20:26:43 +00:00
|
|
|
/**
|
|
|
|
* 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/blob/master/index.php.dist>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
* License-Filename: LICENSE
|
|
|
|
*/
|
2015-11-27 18:56:28 +00:00
|
|
|
|
2017-05-26 19:43:48 +00:00
|
|
|
// check PHP platform requirements
|
2016-01-25 18:32:17 +00:00
|
|
|
if (PHP_VERSION_ID < 50306) {
|
2015-11-27 18:56:28 +00:00
|
|
|
die('Pico requires PHP 5.3.6 or above to run');
|
|
|
|
}
|
2017-05-26 19:43:48 +00:00
|
|
|
if (!extension_loaded('dom')) {
|
2017-12-27 20:36:56 +00:00
|
|
|
die("Pico requires the PHP extension 'dom' to run");
|
2017-05-26 19:43:48 +00:00
|
|
|
}
|
|
|
|
if (!extension_loaded('mbstring')) {
|
2017-12-27 20:36:56 +00:00
|
|
|
die("Pico requires the PHP extension 'mbstring' to run");
|
2017-05-26 19:43:48 +00:00
|
|
|
}
|
2015-11-27 18:56:28 +00:00
|
|
|
|
|
|
|
// load dependencies
|
|
|
|
require_once(__DIR__ . '/vendor/autoload.php');
|
|
|
|
|
|
|
|
// instance Pico
|
|
|
|
$pico = new Pico(
|
|
|
|
__DIR__, // root dir
|
|
|
|
'config/', // config dir
|
|
|
|
'plugins/', // plugins dir
|
|
|
|
'themes/' // themes dir
|
|
|
|
);
|
|
|
|
|
2018-07-01 15:17:15 +00:00
|
|
|
// override configuration?
|
|
|
|
//$pico->setConfig(array());
|
|
|
|
|
2015-11-27 18:56:28 +00:00
|
|
|
// run application
|
|
|
|
echo $pico->run();
|