formwork/index.php

21 lines
521 B
PHP
Raw Normal View History

2018-06-16 16:41:58 +02:00
<?php
use Formwork\Core\Formwork;
use Formwork\Admin\Statistics;
2018-06-18 15:19:09 +02:00
define('DS', DIRECTORY_SEPARATOR);
define('ROOT_PATH', __DIR__ . DS);
define('FORMWORK_PATH', ROOT_PATH . 'formwork' . DS);
define('CONFIG_PATH', ROOT_PATH . 'config' . DS);
define('LOGS_PATH', ROOT_PATH . 'admin' . DS . 'logs' . DS);
2018-06-16 16:41:58 +02:00
2018-10-08 21:24:24 +02:00
require ROOT_PATH . 'vendor' . DS . 'autoload.php';
2018-06-16 16:41:58 +02:00
$formwork = new Formwork();
$formwork->run();
if (class_exists('Formwork\Admin\Statistics')) {
2018-06-16 17:49:27 +02:00
$statistics = new Statistics();
$statistics->trackVisit();
2018-06-16 16:41:58 +02:00
}