2015-11-29 20:38:31 +01:00
|
|
|
<?php
|
2016-05-26 21:02:48 +02:00
|
|
|
|
2015-11-29 20:38:31 +01:00
|
|
|
define('DS', DIRECTORY_SEPARATOR);
|
|
|
|
|
|
|
|
// load kirby
|
|
|
|
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
|
|
|
|
|
|
|
|
// check for a custom site.php
|
|
|
|
if(file_exists(__DIR__ . DS . 'site.php')) {
|
|
|
|
require(__DIR__ . DS . 'site.php');
|
|
|
|
} else {
|
|
|
|
$kirby = kirby();
|
|
|
|
}
|
|
|
|
|
|
|
|
// render
|
|
|
|
echo $kirby->launch();
|