Updated Project Source code (I don't remember what i did.)

This commit is contained in:
netkas 2024-09-24 14:20:49 -04:00
parent fc2e4d5a73
commit 4879fdf36d
10 changed files with 289 additions and 10 deletions

24
main Normal file
View file

@ -0,0 +1,24 @@
<?php
if (PHP_SAPI !== 'cli')
{
print('net.nosial.socialbox 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.socialbox failed to run, no $argv found.' . PHP_EOL);
exit(1);
}
}
require('ncc');
\ncc\Classes\Runtime::import('net.nosial.socialbox', 'latest');
exit(\Socialbox\Program::main($argv));