mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
backup support zip
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.10');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-05-12');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-05-14');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -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