-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
35 lines (30 loc) · 883 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
require __DIR__ . "/classes/Logbook.php";
use Kirby\Cms\App;
use Kirby\Exception\Exception;
// For composer
@include_once __DIR__ . '/vendor/autoload.php';
$kirbyVersion = App::version();
if (
$kirbyVersion !== null &&
(
version_compare($kirbyVersion, '3.6.0-alpha', '<') === true /*||
version_compare($kirbyVersion, '3.7.0-alpha', '>=') === true*/
)
) {
throw new Exception(
'The installed version of the Kirby LogBook plugin ' .
'is not compatible with Kirby ' . $kirbyVersion
);
}
Kirby::plugin('bvdputte/logbook', [
'options' => [
'default' => '',
'hide' => [],
'maxLogLines' => 2500,
'paginationSize' => 25,
'accessRoles' => [] // admin has always access
],
'areas' => require_once __DIR__ . '/areas.php',
'routes' => require_once __DIR__ . '/routes.php'
]);