mirror of
https://github.com/nosial/FileServer.git
synced 2025-06-06 13:38:36 +00:00
Some checks failed
Docker CI/CD / build-and-save (push) Has been cancelled
Docker CI/CD / build-and-push (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
24 lines
No EOL
547 B
Text
24 lines
No EOL
547 B
Text
<?php
|
|
|
|
if (PHP_SAPI !== 'cli')
|
|
{
|
|
print('net.nosial.fileserver must be run from the command line.' . PHP_EOL);
|
|
exit(1);
|
|
}
|
|
|
|
if(!isset($argv))
|
|
{
|
|
if(isset($_SERVER['argv']))
|
|
{
|
|
$argv = $_SERVER['argv'];
|
|
}
|
|
else
|
|
{
|
|
print('net.nosial.fileserver failed to run, no $argv found.' . PHP_EOL);
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
require('ncc');
|
|
\ncc\Classes\Runtime::import('net.nosial.fileserver', 'latest');
|
|
exit(\FileServer\Program::main($argv)); |