Browse Source

add new settings

main
ghost 1 year ago
parent
commit
4f311b964d
  1. 9
      example/environment/env.example.php
  2. 9
      src/crontab/export/feed.php
  3. 18
      src/public/node.php

9
example/environment/env.example.php

@ -109,6 +109,15 @@ define('MAGNET_KT_REGEX', '/[\w]+/ui'); @@ -109,6 +109,15 @@ define('MAGNET_KT_REGEX', '/[\w]+/ui');
define('MAGNET_KT_MIN_QUANTITY', 0);
define('MAGNET_KT_MAX_QUANTITY', 10);
define('MAGNET_TR_MIN_QUANTITY', 1);
define('MAGNET_TR_MAX_QUANTITY', 50);
define('MAGNET_AS_MIN_QUANTITY', 0);
define('MAGNET_AS_MAX_QUANTITY', 50);
define('MAGNET_WS_MIN_QUANTITY', 0);
define('MAGNET_WS_MAX_QUANTITY', 50);
define('MAGNET_STOP_WORDS_SIMILAR',
[
'series',

9
src/crontab/export/feed.php

@ -92,6 +92,15 @@ try @@ -92,6 +92,15 @@ try
'MAGNET_KT_MAX_QUANTITY' => (int) MAGNET_KT_MAX_QUANTITY,
'MAGNET_KT_REGEX' => (string) MAGNET_KT_REGEX,
'MAGNET_TR_MIN_QUANTITY' => (int) MAGNET_TR_MIN_QUANTITY,
'MAGNET_TR_MAX_QUANTITY' => (int) MAGNET_TR_MAX_QUANTITY,
'MAGNET_AS_MIN_QUANTITY' => (int) MAGNET_AS_MIN_QUANTITY,
'MAGNET_AS_MAX_QUANTITY' => (int) MAGNET_AS_MAX_QUANTITY,
'MAGNET_WS_MIN_QUANTITY' => (int) MAGNET_WS_MIN_QUANTITY,
'MAGNET_WS_MAX_QUANTITY' => (int) MAGNET_WS_MAX_QUANTITY,
'MAGNET_COMMENT_DEFAULT_APPROVED' => (bool) MAGNET_COMMENT_DEFAULT_APPROVED,
'MAGNET_COMMENT_DEFAULT_PUBLIC' => (bool) MAGNET_COMMENT_DEFAULT_PUBLIC,
'MAGNET_COMMENT_DEFAULT_PUBLIC' => (bool) MAGNET_COMMENT_DEFAULT_PUBLIC,

18
src/public/node.php

@ -354,6 +354,24 @@ else if (is_null($user->public)) @@ -354,6 +354,24 @@ else if (is_null($user->public))
<?php echo MAGNET_KT_MIN_QUANTITY ?>-<?php echo MAGNET_KT_MAX_QUANTITY ?>
</td>
</tr>
<tr>
<td><?php echo _('TR, quantity') ?></td>
<td>
<?php echo MAGNET_TR_MIN_QUANTITY ?>-<?php echo MAGNET_TR_MAX_QUANTITY ?>
</td>
</tr>
<tr>
<td><?php echo _('AS, quantity') ?></td>
<td>
<?php echo MAGNET_AS_MIN_QUANTITY ?>-<?php echo MAGNET_AS_MAX_QUANTITY ?>
</td>
</tr>
<tr>
<td><?php echo _('WS, quantity') ?></td>
<td>
<?php echo MAGNET_WS_MIN_QUANTITY ?>-<?php echo MAGNET_WS_MAX_QUANTITY ?>
</td>
</tr>
<tr>
<td class="padding-y-8 border-bottom-default text-right" colspan="2">
<?php echo _('Comments') ?>

Loading…
Cancel
Save