From 99c98b608959afb135b60fa33777fe71ba2f68f5 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 14 Sep 2023 03:27:47 +0300 Subject: [PATCH] add new settings --- example/environment/env.example.php | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/example/environment/env.example.php b/example/environment/env.example.php index 9afd58a..8c343e8 100644 --- a/example/environment/env.example.php +++ b/example/environment/env.example.php @@ -72,6 +72,7 @@ define('USER_DEFAULT_APPROVED', false); define('USER_AUTO_APPROVE_ON_MAGNET_APPROVE', false); define('USER_AUTO_APPROVE_ON_COMMENT_APPROVE', false); +define('USER_AUTO_APPROVE_ON_IMPORT_APPROVED', false); define('USER_DEFAULT_IDENTICON', 'jidenticon'); // jidenticon|false define('USER_IDENTICON_FIELD', 'address'); // address|userId|... @@ -82,6 +83,9 @@ define('MAGNET_DEFAULT_PUBLIC', false); define('MAGNET_DEFAULT_COMMENTS', true); 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); @@ -125,18 +129,19 @@ define('API_VERSION', 1); define('API_EXPORT_ENABLED', true); -define('API_EXPORT_USERS_ENABLED', true); -define('API_EXPORT_MAGNETS_ENABLED', true); -define('API_EXPORT_DOWNLOADS_ENABLED', true); -define('API_EXPORT_COMMENTS_ENABLED', true); -define('API_EXPORT_STARS_ENABLED', true); -define('API_EXPORT_VIEWS_ENABLED', true); +define('API_EXPORT_USERS_ENABLED', true); // depends of API_EXPORT_ENABLED +define('API_EXPORT_MAGNETS_ENABLED', true); // depends of API_EXPORT_ENABLED +define('API_EXPORT_DOWNLOADS_ENABLED', true); // depends of API_EXPORT_ENABLED +define('API_EXPORT_COMMENTS_ENABLED', true); // depends of API_EXPORT_ENABLED +define('API_EXPORT_STARS_ENABLED', true); // depends of API_EXPORT_ENABLED +define('API_EXPORT_VIEWS_ENABLED', true); // depends of API_EXPORT_ENABLED define('API_IMPORT_ENABLED', true); -define('API_IMPORT_USERS_ENABLED', true); -define('API_IMPORT_MAGNETS_ENABLED', true); -define('API_IMPORT_DOWNLOADS_ENABLED', true); -define('API_IMPORT_COMMENTS_ENABLED', true); -define('API_IMPORT_STARS_ENABLED', true); -define('API_IMPORT_VIEWS_ENABLED', true); \ No newline at end of file +define('API_IMPORT_USERS_ENABLED', true); // depends of API_IMPORT_ENABLED + +define('API_IMPORT_MAGNETS_ENABLED', true); // depends of API_IMPORT_ENABLED, API_IMPORT_USERS_ENABLED +define('API_IMPORT_DOWNLOADS_ENABLED', true); // depends of API_IMPORT_ENABLED, API_IMPORT_USERS_ENABLED, API_IMPORT_MAGNETS_ENABLED +define('API_IMPORT_COMMENTS_ENABLED', true); // depends of API_IMPORT_ENABLED, API_IMPORT_USERS_ENABLED, API_IMPORT_MAGNETS_ENABLED +define('API_IMPORT_STARS_ENABLED', true); // depends of API_IMPORT_ENABLED, API_IMPORT_USERS_ENABLED, API_IMPORT_MAGNETS_ENABLED +define('API_IMPORT_VIEWS_ENABLED', true); // depends of API_IMPORT_ENABLED, API_IMPORT_USERS_ENABLED, API_IMPORT_MAGNETS_ENABLED \ No newline at end of file