mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
settings add hr options
This commit is contained in:
@@ -2489,7 +2489,7 @@ else {
|
|||||||
<font class='color_downloaded'> <?php echo $lang_functions['text_downloaded'] ?></font> <?php echo mksize($CURUSER['downloaded'])?>
|
<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?>
|
<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?>
|
||||||
<font class='color_connectable'><?php echo $lang_functions['text_connectable'] ?></font><?php echo $connectable?> <?php echo maxslots();?>
|
<font class='color_connectable'><?php echo $lang_functions['text_connectable'] ?></font><?php echo $connectable?> <?php echo maxslots();?>
|
||||||
<?php if(get_setting('hr.mode') != \App\Models\HitAndRun::MODE_DISABLED) { ?><font class='color_bonus'>H&R: </font> <?php echo sprintf('[<a href="myhr.php">%s/%s</a>]', get_row_count('hit_and_runs', "where uid = {$CURUSER['id']} and status = 3"), get_setting('hr.ban_user_when_counts_reach'))?><?php }?>
|
<?php if(\App\Models\HitAndRun::getIsEnabled()) { ?><font class='color_bonus'>H&R: </font> <?php echo sprintf('[<a href="myhr.php">%s/%s</a>]', get_row_count('hit_and_runs', "where uid = {$CURUSER['id']} and status = 3"), get_setting('hr.ban_user_when_counts_reach'))?><?php }?>
|
||||||
<?php if(get_user_class() >= UC_SYSOP) { ?> [<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>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ class Install
|
|||||||
public function runMigrate()
|
public function runMigrate()
|
||||||
{
|
{
|
||||||
if (!WITH_LARAVEL) {
|
if (!WITH_LARAVEL) {
|
||||||
throw new \RuntimeException('Laravel is not avaliable.');
|
throw new \RuntimeException('Laravel is not available.');
|
||||||
}
|
}
|
||||||
$command = "php " . ROOT_PATH . "artisan migrate --force";
|
$command = "php " . ROOT_PATH . "artisan migrate --force";
|
||||||
$result = exec($command, $output, $result_code);
|
$result = exec($command, $output, $result_code);
|
||||||
@@ -558,7 +558,7 @@ class Install
|
|||||||
public function runDatabaseSeeder()
|
public function runDatabaseSeeder()
|
||||||
{
|
{
|
||||||
if (!WITH_LARAVEL) {
|
if (!WITH_LARAVEL) {
|
||||||
throw new \RuntimeException('Laravel is not avaliable.');
|
throw new \RuntimeException('Laravel is not available.');
|
||||||
}
|
}
|
||||||
$command = "php " . ROOT_PATH . "artisan db:seed";
|
$command = "php " . ROOT_PATH . "artisan db:seed";
|
||||||
$result = exec($command, $output, $result_code);
|
$result = exec($command, $output, $result_code);
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
return array (
|
|
||||||
|
use App\Models\BonusLogs;
|
||||||
|
use App\Models\HitAndRun;
|
||||||
|
use App\Models\User;
|
||||||
|
|
||||||
|
return array (
|
||||||
'basic' =>
|
'basic' =>
|
||||||
array (
|
array (
|
||||||
'SITENAME' => 'NexusPHP',
|
'SITENAME' => 'NexusPHP',
|
||||||
@@ -164,6 +169,7 @@
|
|||||||
'againstoffer' => '1',
|
'againstoffer' => '1',
|
||||||
'userbar' => '2',
|
'userbar' => '2',
|
||||||
'view_special_torrent' => '4',
|
'view_special_torrent' => '4',
|
||||||
|
'torrent_hr' => User::CLASS_ADMINISTRATOR,
|
||||||
),
|
),
|
||||||
'tweak' =>
|
'tweak' =>
|
||||||
array (
|
array (
|
||||||
@@ -215,6 +221,7 @@
|
|||||||
'taxpercentage' => '10',
|
'taxpercentage' => '10',
|
||||||
'prolinkpoint' => '1',
|
'prolinkpoint' => '1',
|
||||||
'prolinktime' => '600',
|
'prolinktime' => '600',
|
||||||
|
'cancel_hr' => BonusLogs::DEFAULT_BONUS_CANCEL_ONE_HIT_AND_RUN,
|
||||||
),
|
),
|
||||||
'account' =>
|
'account' =>
|
||||||
array (
|
array (
|
||||||
@@ -374,4 +381,11 @@
|
|||||||
'google_drive_refresh_token' => '',
|
'google_drive_refresh_token' => '',
|
||||||
'google_drive_folder_id' => '',
|
'google_drive_folder_id' => '',
|
||||||
),
|
),
|
||||||
|
'hr' => [
|
||||||
|
'mode' => HitAndRun::MODE_DISABLED,
|
||||||
|
'inspect_time' => '',
|
||||||
|
'seed_time_minimum' => '',
|
||||||
|
'ignore_when_ratio_reach' => '',
|
||||||
|
'ban_user_when_counts_reach' => '',
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user