pull/9/head
Chewbaka69 6 years ago
parent 56c47c3352
commit e6ef080de4

@ -29,12 +29,12 @@ class Controller_Install extends Controller
$config_db = Config::load('db', true);
$config_db = $config_db['default'];
$view->set('db_host', $config_db['connection']['hostname']);
$view->set('db_port', $config_db['connection']['port']);
$view->set('db_database', $config_db['connection']['database']);
$view->set('db_prefix', $config_db['table_prefix']);
$view->set('db_username', $config_db['connection']['username']);
$view->set('db_password', $config_db['connection']['password']);
$view->set('db_host', isset($config_db['connection']['hostname']) ? $config_db['connection']['hostname'] : null);
$view->set('db_port', isset($config_db['connection']['port']) ? $config_db['connection']['port'] : null);
$view->set('db_database', isset($config_db['connection']['database']) ? $config_db['connection']['database'] : null);
$view->set('db_prefix', isset($config_db['table_prefix']) ? $config_db['table_prefix'] : null);
$view->set('db_username', isset($config_db['connection']['username']) ? $config_db['connection']['username'] : null);
$view->set('db_password', isset($config_db['connection']['password']) ? $config_db['connection']['password'] : null);
try {
$config_plex = Model_Server::find()[0];

@ -1,18 +1,82 @@
<?php
/**
* Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
*
* @package Fuel
* @version 1.8.1
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2018 Fuel Development Team
* @link http://fuelphp.com
*/
/**
* NOTICE:
*
* If you need to make modifications to the default configuration, copy
* this file to your app/config folder, and make them in there.
*
* This will allow you to upgrade fuel without losing your custom config.
*/
return array(
'default' =>
array(
'type' => 'pdo',
'connection' =>
array(
'hostname' => NULL,
'port' => '534654',
'database' => NULL,
'username' => '514',
'password' => '1',
/*
* If you don't specify a DB configuration name when you create a connection
* the configuration to be used will be determined by the 'active' value
*/
'active' => 'default',
/**
* Base PDO config
*/
'default' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => '',
'hostname' => '',
'username' => null,
'password' => null,
'database' => '',
'persistent' => false,
'compress' => false,
),
'identifier' => '`',
'table_prefix' => '',
'charset' => 'utf8',
'collation' => false,
'enable_cache' => true,
'profiling' => false,
'readonly' => false,
),
'table_prefix' => 'plex_',
'charset' => 'utf8',
'enable_cache' => true,
),
);
/**
* Base MySQLi config
*
'default' => array(
'type' => 'mysqli',
'connection' => array(
'dsn' => '',
'hostname' => '',
'username' => null,
'password' => null,
'database' => '',
'persistent' => false,
'compress' => false,
),
'identifier' => '`',
'table_prefix' => '',
'charset' => 'utf8',
'collation' => false,
'enable_cache' => false,
'profiling' => false,
'readonly' => false,
),
*/
/**
* Base Redis config
*/
'redis' => array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => 6379,
'timeout' => null,
'database' => 0,
),
),
);
Loading…
Cancel
Save