You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
906 B
PHP
39 lines
906 B
PHP
<?php
|
|
|
|
/***
|
|
* ss-panel v3 Bootstrap
|
|
* @author orvice
|
|
* @email sspanel@orx.me
|
|
* @url https://github.com/orvice/ss-panel
|
|
*/
|
|
|
|
use App\Services\Boot;
|
|
|
|
// BASE_PATH
|
|
define('BASE_PATH', __DIR__);
|
|
define('VERSION', '19981217');
|
|
|
|
// Vendor Autoload
|
|
require BASE_PATH.'/vendor/autoload.php';
|
|
|
|
// Preserve the connection address before a legacy site config can rewrite REMOTE_ADDR.
|
|
// Registration IP restrictions must not rely on untrusted forwarded headers.
|
|
if (!defined('ORIGINAL_REMOTE_ADDR')) {
|
|
define('ORIGINAL_REMOTE_ADDR', isset($_SERVER['REMOTE_ADDR']) ? (string) $_SERVER['REMOTE_ADDR'] : '');
|
|
}
|
|
|
|
$configurationFile = BASE_PATH . '/config/config.php';
|
|
if (!is_file($configurationFile)) {
|
|
$configurationFile = BASE_PATH . '/config/.config.php';
|
|
}
|
|
require $configurationFile;
|
|
|
|
|
|
|
|
Boot::setDebug();
|
|
//Boot::setVersion(VERSION);
|
|
// config time zone
|
|
Boot::setTimezone();
|
|
// Init db
|
|
Boot::bootDb();
|