bootstrap.php 466 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /***
  3. * ss-panel v3 Bootstrap
  4. * @author orvice
  5. * @email [email protected]
  6. * @url https://github.com/orvice/ss-panel
  7. */
  8. use App\Services\Boot;
  9. // BASE_PATH
  10. define('BASE_PATH', __DIR__);
  11. define('VERSION', '20180224');
  12. // Vendor Autoload
  13. require BASE_PATH.'/vendor/autoload.php';
  14. require BASE_PATH."/config/.config.php";
  15. Boot::loadEnv();
  16. Boot::setDebug();
  17. //Boot::setVersion(VERSION);
  18. // config time zone
  19. Boot::setTimezone();
  20. // Init db
  21. Boot::bootDb();