Merge pull request #382 from specialpointcentral/php8

Fix duplicate includes and update styles
This commit is contained in:
xiaomlove
2025-10-02 22:00:25 +07:00
committed by GitHub
4 changed files with 17 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
<?php
defined('LARAVEL_START') || define('LARAVEL_START', microtime(true));
defined('IN_NEXUS') || define('IN_NEXUS', false);
require dirname(__DIR__) . '/include/constants.php';
require dirname(__DIR__) . '/include/globalfunctions.php';
require dirname(__DIR__) . '/include/functions.php';
require_once dirname(__DIR__) . '/include/constants.php';
require_once dirname(__DIR__) . '/include/globalfunctions.php';
require_once dirname(__DIR__) . '/include/functions.php';
if (!RUNNING_IN_OCTANE) {
\Nexus\Nexus::boot();
}

View File

@@ -54,7 +54,7 @@ $lang_functions = array
'text_request' => "&nbsp;求&nbsp;&nbsp;种&nbsp;",
'text_upload' => "&nbsp;发&nbsp;&nbsp;布&nbsp;",
'text_subtitles' => "&nbsp;字&nbsp;&nbsp;幕&nbsp;",
'text_user_cp' => "&nbsp;控制面板&nbsp;",
'text_user_cp' => "控制面板",
'text_top_ten' => "排&nbsp;行&nbsp;榜",
'text_log' => "&nbsp;日&nbsp;&nbsp;志&nbsp;",
'text_rules' => "&nbsp;规&nbsp;&nbsp;则&nbsp;",

View File

@@ -54,7 +54,7 @@ $lang_functions = array
'text_request' => "&nbsp;求&nbsp;&nbsp;種&nbsp;",
'text_upload' => "&nbsp;發&nbsp;&nbsp;布&nbsp;",
'text_subtitles' => "&nbsp;字&nbsp;&nbsp;幕&nbsp;",
'text_user_cp' => "&nbsp;控制面板&nbsp;",
'text_user_cp' => "控制面板",
'text_top_ten' => "排&nbsp;行&nbsp;榜",
'text_log' => "&nbsp;日&nbsp;&nbsp;志&nbsp;",
'text_rules' => "&nbsp;規&nbsp;&nbsp;則&nbsp;",

View File

@@ -209,24 +209,24 @@ JS;
else
$status = "<a href=checkuser.php?id={$arr['id']}><font color=#ca0226>".$lang_invite['text_pending']."</font></a>";
print("<tr class=rowfollow>
<td class=rowfollow>".get_username($arr['id'])."</td>
<td>{$arr['email']}</td>
<td class=rowfollow>".$arr['enabled']."</td>
<td class=rowfollow>" . mksize($arr['uploaded']) . "</td>
<td class=rowfollow>" . mksize($arr['downloaded']) . "</td>
<td class=rowfollow>$ratio</td>
<td class=rowfollow>".number_format($arr['seeding_torrent_count'])."</td>
<td class=rowfollow>".mksize($arr['seeding_torrent_size'])."</td>
<td class=rowfollow>".number_format($arr['seed_points_per_hour'], 3)."</td>
");
<td class=rowfollow>".get_username($arr['id'])."</td>
<td class=rowfollow>".$arr['email']."</td>
<td class=rowfollow>".$arr['enabled']."</td>
<td class=rowfollow>" . mksize($arr['uploaded']) . "</td>
<td class=rowfollow>" . mksize($arr['downloaded']) . "</td>
<td class=rowfollow>".$ratio."</td>
<td class=rowfollow>".number_format($arr['seeding_torrent_count'])."</td>
<td class=rowfollow>".mksize($arr['seeding_torrent_size'])."</td>
<td class=rowfollow>".number_format($arr['seed_points_per_hour'], 3)."</td>
");
if ($haremAdditionFactor > 0) {
print ("<td class=rowfollow>".number_format(floatval($arr['seed_points_per_hour']) * $haremAdditionFactor, 3)."</td>");
}
print("<td class=rowfollow>{$arr['last_announce_at']}</td>");
print("<td class=rowfollow>$status</td>");
print("<td class=rowfollow>{$status}</td>");
if ($CURUSER['id'] == $id || get_user_class() >= UC_SYSOP){
print("<td>");
print("<td class=rowfollow>");
if ($arr['status'] == 'pending')
print("<input type=\"checkbox\" name=\"conusr[]\" value=\"" . $arr['id'] . "\" />");
print("</td>");