luminous.php 425 B

1234567891011121314151617
  1. <?php
  2. /*
  3. * If we're running in a web environment, this is simply an include
  4. * file which includes everything necessary to use Luminous.
  5. *
  6. * If we're running in CLI-mode then this handles the CLI interface.
  7. *
  8. */
  9. require_once(dirname(__FILE__) . '/src/luminous.php');
  10. if (PHP_SAPI === 'cli') {
  11. // cli mode
  12. if (isset($argv[0]) && $argv[0] === basename(__FILE__))
  13. require(dirname(__FILE__) . '/src/cli.php');
  14. }