getMessage() . PHP_EOL; return ; } error_log($e->getMessage()); if(defined('BB_MODE_API')) { $code = $e->getCode() ? $e->getCode() : 9998; $result = array('result'=>NULL, 'error'=>array('message'=>$e->getMessage(), 'code'=>$code)); print json_encode($result); return false; } $page = "
%s
', $e->getMessage()); print sprintf('Class: "%s"
', get_class($e)); print sprintf('File: "%s"
', $e->getFile()); print sprintf('Line: "%s"
', $e->getLine()); print sprintf('Trace:%s', $e->getTraceAsString()); } print("
Powered by BoxBilling
composer install\" in order to install them. For detailed instruction, you can see Composer's getting started guide.Need some help with the installation? We got it. You can create the configuration file using the interactive installer, or manually create the configuration file.
If it's your first time setting up BoxBilling, you can continue with the web-based interactive BoxBilling installation.", $url); throw new Exception($msg, 101); } // Try to check if /install directory still exists, even after the installation was completed if(file_exists($configPath) && 0 !== filesize($configPath) && file_exists(BB_PATH_ROOT.'/install/index.php')) { throw new Exception("For safety reasons, you have to delete the /install directory to start using BoxBilling.
Please delete the /install directory from your web server.", 102); } $config = require_once $configPath; require BB_PATH_VENDOR . '/autoload.php'; date_default_timezone_set($config['timezone']); define('BB_DEBUG', $config['debug']); define('BB_URL', $config['url']); define('BB_SEF_URLS', $config['sef_urls']); define('BB_PATH_CACHE', $config['path_data'] . '/cache'); define('BB_PATH_LOG', $config['path_data'] . '/log'); define('BB_SSL', (substr($config['url'], 0, 5) === 'https')); if($config['sef_urls']) { define('BB_URL_API', $config['url'] . 'api/'); } else { define('BB_URL_API', $config['url'] . 'index.php?_url=/api/'); } if($config['debug']) { error_reporting(E_ALL); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); } else { error_reporting(E_RECOVERABLE_ERROR); ini_set('display_errors', '0'); ini_set('display_startup_errors', '0'); } ini_set('log_errors', '1'); ini_set('html_errors', FALSE); ini_set('error_log', BB_PATH_LOG . '/php_error.log');