Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . '/boot.php';
- class Moebooru extends Rails\Application
- {
- private $moe_config;
- public function moe_config()
- {
- return $this->moe_config;
- }
- protected function init()
- {
- require __DIR__ . '/default_config.php';
- require __DIR__ . '/config.php';
- $this->moe_config = new Moebooru_Config();
- }
- protected function init_config($config)
- {
- $config->encoding = 'utf-8';
- $config->load_files = [
- 'app_functions.php',
- 'Moebooru/Resizer.php',
- 'dtext.php'
- ];
- $config->safe_ips = [
- '127.0.0.1'
- ];
- $config->exception_handler->controller_name = 'ExceptionController';
- $config->active_record->table_schema_from_files = true;
- $config->assets->enabled = true;
- $config->action_view->layout = 'default';
- $config->i18n->file_type = 'php';
- $config->date->timezone = 'Europe/Berlin';
- }
- {
- return [
- 'app' => [
- 'encoding' => 'utf-8',
- 'load_files' => [
- 'app_functions.php',
- 'Moebooru/Resizer.php',
- 'dtext.php'
- ],
- 'rails_panel_path' => 'sysadmin',
- 'safe_ips' => [
- '127.0.0.1'
- ],
- 'environment' => 'production'
- ],
- 'active_record' => [
- 'connection'=> 'mysql:host=127.0.0.1;dbname=myimouto;charset=utf8;',
- 'username' => '**********',
- 'password' => '**********',
- 'table_schema_from_files' => true,
- 'load_models' => [
- 'Post',
- 'User',
- 'Pool',
- 'PoolPost',
- 'ForumPost',
- 'Comment'
- ]
- ],
- 'action_view' => [
- 'layout' => 'default'
- ],
- 'date' => [
- 'timezone' => 'Europe/Berlin'
- ],
- 'assets' => [
- 'enabled' => true
- ]
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement