XBackBone/index.php

12 lines
446 B
PHP
Raw Normal View History

2018-04-28 12:20:07 +00:00
<?php
2019-11-20 17:49:31 +00:00
2020-10-03 14:01:00 +00:00
((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 1) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.');
2019-11-20 17:49:31 +00:00
require __DIR__.'/vendor/autoload.php';
2018-04-28 12:20:07 +00:00
2019-11-20 17:49:31 +00:00
define('BASE_DIR', realpath(__DIR__).DIRECTORY_SEPARATOR);
2018-04-28 12:20:07 +00:00
define('PLATFORM_VERSION', json_decode(file_get_contents('composer.json'))->version);
2020-09-26 18:53:07 +00:00
define('CONFIG_FILE', BASE_DIR.'config.php');
2018-04-28 12:20:07 +00:00
2019-11-20 17:49:31 +00:00
$app = require_once __DIR__.'/bootstrap/app.php';
2018-11-11 16:02:50 +00:00
$app->run();