index.php 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // == | Entry Point | =================================================================================================
  3. // ROOT_PATH is defined as the absolute path (without a trailing slash) of the document root or the scriptdir if cli.
  4. // NOTE: We use this as the current working directory may change for the lifetime of the script in cli.
  5. // With the addition of gPath() from the utils will normalize all paths making cross-platform possible without much
  6. // trouble.
  7. define('ROOT_PATH', empty($_SERVER['DOCUMENT_ROOT']) ? __DIR__ : $_SERVER['DOCUMENT_ROOT']);
  8. const kDebugDomain = 'preview.binaryoutcast.com';
  9. // These define the Vendor, Name, and Version of this Application
  10. // The utils will supply values if they are not defined.
  11. // However, if the values matter to you then defining them is a GOOD idea!
  12. /* const kAppVendor = 'Binary Outcast'; */
  13. const kAppName = 'Metropolis';
  14. /* const kAppVersion = '1.0.0a1'; */
  15. /* const kAppRepository = 'https://code.binaryoutcast.com/projects/metropolis/'; */
  16. // These are flags that will either default to or disable the special component.
  17. // They are optional and do NOT need to be defined if not set to true.
  18. const kAppIsSpecialComponent = true;
  19. /* const kDisableSpecialComponent = true; */
  20. // Load fundamental utils
  21. require_once(ROOT_PATH . '/base/src/utils.php');
  22. // ====================================================================================================================
  23. ?>