f0b42cf364
Pico doesn't require the PHP extensions itself, but erusev/parsedown-extra does. The explicit composer.json requirements are necessary until erusev/parsedown-extra#85 gets merged. Both extensions aren't part of Ubuntu's default LAMP setup anymore.
26 lines
615 B
Text
26 lines
615 B
Text
<?php // @codingStandardsIgnoreFile
|
|
|
|
// check PHP platform requirements
|
|
if (PHP_VERSION_ID < 50306) {
|
|
die('Pico requires PHP 5.3.6 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
|
|
);
|
|
|
|
// run application
|
|
echo $pico->run();
|