mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
30 lines
802 B
PHP
30 lines
802 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'bootstrap'.DIRECTORY_SEPARATOR.'constants.php';
|
|
require __DIR__.DIRECTORY_SEPARATOR.'app.php';
|
|
|
|
use Dotenv\Dotenv;
|
|
use nntmux\utility\Utility;
|
|
use nntmux\config\Configure;
|
|
|
|
$dotenv = new Dotenv(dirname(__DIR__, 1));
|
|
$dotenv->load();
|
|
|
|
define('NNTMUX_START', microtime(true));
|
|
|
|
define('NN_APP_PATH', dirname(__DIR__).DS.'app');
|
|
|
|
if (! defined('NN_ROOT')) {
|
|
define('NN_ROOT', dirname(NN_APP_PATH, 2));
|
|
}
|
|
|
|
if (! defined('HAS_WHICH')) {
|
|
define('HAS_WHICH', Utility::hasWhich() ? true : false);
|
|
}
|
|
|
|
new Configure('indexer');
|
|
|
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
|
require_once __DIR__.DIRECTORY_SEPARATOR.'yenc.php';
|