formwork/index.php
2018-10-08 21:24:24 +02:00

21 lines
521 B
PHP
Executable File

<?php
use Formwork\Core\Formwork;
use Formwork\Admin\Statistics;
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);
require ROOT_PATH . 'vendor' . DS . 'autoload.php';
$formwork = new Formwork();
$formwork->run();
if (class_exists('Formwork\Admin\Statistics')) {
$statistics = new Statistics();
$statistics->trackVisit();
}