Another approach to fix duplicates - priorities

Priority description: (lower number - higher priority)
1-99 Highest priority - overrides everything, even pages from database, use with caption
100 - default for pages in database
101-999 - recommended range for plugins
1000 - default value for plugins if no other specified
1001 - 9999 - no usage currently
10000 - default myaac routes
This commit is contained in:
slawkens
2024-06-13 21:35:47 +02:00
parent c1d4b4f80c
commit c7a6a539a9
4 changed files with 68 additions and 46 deletions

View File

@@ -15,9 +15,9 @@ return [
['GET', 'news/{id:int}', 'news/archive.php'],
// block access to some files
['*', 'account/base', '404.php'], // this is to block account/base.php
['*', 'forum/base', '404.php'],
['*', 'guilds/base', '404.php'],
['*', 'account/base', '404.php', 10], // this is to block account/base.php
['*', 'forum/base', '404.php', 10],
['*', 'guilds/base', '404.php', 10],
[['GET', 'POST'], 'account/password', 'account/change_password.php'],
[['GET', 'POST'], 'account/register/new', 'account/register_new.php'],