alltube/index.php

21 lines
415 B
PHP
Raw Normal View History

2016-08-01 16:04:44 +00:00
<?php
2016-09-07 22:28:28 +00:00
require_once __DIR__ . '/vendor/autoload.php';
2020-05-13 20:57:25 +00:00
use Alltube\App;
2020-10-18 10:03:57 +00:00
use Alltube\ErrorHandler;
2015-10-29 20:19:40 +00:00
2016-10-26 15:16:17 +00:00
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/index.php') !== false) {
header('Location: ' . str_ireplace('/index.php', '/', $_SERVER['REQUEST_URI']));
2016-07-27 00:19:29 +00:00
die;
}
try {
// Create app.
$app = new App();
$app->run();
2020-05-13 20:33:02 +00:00
} catch (Throwable $e) {
2020-10-18 10:03:57 +00:00
ErrorHandler::handle($e);
}