2012-04-04 13:45:09 +00:00
|
|
|
<?php
|
2015-11-23 22:11:42 +00:00
|
|
|
|
|
|
|
$parent = '..' . DIRECTORY_SEPARATOR;
|
|
|
|
set_include_path(
|
|
|
|
get_include_path() . PATH_SEPARATOR .
|
|
|
|
$parent . $parent . $parent . PATH_SEPARATOR .
|
|
|
|
'.'
|
|
|
|
);
|
|
|
|
|
2015-10-09 15:39:56 +00:00
|
|
|
// load dependencies
|
2015-11-23 22:11:42 +00:00
|
|
|
require_once('vendor/autoload.php');
|
2015-10-09 15:39:56 +00:00
|
|
|
|
|
|
|
// instance Pico
|
2015-10-01 13:05:50 +00:00
|
|
|
$pico = new Pico(
|
2015-10-09 15:39:56 +00:00
|
|
|
__DIR__, // root dir
|
|
|
|
'config/', // config dir
|
|
|
|
'plugins/', // plugins dir
|
|
|
|
'themes/' // themes dir
|
2015-10-01 13:05:50 +00:00
|
|
|
);
|
2015-10-09 15:39:56 +00:00
|
|
|
|
|
|
|
// override configuration?
|
|
|
|
// $pico->setConfig(array());
|
|
|
|
|
|
|
|
// run application
|
2015-10-01 13:05:50 +00:00
|
|
|
echo $pico->run();
|