forkbb/app/config/test.default.php
Visman f2c9679e30 Add config for module Test
Now in the configuration you can set external form referrers.
Use a translator to read the comments in the test.default.php file.
2023-08-05 18:40:47 +07:00

22 lines
974 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* This file is part of the ForkBB <https://github.com/forkbb>.
*
* @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
* @license The MIT License (MIT)
*/
declare(strict_types=1);
// переименуйте этот файл в test.php
// в файле main.php замените '%DIR_CONFIG%/test.default.php' на '%DIR_CONFIG%/test.php'
// после этого вносите свои изменения
return [
// Список url (не относящихся к страницам движка) источников отправки форм
// символ звездочки (*) заменяет любое количество символов
'referers' => [
// 'http://localhost/', // <-- точное соотвествие странице http://localhost/ (не https)
// 'http://localhost/*', // <-- любые страницы с сайта http://localhost/ (не https)
],
];