index.php 1.2 KB

123456789101112131415161718192021222324
  1. #!/bin/php
  2. <?php /****************************************************************************************************************
  3. * PHP Code is filmed before a live studio audience.
  4. **********************************************************************************************************************/
  5. // == | Entry Point | =================================================================================================
  6. // kRootPath is defined as the absolute path (without a trailing slash) of the document root or the scriptdir if cli.
  7. // NOTE: We use this as the current working directory may change for the lifetime of the script in cli.
  8. // With the addition of gPath() from the utils will normalize all paths making cross-platform possible without much
  9. // trouble.
  10. define('kRootPath', empty($_SERVER['DOCUMENT_ROOT']) ? __DIR__ : $_SERVER['DOCUMENT_ROOT']);
  11. const kDebugDomain = 'addons.thereisonlyxul.org';
  12. const kAppVendor = 'Binary Outcast';
  13. const kAppName = 'Neptune Add-ons and Package Infrastructure';
  14. const kAppVersion = '1.0.0a1';
  15. // Load fundamental utils
  16. require_once(kRootPath . '/base/src/nsUtilsCore.php');
  17. // ====================================================================================================================
  18. ?>