mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
27 lines
No EOL
423 B
PHP
27 lines
No EOL
423 B
PHP
<?php
|
|
|
|
|
|
include __DIR__ . '/../bootstrap.php';
|
|
|
|
define('IS_PRODUCTION', $_SERVER['SERVER_NAME'] == 'lbry.io');
|
|
|
|
try
|
|
{
|
|
i18n::register();
|
|
Session::init();
|
|
if (!IS_PRODUCTION)
|
|
{
|
|
View::compileCss();
|
|
}
|
|
Controller::dispatch(strtok($_SERVER['REQUEST_URI'], '?'));
|
|
}
|
|
catch(Exception $e)
|
|
{
|
|
if (IS_PRODUCTION)
|
|
{
|
|
throw $e;
|
|
}
|
|
|
|
http_response_code(500);
|
|
echo '<pre>'.Debug::exceptionToString($e).'</pre>';
|
|
} |