mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
backup support zip
This commit is contained in:
@@ -628,6 +628,16 @@ function isRunningInConsole(): bool
|
||||
return !RUNNING_IN_OCTANE && php_sapi_name() == 'cli';
|
||||
}
|
||||
|
||||
function isRunningOnWindows(): bool
|
||||
{
|
||||
return !RUNNING_IN_OCTANE && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
|
||||
}
|
||||
|
||||
function command_exists($command): bool
|
||||
{
|
||||
return !(trim(exec("command -v $command")) == '');
|
||||
}
|
||||
|
||||
function get_tracker_schema_and_host($combine = false): array|string
|
||||
{
|
||||
global $https_announce_urls, $announce_urls;
|
||||
|
||||
Reference in New Issue
Block a user