mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-23 21:24:19 +00:00
add new settings
This commit is contained in:
parent
89d0ffdfe1
commit
3ce35066b0
@ -85,18 +85,29 @@ define('MAGNET_DEFAULT_SENSITIVE', false);
|
||||
|
||||
define('MAGNET_AUTO_APPROVE_ON_IMPORT_APPROVED', true);
|
||||
|
||||
|
||||
define('MAGNET_EDITOR_LOCK_TIMEOUT', 60*60);
|
||||
|
||||
define('MAGNET_TITLE_MIN_LENGTH', 10);
|
||||
define('MAGNET_TITLE_MAX_LENGTH', 140);
|
||||
define('MAGNET_TITLE_REGEX', '/.*/ui');
|
||||
|
||||
define('MAGNET_PREVIEW_MIN_LENGTH', 0);
|
||||
define('MAGNET_PREVIEW_MAX_LENGTH', 255);
|
||||
define('MAGNET_PREVIEW_REGEX', '/.*/ui');
|
||||
|
||||
define('MAGNET_DESCRIPTION_MIN_LENGTH', 0);
|
||||
define('MAGNET_DESCRIPTION_MAX_LENGTH', 10000);
|
||||
define('MAGNET_DESCRIPTION_REGEX', '/.*/ui');
|
||||
|
||||
define('MAGNET_DN_MIN_LENGTH', 10);
|
||||
define('MAGNET_DN_MAX_LENGTH', 140);
|
||||
define('MAGNET_DN_REGEX', '/.*/ui');
|
||||
|
||||
define('MAGNET_KT_MIN_LENGTH', 10);
|
||||
define('MAGNET_KT_MAX_LENGTH', 140);
|
||||
define('MAGNET_KT_REGEX', '/[\w]+/ui');
|
||||
define('MAGNET_KT_MIN_QUANTITY', 0);
|
||||
define('MAGNET_KT_MAX_QUANTITY', 10);
|
||||
|
||||
define('MAGNET_STOP_WORDS_SIMILAR',
|
||||
[
|
||||
|
@ -72,12 +72,25 @@ try
|
||||
|
||||
'MAGNET_TITLE_MIN_LENGTH' => (int) MAGNET_TITLE_MIN_LENGTH,
|
||||
'MAGNET_TITLE_MAX_LENGTH' => (int) MAGNET_TITLE_MAX_LENGTH,
|
||||
'MAGNET_TITLE_REGEX' => (string) MAGNET_TITLE_REGEX,
|
||||
|
||||
'MAGNET_PREVIEW_MIN_LENGTH' => (int) MAGNET_PREVIEW_MIN_LENGTH,
|
||||
'MAGNET_PREVIEW_MAX_LENGTH' => (int) MAGNET_PREVIEW_MAX_LENGTH,
|
||||
'MAGNET_PREVIEW_REGEX' => (string) MAGNET_PREVIEW_REGEX,
|
||||
|
||||
'MAGNET_DESCRIPTION_MIN_LENGTH' => (int) MAGNET_DESCRIPTION_MIN_LENGTH,
|
||||
'MAGNET_DESCRIPTION_MAX_LENGTH' => (int) MAGNET_DESCRIPTION_MAX_LENGTH,
|
||||
'MAGNET_DESCRIPTION_REGEX' => (string) MAGNET_DESCRIPTION_REGEX,
|
||||
|
||||
'MAGNET_DN_MIN_LENGTH' => (int) MAGNET_DN_MIN_LENGTH,
|
||||
'MAGNET_DN_MAX_LENGTH' => (int) MAGNET_DN_MAX_LENGTH,
|
||||
'MAGNET_DN_REGEX' => (string) MAGNET_DN_REGEX,
|
||||
|
||||
'MAGNET_KT_MIN_LENGTH' => (int) MAGNET_KT_MIN_LENGTH,
|
||||
'MAGNET_KT_MAX_LENGTH' => (int) MAGNET_KT_MAX_LENGTH,
|
||||
'MAGNET_KT_MIN_QUANTITY' => (int) MAGNET_KT_MIN_QUANTITY,
|
||||
'MAGNET_KT_MAX_QUANTITY' => (int) MAGNET_KT_MAX_QUANTITY,
|
||||
'MAGNET_KT_REGEX' => (string) MAGNET_KT_REGEX,
|
||||
|
||||
'MAGNET_COMMENT_DEFAULT_APPROVED' => (bool) MAGNET_COMMENT_DEFAULT_APPROVED,
|
||||
'MAGNET_COMMENT_DEFAULT_PUBLIC' => (bool) MAGNET_COMMENT_DEFAULT_PUBLIC,
|
||||
|
@ -346,6 +346,14 @@ else if (is_null($user->public))
|
||||
<td><?php echo _('Description long, chars') ?></td>
|
||||
<td><?php echo MAGNET_DESCRIPTION_MIN_LENGTH ?>-<?php echo MAGNET_DESCRIPTION_MAX_LENGTH ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo _('Keywords long, chars, quantity') ?></td>
|
||||
<td>
|
||||
<?php echo MAGNET_KT_MIN_LENGTH ?>-<?php echo MAGNET_KT_MAX_LENGTH ?>
|
||||
/
|
||||
<?php echo MAGNET_KT_MIN_QUANTITY ?>-<?php echo MAGNET_KT_MAX_QUANTITY ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padding-y-8 border-bottom-default text-right" colspan="2">
|
||||
<?php echo _('Comments') ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user