mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 10:57:27 +08:00
add lacking of trans
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.4');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-16');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-06-18');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -277,7 +277,7 @@ function formatSpoiler($content, $title = '', $defaultCollapsed = true): string
|
||||
if (!$title) {
|
||||
$title = $lang_functions['spoiler_default_title'];
|
||||
}
|
||||
$content = str_replace(['<br>', '<br />'], '', $content);
|
||||
// $content = str_replace(['<br>', '<br />'], '', $content);
|
||||
$contentClass = "spoiler-content";
|
||||
if ($defaultCollapsed) {
|
||||
$contentClass .= " collapse";
|
||||
|
||||
@@ -38,7 +38,7 @@ class Install
|
||||
];
|
||||
protected array $requiredFunctions = [
|
||||
'symlink', 'putenv', 'proc_open', 'proc_get_status', 'exec',
|
||||
// 'pcntl_signal', 'pcntl_alarm', 'pcntl_async_signals'
|
||||
'pcntl_signal', 'pcntl_alarm', 'pcntl_async_signals'
|
||||
];
|
||||
|
||||
protected string $lockFile = 'install.lock';
|
||||
@@ -169,10 +169,10 @@ class Install
|
||||
$disabledFunctions = [];
|
||||
foreach ($this->requiredFunctions as $fn) {
|
||||
if (str_starts_with($fn, "pcntl_") && function_exists('exec')) {
|
||||
$output = [];
|
||||
$command = "php -r 'var_export(function_exists(\"$fn\"));'";
|
||||
$result = exec($command, $output, $result_code);
|
||||
$outputString = implode("\n", $output);
|
||||
$exists = $outputString == 'true';
|
||||
$exists = $output[0] == 'true';
|
||||
if (!$exists) {
|
||||
$disabledFunctions[] = $fn;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ class Install
|
||||
|
||||
foreach ($this->requiredExtensions as $extension) {
|
||||
if ($extension == 'pcntl' && function_exists('exec')) {
|
||||
// $loadedStr = executeCommand("php -m");
|
||||
$output = [];
|
||||
$result = exec("php -m", $output, $result_code);
|
||||
$outputString = implode("\n", $output);
|
||||
$loadedStr = $outputString;
|
||||
|
||||
@@ -37,6 +37,7 @@ return [
|
||||
'login_log' => 'Login logs',
|
||||
'bonus_log' => 'Bonus logs',
|
||||
'torrent_buy_log' => 'Torrent buy logs',
|
||||
'attendance_log' => 'Attendance logs',
|
||||
],
|
||||
'resources' => [
|
||||
'agent_allow' => [
|
||||
|
||||
@@ -37,6 +37,7 @@ return [
|
||||
'login_log' => '登錄記錄',
|
||||
'bonus_log' => '魔力記錄',
|
||||
'torrent_buy_log' => '種子購買',
|
||||
'attendance_log' => '簽到記錄',
|
||||
],
|
||||
'resources' => [
|
||||
'agent_allow' => [
|
||||
|
||||
Reference in New Issue
Block a user