details.php award magic && display sponsorships

This commit is contained in:
xiaomlove
2021-06-08 09:58:41 +08:00
parent 0e05e6c061
commit 557c9d3b30
4 changed files with 11 additions and 2 deletions
+5
View File
@@ -21,6 +21,11 @@
- Mysql: 5.7最新版或以上版本
- Redis:可选
## 捐赠
此程序由个人维护,如果对你有帮助,可以请我喝杯咖啡。感谢以下捐赠者:
**初心、陌路つ**
## 更多信息
博客:[https://nexusphp.org](http://nexusphp.org/)
论坛:[https://discuss.nexusphp.org](https://discuss.nexusphp.org/)
+1 -1
View File
@@ -249,7 +249,7 @@ class User extends Authenticatable
public function canAccessAdmin()
{
$targetClass = self::CLASS_MODERATOR;
$targetClass = self::CLASS_SYSOP;
if (!$this->class || $this->class < $targetClass) {
do_log(sprintf('user: %s, no class or class < %s, can not access admin.', $this->id, $targetClass));
return false;
+1 -1
View File
@@ -2483,7 +2483,7 @@ else {
<font class='color_downloaded'> <?php echo $lang_functions['text_downloaded'] ?></font> <?php echo mksize($CURUSER['downloaded'])?>
<font class='color_active'><?php echo $lang_functions['text_active_torrents'] ?></font> <img class="arrowup" alt="Torrents seeding" title="<?php echo $lang_functions['title_torrents_seeding'] ?>" src="pic/trans.gif" /><?php echo $activeseed?> <img class="arrowdown" alt="Torrents leeching" title="<?php echo $lang_functions['title_torrents_leeching'] ?>" src="pic/trans.gif" /><?php echo $activeleech?>&nbsp;&nbsp;
<font class='color_connectable'><?php echo $lang_functions['text_connectable'] ?></font><?php echo $connectable?> <?php echo maxslots();?>
<?php if(get_user_class() >= UC_MODERATOR) { ?> [<a href="/admin" target="_blank"><?php echo $lang_functions['text_management_system'] ?></a>]<?php }?>
<?php if(get_user_class() >= UC_SYSOP) { ?> [<a href="/admin" target="_blank"><?php echo $lang_functions['text_management_system'] ?></a>]<?php }?>
</span>
</td>
<td class="bottom" align="right"><span class="medium"><?php echo $lang_functions['text_the_time_is_now'] ?><?php echo $datum['hours'].":".$datum['minutes']?><br />
+4
View File
@@ -2,6 +2,7 @@
namespace Nexus\Install;
use Illuminate\Support\Str;
use Nexus\Database\DB;
class Install
@@ -220,6 +221,9 @@ class Install
$value = $oldGroupValues[$key];
}
}
if ($prefix == 'basic' && Str::startsWith($value, 'localhost')) {
$value = '';
}
if (isset($requireDirs[$prefix]) && in_array($key, $requireDirs[$prefix])) {
$dir = getFullDirectory($value);
$tableRows[] = [