Commits

Evaldo Junior  committed 06462ac

Configurações da aplicação.

  • Participants
  • Parent commits 636f777

Comments (0)

Files changed (4)

File application/config/autoload.php

 |	$autoload['libraries'] = array('database', 'session', 'xmlrpc');
 */
 
-$autoload['libraries'] = array();
+$autoload['libraries'] = array('session', 'database');
 
 
 /*
 |	$autoload['helper'] = array('url', 'file');
 */
 
-$autoload['helper'] = array();
+$autoload['helper'] = array('url');
 
 
 /*
 
 
 /* End of file autoload.php */
-/* Location: ./application/config/autoload.php */
+/* Location: ./application/config/autoload.php */

File application/config/config.php

 | 'ORIG_PATH_INFO'	Uses the ORIG_PATH_INFO
 |
 */
-$config['uri_protocol']	= 'AUTO';
+$config['uri_protocol']	= 'REQUEST_URI';
 
 /*
 |--------------------------------------------------------------------------
 | your log files will fill up very fast.
 |
 */
-$config['log_threshold'] = 0;
+$config['log_threshold'] = 4;
 
 /*
 |--------------------------------------------------------------------------
 | MUST set an encryption key.  See the user guide for info.
 |
 */
-$config['encryption_key'] = '';
+$config['encryption_key'] = '9867tfg5rt65f546d%$43sd3sretStydrfoklirdfkolieroer';
 
 /*
 |--------------------------------------------------------------------------
 | 'sess_time_to_update'		= how many seconds between CI refreshing Session Information
 |
 */
-$config['sess_cookie_name']		= 'ci_session';
-$config['sess_expiration']		= 7200;
-$config['sess_expire_on_close']	= FALSE;
-$config['sess_encrypt_cookie']	= FALSE;
+$config['sess_cookie_name']		= 'blogciS';
+$config['sess_expiration']		= 60 * 60 * 2;
+$config['sess_expire_on_close']	= TRUE;
+$config['sess_encrypt_cookie']	= TRUE;
 $config['sess_use_database']	= FALSE;
 $config['sess_table_name']		= 'ci_sessions';
-$config['sess_match_ip']		= FALSE;
+$config['sess_match_ip']		= TRUE;
 $config['sess_match_useragent']	= TRUE;
-$config['sess_time_to_update']	= 300;
+$config['sess_time_to_update']	= 60 * 60 * 2;
 
 /*
 |--------------------------------------------------------------------------
 | 'csrf_cookie_name' = The cookie name
 | 'csrf_expire' = The number in seconds the token should expire.
 */
-$config['csrf_protection'] = FALSE;
-$config['csrf_token_name'] = 'csrf_test_name';
-$config['csrf_cookie_name'] = 'csrf_cookie_name';
-$config['csrf_expire'] = 7200;
+$config['csrf_protection'] = TRUE;
+$config['csrf_token_name'] = 'csrf_bloci';
+$config['csrf_cookie_name'] = 'csrfBCI';
+$config['csrf_expire'] = 60 * 60 * 2;
 
 /*
 |--------------------------------------------------------------------------

File application/config/constants.php

 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
+define('APP_NAME', 'BlogCI');
+define('APP_VERSION', '0.1 alpha');
+
 /*
 |--------------------------------------------------------------------------
 | File and Directory Modes
 
 
 /* End of file constants.php */
-/* Location: ./application/config/constants.php */
+/* Location: ./application/config/constants.php */

File application/config/database.php

 | the active record class
 */
 
-$active_group = 'default';
+$active_group = 'dev';
 $active_record = TRUE;
 
-$db['default']['hostname'] = 'localhost';
-$db['default']['username'] = '';
-$db['default']['password'] = '';
-$db['default']['database'] = '';
-$db['default']['dbdriver'] = 'mysql';
-$db['default']['dbprefix'] = '';
-$db['default']['pconnect'] = TRUE;
-$db['default']['db_debug'] = TRUE;
-$db['default']['cache_on'] = FALSE;
-$db['default']['cachedir'] = '';
-$db['default']['char_set'] = 'utf8';
-$db['default']['dbcollat'] = 'utf8_general_ci';
-$db['default']['swap_pre'] = '';
-$db['default']['autoinit'] = TRUE;
-$db['default']['stricton'] = FALSE;
+/**
+ * Conexão para desenvolvimento
+ */
+$db['dev']['hostname'] = 'localhost';
+$db['dev']['username'] = 'blogcinov12';
+$db['dev']['password'] = 'blogcinov12';
+$db['dev']['database'] = 'blogcinov12';
+$db['dev']['dbdriver'] = 'mysqli';
+$db['dev']['dbprefix'] = '';
+$db['dev']['pconnect'] = TRUE;
+$db['dev']['db_debug'] = TRUE;
+$db['dev']['cache_on'] = FALSE;
+$db['dev']['cachedir'] = '';
+$db['dev']['char_set'] = 'utf8';
+$db['dev']['dbcollat'] = 'utf8_general_ci';
+$db['dev']['swap_pre'] = '';
+$db['dev']['autoinit'] = TRUE;
+$db['dev']['stricton'] = FALSE;
 
+/**
+ * Conexão para produção
+ */
+$db['prod']['hostname'] = 'sql.servidor.com';
+$db['prod']['username'] = 'blogci';
+$db['prod']['password'] = '*)9y87t67yu';
+$db['prod']['database'] = 'blogci';
+$db['prod']['dbdriver'] = 'postgre';
+$db['prod']['dbprefix'] = '';
+$db['prod']['pconnect'] = TRUE;
+$db['prod']['db_debug'] = FALSE;
+$db['prod']['cache_on'] = FALSE;
+$db['prod']['cachedir'] = '';
+$db['prod']['char_set'] = 'utf8';
+$db['prod']['dbcollat'] = 'utf8_general_ci';
+$db['prod']['swap_pre'] = '';
+$db['prod']['autoinit'] = TRUE;
+$db['prod']['stricton'] = FALSE;
 
 /* End of file database.php */
-/* Location: ./application/config/database.php */
+/* Location: ./application/config/database.php */