alltube/index.php

21 lines
415 B
PHP
Raw Normal View History

2016-08-01 18:04:44 +02:00
<?php
2016-09-08 00:28:28 +02:00
require_once __DIR__ . '/vendor/autoload.php';
2020-05-13 22:57:25 +02:00
use Alltube\App;
2020-10-18 12:03:57 +02:00
use Alltube\ErrorHandler;
2015-10-29 21:19:40 +01:00
2016-10-26 17:16:17 +02: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 02:19:29 +02:00
die;
}
try {
// Create app.
$app = new App();
$app->run();
2020-05-13 22:33:02 +02:00
} catch (Throwable $e) {
2020-10-18 12:03:57 +02:00
ErrorHandler::handle($e);
}