mirror of
https://github.com/nosial/FileServer.git
synced 2025-06-07 13:48:36 +00:00
Added ncc project file
This commit is contained in:
parent
4c99228979
commit
782c7f66f2
11 changed files with 635 additions and 0 deletions
24
main
Normal file
24
main
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
if (PHP_SAPI !== 'cli')
|
||||
{
|
||||
print('net.nosial.file_server 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.file_server failed to run, no $argv found.' . PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
require('ncc');
|
||||
\ncc\Classes\Runtime::import('net.nosial.file_server', 'latest');
|
||||
exit(\FileServer\Program::main($argv));
|
Loading…
Add table
Add a link
Reference in a new issue