mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
Merge pull request #382 from specialpointcentral/php8
Fix duplicate includes and update styles
This commit is contained in:
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('LARAVEL_START') || define('LARAVEL_START', microtime(true));
|
defined('LARAVEL_START') || define('LARAVEL_START', microtime(true));
|
||||||
defined('IN_NEXUS') || define('IN_NEXUS', false);
|
defined('IN_NEXUS') || define('IN_NEXUS', false);
|
||||||
require dirname(__DIR__) . '/include/constants.php';
|
require_once dirname(__DIR__) . '/include/constants.php';
|
||||||
require dirname(__DIR__) . '/include/globalfunctions.php';
|
require_once dirname(__DIR__) . '/include/globalfunctions.php';
|
||||||
require dirname(__DIR__) . '/include/functions.php';
|
require_once dirname(__DIR__) . '/include/functions.php';
|
||||||
if (!RUNNING_IN_OCTANE) {
|
if (!RUNNING_IN_OCTANE) {
|
||||||
\Nexus\Nexus::boot();
|
\Nexus\Nexus::boot();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ $lang_functions = array
|
|||||||
'text_request' => " 求 种 ",
|
'text_request' => " 求 种 ",
|
||||||
'text_upload' => " 发 布 ",
|
'text_upload' => " 发 布 ",
|
||||||
'text_subtitles' => " 字 幕 ",
|
'text_subtitles' => " 字 幕 ",
|
||||||
'text_user_cp' => " 控制面板 ",
|
'text_user_cp' => "控制面板",
|
||||||
'text_top_ten' => "排 行 榜",
|
'text_top_ten' => "排 行 榜",
|
||||||
'text_log' => " 日 志 ",
|
'text_log' => " 日 志 ",
|
||||||
'text_rules' => " 规 则 ",
|
'text_rules' => " 规 则 ",
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ $lang_functions = array
|
|||||||
'text_request' => " 求 種 ",
|
'text_request' => " 求 種 ",
|
||||||
'text_upload' => " 發 布 ",
|
'text_upload' => " 發 布 ",
|
||||||
'text_subtitles' => " 字 幕 ",
|
'text_subtitles' => " 字 幕 ",
|
||||||
'text_user_cp' => " 控制面板 ",
|
'text_user_cp' => "控制面板",
|
||||||
'text_top_ten' => "排 行 榜",
|
'text_top_ten' => "排 行 榜",
|
||||||
'text_log' => " 日 志 ",
|
'text_log' => " 日 志 ",
|
||||||
'text_rules' => " 規 則 ",
|
'text_rules' => " 規 則 ",
|
||||||
|
|||||||
+12
-12
@@ -209,24 +209,24 @@ JS;
|
|||||||
else
|
else
|
||||||
$status = "<a href=checkuser.php?id={$arr['id']}><font color=#ca0226>".$lang_invite['text_pending']."</font></a>";
|
$status = "<a href=checkuser.php?id={$arr['id']}><font color=#ca0226>".$lang_invite['text_pending']."</font></a>";
|
||||||
print("<tr class=rowfollow>
|
print("<tr class=rowfollow>
|
||||||
<td class=rowfollow>".get_username($arr['id'])."</td>
|
<td class=rowfollow>".get_username($arr['id'])."</td>
|
||||||
<td>{$arr['email']}</td>
|
<td class=rowfollow>".$arr['email']."</td>
|
||||||
<td class=rowfollow>".$arr['enabled']."</td>
|
<td class=rowfollow>".$arr['enabled']."</td>
|
||||||
<td class=rowfollow>" . mksize($arr['uploaded']) . "</td>
|
<td class=rowfollow>" . mksize($arr['uploaded']) . "</td>
|
||||||
<td class=rowfollow>" . mksize($arr['downloaded']) . "</td>
|
<td class=rowfollow>" . mksize($arr['downloaded']) . "</td>
|
||||||
<td class=rowfollow>$ratio</td>
|
<td class=rowfollow>".$ratio."</td>
|
||||||
<td class=rowfollow>".number_format($arr['seeding_torrent_count'])."</td>
|
<td class=rowfollow>".number_format($arr['seeding_torrent_count'])."</td>
|
||||||
<td class=rowfollow>".mksize($arr['seeding_torrent_size'])."</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>".number_format($arr['seed_points_per_hour'], 3)."</td>
|
||||||
");
|
");
|
||||||
|
|
||||||
if ($haremAdditionFactor > 0) {
|
if ($haremAdditionFactor > 0) {
|
||||||
print ("<td class=rowfollow>".number_format(floatval($arr['seed_points_per_hour']) * $haremAdditionFactor, 3)."</td>");
|
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>{$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){
|
if ($CURUSER['id'] == $id || get_user_class() >= UC_SYSOP){
|
||||||
print("<td>");
|
print("<td class=rowfollow>");
|
||||||
if ($arr['status'] == 'pending')
|
if ($arr['status'] == 'pending')
|
||||||
print("<input type=\"checkbox\" name=\"conusr[]\" value=\"" . $arr['id'] . "\" />");
|
print("<input type=\"checkbox\" name=\"conusr[]\" value=\"" . $arr['id'] . "\" />");
|
||||||
print("</td>");
|
print("</td>");
|
||||||
|
|||||||
Reference in New Issue
Block a user