mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
21 lines
521 B
PHP
Executable File
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();
|
|
}
|