From 4f311b964d11faed508b69328a81d8d0a4faf14f Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 15 Sep 2023 16:59:28 +0300 Subject: [PATCH] add new settings --- example/environment/env.example.php | 9 +++++++++ src/crontab/export/feed.php | 9 +++++++++ src/public/node.php | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/example/environment/env.example.php b/example/environment/env.example.php index 51059b8..c3eff89 100644 --- a/example/environment/env.example.php +++ b/example/environment/env.example.php @@ -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', diff --git a/src/crontab/export/feed.php b/src/crontab/export/feed.php index 5370920..e13bdf0 100644 --- a/src/crontab/export/feed.php +++ b/src/crontab/export/feed.php @@ -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, diff --git a/src/public/node.php b/src/public/node.php index df80484..04af2b6 100644 --- a/src/public/node.php +++ b/src/public/node.php @@ -354,6 +354,24 @@ else if (is_null($user->public)) - + + + + - + + + + + + - + + + + + + - + +