You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
932 B
35 lines
932 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @author Robert Strutts <Robert@TryingToScale.com>
|
|
* @copyright Copyright (c) 2022, Robert Strutts.
|
|
* @license https://mit-license.org/
|
|
*/
|
|
|
|
$show_all_startup_errors = false; // Always, Keep false on LIVE PROD SYS!!
|
|
if ($show_all_startup_errors) {
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
}
|
|
|
|
require '../src/before_main.php';
|
|
|
|
$helper = (USE_COMPILED_FILE) ? 'tts' : 'bs_tts';
|
|
$site_helper = "\\$helper\\site_helper";
|
|
$site_helper::set_all_projects(['mockup','ex','live']);
|
|
$site_helper::set_default_project("mockup");
|
|
|
|
$PHPUNIT_Testing = false;
|
|
$site_helper::init(PROJECT_BASE_DIR, $_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD'], $PHPUNIT_Testing);
|
|
|
|
require '../src/main.php';
|
|
|
|
$returned_route = \tts\router::execute();
|
|
|
|
if ($returned_route["found"] === false) {
|
|
$app = new \tts\app();
|
|
$app->load_controller();
|
|
}
|
|
|