Welcome Guest, Not a member yet? Register   Sign In
development vs production environment setting
#4

[eluser]bartgrrr[/eluser]
stripped down version (without any comment):

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');


$config['base_url'] = '';


$config['index_page'] = '';


$config['uri_protocol'] = 'AUTO';



$config['url_suffix'] = '';


$config['language'] = 'dutch';


$config['charset'] = 'UTF-8';


$config['enable_hooks'] = FALSE;



$config['subclass_prefix'] = 'MY_';



$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';




$config['allow_get_array']  = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger']  = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use


$config['log_threshold'] = 2;


$config['log_path'] = '';


$config['log_date_format'] = 'Y-m-d H:i:s';


$config['cache_path'] = '';


$config['encryption_key'] = '';


$config['sess_cookie_name']  = 'ci_session';
$config['sess_expiration']  = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name']  = 'ci_sessions';
$config['sess_match_ip']  = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;


$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path']  = "/";
$config['cookie_secure'] = FALSE;


$config['global_xss_filtering'] = FALSE;


$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;


$config['compress_output'] = FALSE;


$config['time_reference'] = 'local';



$config['rewrite_short_tags'] = TRUE;



$config['proxy_ips'] = '';


function __autoload($class)
{
if(strpos($class, 'CI_') !== 0)
{
  return;
}

foreach (['core/', 'libraries/', 'models/'] as $dir)
{
  if (file_exists(APPPATH . $dir . $class . EXT))
  {
   include_once(APPPATH . $dir . $class . EXT);
   return;
  }
}
}


Messages In This Thread
development vs production environment setting - by El Forum - 05-07-2013, 10:30 PM
development vs production environment setting - by El Forum - 05-08-2013, 04:45 AM
development vs production environment setting - by El Forum - 05-08-2013, 05:15 AM
development vs production environment setting - by El Forum - 05-08-2013, 05:19 AM
development vs production environment setting - by El Forum - 05-08-2013, 09:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB