|
@@ -2,39 +2,41 @@
|
|
|
|
|
|
return [
|
|
return [
|
|
'BASE_URL' => '_BASE_URL_',
|
|
'BASE_URL' => '_BASE_URL_',
|
|
- // Define line breaks in mail headers; possible values can be PHP_EOL, "\r\n", "\n" or "\r"
|
|
|
|
- 'EOL' => PHP_EOL,
|
|
|
|
|
|
+ 'EOL' => PHP_EOL, // Define line breaks in mail headers; possible values can be PHP_EOL, "\r\n", "\n" or "\r"
|
|
'DB_DSN' => '_DB_DSN_',
|
|
'DB_DSN' => '_DB_DSN_',
|
|
'DB_USERNAME' => '_DB_USERNAME_',
|
|
'DB_USERNAME' => '_DB_USERNAME_',
|
|
'DB_PASSWORD' => '_DB_PASSWORD_',
|
|
'DB_PASSWORD' => '_DB_PASSWORD_',
|
|
'DB_OPTIONS' => [],
|
|
'DB_OPTIONS' => [],
|
|
'DB_PREFIX' => '_DB_PREFIX_',
|
|
'DB_PREFIX' => '_DB_PREFIX_',
|
|
- 'TIME_REMEMBER' => 31536000,
|
|
|
|
'COOKIE' => [
|
|
'COOKIE' => [
|
|
'prefix' => '_COOKIE_PREFIX_',
|
|
'prefix' => '_COOKIE_PREFIX_',
|
|
'domain' => '',
|
|
'domain' => '',
|
|
'path' => '/',
|
|
'path' => '/',
|
|
'secure' => false,
|
|
'secure' => false,
|
|
|
|
+ 'time' => 31536000,
|
|
|
|
+ 'key1' => '_COOKIE_KEY1_',
|
|
|
|
+ 'key2' => '_COOKIE_KEY2_',
|
|
],
|
|
],
|
|
'HMAC' => [
|
|
'HMAC' => [
|
|
- 'algo' => 'sha256',
|
|
|
|
|
|
+ 'algo' => 'sha1',
|
|
'salt' => '_SALT_FOR_HMAC_',
|
|
'salt' => '_SALT_FOR_HMAC_',
|
|
],
|
|
],
|
|
- // For FluxBB by Visman 1.5.10.74 and above
|
|
|
|
- 'SALT1' => '',
|
|
|
|
- 'JQUERY_LINK' => '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js',
|
|
|
|
- 'DEBUG' => 1,
|
|
|
|
- 'MAINTENANCE_OFF' => false,
|
|
|
|
- 'GROUP_ADMIN' => 1,
|
|
|
|
- 'GROUP_MOD' => 2,
|
|
|
|
- 'GROUP_GUEST' => 3,
|
|
|
|
- 'GROUP_MEMBER' => 4,
|
|
|
|
|
|
+ 'JQUERY_LINK' => '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js',
|
|
|
|
+ 'DEBUG' => 2,
|
|
|
|
+ 'MAINTENANCE_OFF' => false,
|
|
|
|
+ 'GROUP_ADMIN' => 1,
|
|
|
|
+ 'GROUP_MOD' => 2,
|
|
|
|
+ 'GROUP_GUEST' => 3,
|
|
|
|
+ 'GROUP_MEMBER' => 4,
|
|
|
|
+ 'BBCODE_INFO' => [
|
|
|
|
+ 'forSign' => ['b', 'i', 'u', 'color', 'colour', 'email', 'img', 'url'],
|
|
|
|
+ 'smTpl' => '<img src="{url}" alt="{alt}">',
|
|
|
|
+ 'smTplTag' => 'img',
|
|
|
|
+ 'smTplBl' => ['url'],
|
|
|
|
+ ],
|
|
|
|
+ 'MAX_POST_SIZE' => 65536,
|
|
|
|
|
|
'shared' => [
|
|
'shared' => [
|
|
- 'Request' => [
|
|
|
|
- 'class' => \ForkBB\Core\Request::class,
|
|
|
|
- 'Secury' => '@Secury',
|
|
|
|
- ],
|
|
|
|
'DB' => [
|
|
'DB' => [
|
|
'class' => \ForkBB\Core\DB::class,
|
|
'class' => \ForkBB\Core\DB::class,
|
|
'dsn' => '%DB_DSN%',
|
|
'dsn' => '%DB_DSN%',
|
|
@@ -45,163 +47,163 @@ return [
|
|
],
|
|
],
|
|
'Secury' => [
|
|
'Secury' => [
|
|
'class' => \ForkBB\Core\Secury::class,
|
|
'class' => \ForkBB\Core\Secury::class,
|
|
- 'hmac' => '%HMAC%',
|
|
|
|
|
|
+ 'hmac' => '%HMAC%',
|
|
],
|
|
],
|
|
'FileCache' => [
|
|
'FileCache' => [
|
|
- 'class' => \ForkBB\Core\Cache\FileCache::class,
|
|
|
|
|
|
+ 'class' => \ForkBB\Core\Cache\FileCache::class,
|
|
'cache_dir' => '%DIR_CACHE%',
|
|
'cache_dir' => '%DIR_CACHE%',
|
|
],
|
|
],
|
|
'Cache' => [
|
|
'Cache' => [
|
|
- 'class' => \ForkBB\Core\Cache::class,
|
|
|
|
|
|
+ 'class' => \ForkBB\Core\Cache::class,
|
|
'provider' => '@FileCache',
|
|
'provider' => '@FileCache',
|
|
],
|
|
],
|
|
'Validator' => \ForkBB\Core\Validator::class,
|
|
'Validator' => \ForkBB\Core\Validator::class,
|
|
'View' => [
|
|
'View' => [
|
|
- 'class' => \ForkBB\Core\View::class,
|
|
|
|
|
|
+ 'class' => \ForkBB\Core\View::class,
|
|
'cache_dir' => '%DIR_CACHE%',
|
|
'cache_dir' => '%DIR_CACHE%',
|
|
'views_dir' => '%DIR_VIEWS%',
|
|
'views_dir' => '%DIR_VIEWS%',
|
|
],
|
|
],
|
|
'Router' => [
|
|
'Router' => [
|
|
- 'class' => \ForkBB\Core\Router::class,
|
|
|
|
|
|
+ 'class' => \ForkBB\Core\Router::class,
|
|
'base_url' => '%BASE_URL%',
|
|
'base_url' => '%BASE_URL%',
|
|
],
|
|
],
|
|
'Lang' => \ForkBB\Core\Lang::class,
|
|
'Lang' => \ForkBB\Core\Lang::class,
|
|
'Mail' => [
|
|
'Mail' => [
|
|
'class' => \ForkBB\Core\Mail::class,
|
|
'class' => \ForkBB\Core\Mail::class,
|
|
- 'host' => '%config.o_smtp_host%',
|
|
|
|
- 'user' => '%config.o_smtp_user%',
|
|
|
|
- 'pass' => '%config.o_smtp_pass%',
|
|
|
|
- 'ssl' => '%config.o_smtp_ssl%',
|
|
|
|
- 'eol' => '%EOL%',
|
|
|
|
|
|
+ 'host' => '%config.o_smtp_host%',
|
|
|
|
+ 'user' => '%config.o_smtp_user%',
|
|
|
|
+ 'pass' => '%config.o_smtp_pass%',
|
|
|
|
+ 'ssl' => '%config.o_smtp_ssl%',
|
|
|
|
+ 'eol' => '%EOL%',
|
|
],
|
|
],
|
|
'Func' => \ForkBB\Core\Func::class,
|
|
'Func' => \ForkBB\Core\Func::class,
|
|
|
|
|
|
- 'CacheLoader' => [
|
|
|
|
- 'class' => \ForkBB\Models\Actions\CacheLoader::class,
|
|
|
|
- 'Cache' => '@Cache',
|
|
|
|
- ],
|
|
|
|
- 'CacheGenerator' => \ForkBB\Models\Actions\CacheGenerator::class,
|
|
|
|
- 'CacheStopwords' => [
|
|
|
|
- 'class' => \ForkBB\Models\Actions\CacheStopwords::class,
|
|
|
|
- 'Cache' => '@Cache',
|
|
|
|
- ],
|
|
|
|
|
|
+ 'config' => '@ConfigModel:init',
|
|
|
|
+ 'bans' => '@ModelBanList:init',
|
|
|
|
+ 'censorship' => '@ModelCensorshipList:init',
|
|
|
|
+ 'stats' => '@ModelStats:init',
|
|
|
|
+ 'admins' => '@ModelAdminList:init',
|
|
|
|
+ 'smilies' => '@ModelSmileyList:init',
|
|
|
|
+ 'dbMap' => '@ModelDBMap:init',
|
|
|
|
+ 'stopwords' => '@ModelStopwords:init',
|
|
|
|
+ 'forums' => '@ForumManager:init',
|
|
|
|
+ 'topics' => \ForkBB\Models\Topic\Manager::class,
|
|
|
|
+ 'posts' => \ForkBB\Models\Post\Manager::class,
|
|
|
|
+ 'user' => '@users:current',
|
|
|
|
+ 'users' => \ForkBB\Models\User\Manager::class,
|
|
|
|
+ 'groups' => '@GroupManager:init',
|
|
|
|
+ 'categories' => '@CategoriesManager:init',
|
|
|
|
|
|
- 'user' => '@LoadCurrentUser:load',
|
|
|
|
- 'config' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'config',
|
|
|
|
- ],
|
|
|
|
- 'bans' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'bans',
|
|
|
|
- ],
|
|
|
|
- 'censoring' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'censoring',
|
|
|
|
- ],
|
|
|
|
- 'users_info' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'users_info',
|
|
|
|
- ],
|
|
|
|
- 'admins' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'admins',
|
|
|
|
- ],
|
|
|
|
- 'smilies' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'smilies',
|
|
|
|
- ],
|
|
|
|
- 'stopwords' => '@CacheStopwords:load',
|
|
|
|
- 'forums' => '@CacheLoader:loadForums',
|
|
|
|
-
|
|
|
|
- 'UserCookie' => [
|
|
|
|
- 'class' => \ForkBB\Models\UserCookie::class,
|
|
|
|
- 'Secury' => '@Secury',
|
|
|
|
- 'options' => '%COOKIE%',
|
|
|
|
- 'min' => '%config.o_timeout_visit%',
|
|
|
|
- 'max' => '%TIME_REMEMBER%',
|
|
|
|
- ],
|
|
|
|
'Csrf' => [
|
|
'Csrf' => [
|
|
- 'class' => \ForkBB\Core\Csrf::class,
|
|
|
|
|
|
+ 'class' => \ForkBB\Core\Csrf::class,
|
|
'Secury' => '@Secury',
|
|
'Secury' => '@Secury',
|
|
- 'key' => '%user.password%%user.ip%%user.id%',
|
|
|
|
|
|
+ 'key' => '%user.password%%user.ip%%user.id%%BASE_URL%',
|
|
],
|
|
],
|
|
'Online' => \ForkBB\Models\Online::class,
|
|
'Online' => \ForkBB\Models\Online::class,
|
|
- 'UserMapper' => \ForkBB\Models\UserMapper::class,
|
|
|
|
-
|
|
|
|
- 'Message' => \ForkBB\Models\Pages\Message::class,
|
|
|
|
- ],
|
|
|
|
- 'multiple' => [
|
|
|
|
- 'PrimaryController' => \ForkBB\Controllers\Primary::class,
|
|
|
|
- 'Primary' => '@PrimaryController:check',
|
|
|
|
-
|
|
|
|
- 'RoutingController' => \ForkBB\Controllers\Routing::class,
|
|
|
|
- 'Routing' => '@RoutingController:routing',
|
|
|
|
-
|
|
|
|
- 'CheckBans' => \ForkBB\Models\Actions\CheckBans::class,
|
|
|
|
- 'LoadCurrentUser' => [
|
|
|
|
- 'class' => \ForkBB\Models\Actions\LoadUserFromCookie::class,
|
|
|
|
- 'mapper' => '@UserMapper',
|
|
|
|
- 'cookie' => '@UserCookie',
|
|
|
|
- 'config' => '@config',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'config update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'config',
|
|
|
|
- 'update' => true,
|
|
|
|
- ],
|
|
|
|
- 'get config' => '@CacheGenerator:config',
|
|
|
|
-
|
|
|
|
- 'bans update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'bans',
|
|
|
|
- 'update' => true,
|
|
|
|
- ],
|
|
|
|
- 'get bans' => '@CacheGenerator:bans',
|
|
|
|
-
|
|
|
|
- 'censoring update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'censoring',
|
|
|
|
- 'update' => true,
|
|
|
|
- ],
|
|
|
|
- 'get censoring' => '@CacheGenerator:censoring',
|
|
|
|
-
|
|
|
|
- 'users_info update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'users_info',
|
|
|
|
- 'update' => true,
|
|
|
|
- ],
|
|
|
|
- 'get users_info' => '@CacheGenerator:usersInfo',
|
|
|
|
-
|
|
|
|
- 'admins update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'admins',
|
|
|
|
- 'update' => true,
|
|
|
|
- ],
|
|
|
|
- 'get admins' => '@CacheGenerator:admins',
|
|
|
|
-
|
|
|
|
- 'smilies update' => [
|
|
|
|
- 'factory method' => '@CacheLoader:load',
|
|
|
|
- 'key' => 'smilies',
|
|
|
|
- 'update' => true,
|
|
|
|
|
|
+ 'Cookie' => [
|
|
|
|
+ 'class' => \ForkBB\Models\Cookie::class,
|
|
|
|
+ 'options' => '%COOKIE%',
|
|
],
|
|
],
|
|
- 'get smilies' => '@CacheGenerator:smilies',
|
|
|
|
|
|
|
|
- 'get forums' => [
|
|
|
|
- 'factory method' => '@CacheGenerator:forums',
|
|
|
|
- 'user' => '@user',
|
|
|
|
|
|
+ 'Parser' => [
|
|
|
|
+ 'class' => \ForkBB\Core\Parser::class,
|
|
|
|
+ 'flag' => ENT_HTML5,
|
|
],
|
|
],
|
|
|
|
|
|
- 'Index' => \ForkBB\Models\Pages\Index::class,
|
|
|
|
- 'Rules' => \ForkBB\Models\Pages\Rules::class,
|
|
|
|
- 'Auth' => \ForkBB\Models\Pages\Auth::class,
|
|
|
|
- 'Register' => \ForkBB\Models\Pages\Register::class,
|
|
|
|
- 'Redirect' => \ForkBB\Models\Pages\Redirect::class,
|
|
|
|
- 'Maintenance' => \ForkBB\Models\Pages\Maintenance::class,
|
|
|
|
- 'Ban' => \ForkBB\Models\Pages\Ban::class,
|
|
|
|
- 'Debug' => \ForkBB\Models\Pages\Debug::class,
|
|
|
|
- 'AdminIndex' => \ForkBB\Models\Pages\Admin\Index::class,
|
|
|
|
|
|
+ ],
|
|
|
|
+ 'multiple' => [
|
|
|
|
+ 'CtrlPrimary' => \ForkBB\Controllers\Primary::class,
|
|
|
|
+ 'Primary' => '@CtrlPrimary:check',
|
|
|
|
+
|
|
|
|
+ 'CtrlRouting' => \ForkBB\Controllers\Routing::class,
|
|
|
|
+ 'Routing' => '@CtrlRouting:routing',
|
|
|
|
+
|
|
|
|
+ 'Message' => \ForkBB\Models\Pages\Message::class,
|
|
|
|
+ 'Index' => \ForkBB\Models\Pages\Index::class,
|
|
|
|
+ 'Forum' => \ForkBB\Models\Pages\Forum::class,
|
|
|
|
+ 'Topic' => \ForkBB\Models\Pages\Topic::class,
|
|
|
|
+ 'Post' => \ForkBB\Models\Pages\Post::class,
|
|
|
|
+ 'Edit' => \ForkBB\Models\Pages\Edit::class,
|
|
|
|
+ 'Delete' => \ForkBB\Models\Pages\Delete::class,
|
|
|
|
+ 'Rules' => \ForkBB\Models\Pages\Rules::class,
|
|
|
|
+ 'Auth' => \ForkBB\Models\Pages\Auth::class,
|
|
|
|
+ 'Register' => \ForkBB\Models\Pages\Register::class,
|
|
|
|
+ 'Redirect' => \ForkBB\Models\Pages\Redirect::class,
|
|
|
|
+ 'Maintenance' => \ForkBB\Models\Pages\Maintenance::class,
|
|
|
|
+ 'Ban' => \ForkBB\Models\Pages\Ban::class,
|
|
|
|
+ 'Debug' => \ForkBB\Models\Pages\Debug::class,
|
|
|
|
+ 'AdminIndex' => \ForkBB\Models\Pages\Admin\Index::class,
|
|
'AdminStatistics' => \ForkBB\Models\Pages\Admin\Statistics::class,
|
|
'AdminStatistics' => \ForkBB\Models\Pages\Admin\Statistics::class,
|
|
|
|
+ 'AdminOptions' => \ForkBB\Models\Pages\Admin\Options::class,
|
|
|
|
+ 'AdminPermissions' => \ForkBB\Models\Pages\Admin\Permissions::class,
|
|
|
|
+ 'AdminCategories' => \ForkBB\Models\Pages\Admin\Categories::class,
|
|
|
|
+ 'AdminForums' => \ForkBB\Models\Pages\Admin\Forums::class,
|
|
|
|
+ 'AdminGroups' => \ForkBB\Models\Pages\Admin\Groups::class,
|
|
|
|
+
|
|
|
|
+ 'ConfigModel' => \ForkBB\Models\Config\Model::class,
|
|
|
|
+ 'ConfigModelLoad' => \ForkBB\Models\Config\Load::class,
|
|
|
|
+ 'ConfigModelSave' => \ForkBB\Models\Config\Save::class,
|
|
|
|
+
|
|
|
|
+ 'OnlineInfo' => \ForkBB\Models\Online\Info::class,
|
|
|
|
+
|
|
|
|
+ 'ModelBanList' => \ForkBB\Models\BanList::class,
|
|
|
|
+ 'BanListLoad' => \ForkBB\Models\BanList\Load::class,
|
|
|
|
+ 'BanListCheck' => \ForkBB\Models\BanList\Check::class,
|
|
|
|
+ 'BanListDelete' => \ForkBB\Models\BanList\Delete::class,
|
|
|
|
+ 'BanListIsBanned' => \ForkBB\Models\BanList\IsBanned::class,
|
|
|
|
+
|
|
|
|
+ 'ModelCensorshipList' => \ForkBB\Models\CensorshipList::class,
|
|
|
|
+ 'CensorshipListLoad' => \ForkBB\Models\CensorshipList\Load::class,
|
|
|
|
+
|
|
|
|
+ 'ModelStats' => \ForkBB\Models\Stats::class,
|
|
|
|
+ 'StatsLoad' => \ForkBB\Models\Stats\Load::class,
|
|
|
|
+
|
|
|
|
+ 'ModelAdminList' => \ForkBB\Models\AdminList::class,
|
|
|
|
+ 'AdminListLoad' => \ForkBB\Models\AdminList\Load::class,
|
|
|
|
+
|
|
|
|
+ 'ModelSmileyList' => \ForkBB\Models\SmileyList::class,
|
|
|
|
+ 'SmileyListLoad' => \ForkBB\Models\SmileyList\Load::class,
|
|
|
|
+
|
|
|
|
+ 'ModelDBMap' => \ForkBB\Models\DBMap::class,
|
|
|
|
+
|
|
|
|
+ 'ModelStopwords' => \ForkBB\Models\Stopwords::class,
|
|
|
|
+
|
|
|
|
+ 'UserModel' => \ForkBB\Models\User\Model::class,
|
|
|
|
+ 'UserManagerLoad' => \ForkBB\Models\User\Load::class,
|
|
|
|
+ 'UserManagerSave' => \ForkBB\Models\User\Save::class,
|
|
|
|
+ 'UserManagerCurrent' => \ForkBB\Models\User\Current::class,
|
|
|
|
+ 'UserManagerUpdateLastVisit' => \ForkBB\Models\User\UpdateLastVisit::class,
|
|
|
|
+ 'UserManagerUpdateCountPosts' => \ForkBB\Models\User\UpdateCountPosts::class,
|
|
|
|
+ 'UserManagerIsUniqueName' => \ForkBB\Models\User\IsUniqueName::class,
|
|
|
|
+ 'UserManagerUsersNumber' => \ForkBB\Models\User\UsersNumber::class,
|
|
|
|
+ 'UserManagerPromote' => \ForkBB\Models\User\Promote::class,
|
|
|
|
+
|
|
|
|
+ 'ForumModel' => \ForkBB\Models\Forum\Model::class,
|
|
|
|
+ 'ForumModelCalcStat' => \ForkBB\Models\Forum\CalcStat::class,
|
|
|
|
+ 'ForumManager' => \ForkBB\Models\Forum\Manager::class,
|
|
|
|
+ 'ForumManagerRefresh' => \ForkBB\Models\Forum\Refresh::class,
|
|
|
|
+ 'ForumManagerLoadTree' => \ForkBB\Models\Forum\LoadTree::class,
|
|
|
|
+ 'ForumManagerSave' => \ForkBB\Models\Forum\Save::class,
|
|
|
|
+ 'ForumManagerDelete' => \ForkBB\Models\Forum\Delete::class,
|
|
|
|
+
|
|
|
|
+ 'TopicModel' => \ForkBB\Models\Topic\Model::class,
|
|
|
|
+ 'TopicModelCalcStat' => \ForkBB\Models\Topic\CalcStat::class,
|
|
|
|
+ 'TopicManagerLoad' => \ForkBB\Models\Topic\Load::class,
|
|
|
|
+ 'TopicManagerSave' => \ForkBB\Models\Topic\Save::class,
|
|
|
|
+ 'TopicManagerDelete' => \ForkBB\Models\Topic\Delete::class,
|
|
|
|
+
|
|
|
|
+ 'PostModel' => \ForkBB\Models\Post\Model::class,
|
|
|
|
+ 'PostManagerLoad' => \ForkBB\Models\Post\Load::class,
|
|
|
|
+ 'PostManagerSave' => \ForkBB\Models\Post\Save::class,
|
|
|
|
+ 'PostManagerDelete' => \ForkBB\Models\Post\Delete::class,
|
|
|
|
+ 'PostManagerPreviousPost' => \ForkBB\Models\Post\PreviousPost::class,
|
|
|
|
+
|
|
|
|
+ 'GroupModel' => \ForkBB\Models\Group\Model::class,
|
|
|
|
+ 'GroupManager' => \ForkBB\Models\Group\Manager::class,
|
|
|
|
+ 'GroupManagerSave' => \ForkBB\Models\Group\Save::class,
|
|
|
|
+ 'GroupManagerDelete' => \ForkBB\Models\Group\Delete::class,
|
|
|
|
+ 'GroupManagerPerm' => \ForkBB\Models\Group\Perm::class,
|
|
|
|
+
|
|
|
|
+ 'CategoriesManager' => \ForkBB\Models\Categories\Manager::class,
|
|
],
|
|
],
|
|
];
|
|
];
|