mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
1b970cc7c5
- Improves #48, #57, and #61
19 lines
No EOL
486 B
PHP
19 lines
No EOL
486 B
PHP
<?php
|
|
namespace JKingWeb\Arsse;
|
|
var_export(get_defined_constants());
|
|
exit;
|
|
require_once __DIR__.DIRECTORY_SEPARATOR."bootstrap.php";
|
|
|
|
if(\PHP_SAPI=="cli") {
|
|
// initialize the CLI; this automatically handles --help and --version
|
|
$cli = new CLI;
|
|
// load configuration
|
|
Arsse::load(new Conf());
|
|
// handle CLI requests
|
|
$cli->dispatch();
|
|
} else {
|
|
// load configuration
|
|
Arsse::load(new Conf());
|
|
// handle Web requests
|
|
(new REST)->dispatch()->output();
|
|
} |