a053a72a12
Pico now depends on Twig 2.12, Symfony YAML 3.4, Parsedown 1.7.4 and Parsedown Extra 0.8.1.
39 lines
985 B
Text
39 lines
985 B
Text
<?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/blob/master/index.php.dist>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
* License-Filename: LICENSE
|
|
*/
|
|
|
|
// check PHP platform requirements
|
|
if (PHP_VERSION_ID < 70008) {
|
|
die('Pico requires PHP 7.0.8 or above to run');
|
|
}
|
|
if (!extension_loaded('dom')) {
|
|
die("Pico requires the PHP extension 'dom' to run");
|
|
}
|
|
if (!extension_loaded('mbstring')) {
|
|
die("Pico requires the PHP extension 'mbstring' to run");
|
|
}
|
|
|
|
// 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
|
|
);
|
|
|
|
// override configuration?
|
|
//$pico->setConfig(array());
|
|
|
|
// run application
|
|
echo $pico->run();
|