mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-21 15:32:21 +03:00
Load config.php at index.php
This commit is contained in:
parent
f90a3493f9
commit
cf6d82d232
3 changed files with 19 additions and 7 deletions
|
@ -1,18 +1,18 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
// Include E!A configuration file.
|
||||
require_once __DIR__ . '/../../config.php';
|
||||
//require_once __DIR__ . '/../../config.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Easy!Appointments Configuration
|
||||
| Easy!Appointments - Internal Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Declare some of the global config values of Easy!Appointments.
|
||||
| the global "config" variable.
|
||||
|
|
||||
*/
|
||||
$config['easyappointmenst'] = array(
|
||||
$config['easyappointments'] = array(
|
||||
'version' => '1.1.0', // This must be changed manually.
|
||||
'title' => 'Develop' // Leave empty for no title or add BETA, TEST etc ...
|
||||
);
|
||||
|
@ -93,7 +93,7 @@ $config['url_suffix'] = '';
|
|||
*/
|
||||
$config['language'] = 'english'; // default language
|
||||
$config['available_languages'] = array('english', 'german', 'greek', 'hungarian', 'portuguese',
|
||||
'chinese', 'dutch', 'french', 'japanese', 'polish', 'spanish');
|
||||
'chinese', 'dutch', 'french', 'japanese', 'polish', 'spanish', 'italian', 'danish');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
$active_group = 'default';
|
||||
$active_record = TRUE;
|
||||
|
||||
require_once __DIR__ . '/../../config.php';
|
||||
|
||||
$db['default']['hostname'] = Config::DB_HOST;
|
||||
$db['default']['username'] = Config::DB_USERNAME;
|
||||
$db['default']['password'] = Config::DB_PASSWORD;
|
||||
|
|
|
@ -1,5 +1,19 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
* EASY!APPOINTMENST CONFIGURATION
|
||||
*---------------------------------------------------------------
|
||||
*
|
||||
* Include Easy!Appointments configuration file so that it is available
|
||||
* globally in the application. You can access configuration information
|
||||
* through the static Config class.
|
||||
*
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/config.php';
|
||||
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
* APPLICATION ENVIRONMENT
|
||||
|
@ -18,7 +32,7 @@
|
|||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*
|
||||
*/
|
||||
define('ENVIRONMENT', 'development');
|
||||
define('ENVIRONMENT', (Config::DEBUG_MODE) ? 'development' : 'production');
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
* ERROR REPORTING
|
||||
|
|
Loading…
Reference in a new issue