Created
February 26, 2015 19:55
-
-
Save 1stevengrant/c0b9d5ce2495b37eb3c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config['cookie_httponly'] = "y"; | |
if ( ! defined('EXT')){ | |
exit('Invalid file request'); | |
} | |
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$base_url = $protocol . $_SERVER['HTTP_HOST']; | |
$base_path = $_SERVER['DOCUMENT_ROOT']; | |
$system_folder = "cms"; | |
$uploads_folder = "images"; | |
$uploads_path = $base_path . "/" . $uploads_folder; | |
$uploads_url = $base_url . "/" . $uploads_folder; | |
switch ( $_SERVER['SERVER_ADDR'] ) { | |
// Localhost | |
case '127.0.0.1' : | |
require 'config.dev.php'; | |
break; | |
// Development - this is the server the client has access to | |
case '77.73.2.142' : | |
require 'config.stage.php'; | |
break; | |
// New Arcustech server | |
case '192.168.0.10' : | |
require 'config.arcus.php'; | |
break; | |
// Production - this is the production server | |
case '96.30.28.68' : | |
require 'config.prod.php'; | |
break; | |
} | |
/* Universal database connection settings | |
-------------------------------------------------------------------*/ | |
$active_group = 'expressionengine'; | |
$active_record = TRUE; | |
$db['expressionengine']['dbdriver'] = "mysql"; | |
$db['expressionengine']['dbprefix'] = "exp_"; | |
$db['expressionengine']['pconnect'] = FALSE; | |
$db['expressionengine']['swap_pre'] = "exp_"; | |
$db['expressionengine']['db_debug'] = FALSE; | |
$db['expressionengine']['cache_on'] = FALSE; | |
$db['expressionengine']['autoinit'] = FALSE; | |
$db['expressionengine']['char_set'] = "utf8"; | |
$db['expressionengine']['dbcollat'] = "utf8_general_ci"; | |
$db['expressionengine']['cachedir'] = $base_path . $system_folder . "/expressionengine/cache/db_cache/"; | |
// declaring some global variables that can be used within our templates | |
$new_global_vars = array( | |
// Tag parameters - short hand | |
'gv_param_disable_default' => 'disable="categories|pagination|member_data"', | |
'gv_param_disable_all' => 'disable="categories|pagination|member_data|custom_fields"', | |
// Date & time - short hand values | |
'gv_date_time' => 'format="%g:%i %a"', // 12:59 am/pm | |
'gv_date_short' => 'format="%F %d, %Y"', // January 01 1999 | |
'gv_date_full' => 'format="%F %d %Y, %g:%i %a"', // January 01 1999 12:59 am/pm | |
); | |
/* Turn $_GET and $_POST into global variables */ | |
foreach ($_GET as $key => $value) { | |
if(!is_array($value)) { | |
$new_global_vars['get:' . $key] = $value; | |
} | |
} | |
foreach ($_POST as $key => $value) { | |
if(!is_array($value)) { | |
$new_global_vars['post:' . $key] = $value; | |
} | |
} | |
// Make this global so we can merge the new config variables into it | |
global $assign_to_config; | |
if(!isset($assign_to_config['global_vars'])) { | |
$assign_to_config['global_vars'] = array(); | |
} | |
$assign_to_config['global_vars'] = array_merge($assign_to_config['global_vars'], $env_global_vars, $new_global_vars); | |
if(!defined('ENV')) { | |
switch ($_SERVER['SERVER_ADDR']) { | |
case '96.30.28.68': | |
define('ENV', 'prod'); | |
$config['environment_color'] = 'green'; | |
break; | |
case '77.73.2.142': | |
define('ENV', 'staging'); | |
$config['environment_color'] = 'yellow'; | |
break; | |
case '192.168.0.10': | |
define('ENV', 'arcus'); | |
$config['environment_color'] = 'blue'; | |
break; | |
default: | |
define('ENV', 'local'); | |
$config['environment_color'] = 'orange'; | |
break; | |
} | |
} | |
$config['app_version'] = "281"; | |
$config['install_lock'] = "1"; | |
$config['license_number'] = "6579-4594-6143-3423"; | |
$config['doc_url'] = "http://www.ghijk.co.uk/"; | |
$config['cp_theme'] = "ghijk"; | |
$config['is_system_on'] = "y"; | |
$config['cookie_prefix'] = ""; | |
$config['allow_extensions'] = "y"; | |
$config['multiple_sites_enabled'] = "n"; | |
$config['trace_url'] = $base_url; | |
$config['trace_path'] = $base_path; | |
$config['trace_file_location'] = $base_path . '/db/'; | |
$config['index_page'] = ""; | |
$config['base_url'] = $base_url . "/"; | |
$config['site_url'] = $config['base_url']; | |
$config['site_label'] = "The Gospel Coalition"; | |
$config['cp_url'] = $config['base_url'] . $system_folder . "/index.php"; | |
$config['cp_theme'] = 'ghijk'; | |
$config['theme_folder_path'] = $base_path . "/themes/"; | |
$config['theme_folder_url'] = $base_url . "/themes/"; | |
// Template stuff | |
$config['snippet_file_basepath'] = $base_path . "/snippets/"; | |
$config['snippets_sync_prefix'] = "sn_"; | |
$config['save_tmpl_files'] = "y"; | |
$config['tmpl_file_basepath'] = $base_path . "/templates/"; | |
$config['hidden_template_indicator'] = "_"; | |
$config['low_variables_license_key'] = 'e0977be9-2304-4d53-863e-8dfa46f6b14e'; | |
$config['low_variables_save_as_files'] = 'y'; | |
$config['low_variables_one_way_sync'] = 'n'; | |
$config['low_variables_file_path'] = $base_path . '/vars/'; | |
// Transcribe | |
$config['transcribe_no_abbr'] = "en"; | |
// Minimee | |
$config['minimee']['cache_path'] = '/cache'; | |
$config['minimee']['combine_css'] = 'yes'; | |
$config['minimee']['combine_js'] = 'yes'; | |
$config['minimee']['minify_css'] = 'yes'; | |
$config['minimee']['minify_html'] = 'yes'; | |
$config['minimee']['minify_js'] = 'yes'; | |
$config['minimee']['combine_css'] = 'yes'; | |
$config['minimee']['combine_css'] = 'yes'; | |
$config['minimee']['combine_css'] = 'yes'; | |
// CE Cache | |
$config['ce_cache_drivers'] = 'apc|file'; | |
$config['ce_cache_seconds'] = 0; | |
// Custom Upload Directory Paths | |
$config['upload_preferences'] = array( | |
1 => array( | |
'name' => 'Page Images', | |
'server_path' => $uploads_path . '/uploads/pages/', | |
'url' => $uploads_url . '/uploads/pages/' | |
), | |
2 => array( | |
'name' => 'Article Images', | |
'server_path' => $uploads_path . '/uploads/articles/', | |
'url' => $uploads_url . '/uploads/articles/' | |
), | |
3 => array( | |
'name' => 'Files', | |
'server_path' => $base_path . '/files/uploads/', | |
'url' => $base_url . '/files/uploads/' | |
), | |
4 => array( | |
'name' => 'Book Reviews Images', | |
'server_path' => $uploads_path . '/uploads/book_reviews/', | |
'url' => $uploads_url . '/uploads/book_reviews/' | |
), | |
5 => array( | |
'name' => 'Profile Images', | |
'server_path' => $uploads_path . '/uploads/profiles/', | |
'url' => $uploads_url . '/uploads/profiles/' | |
), | |
6 => array( | |
'name' => 'Project Images', | |
'server_path' => $uploads_path . '/uploads/projects/', | |
'url' => $uploads_url . '/uploads/projects/' | |
), | |
7 => array( | |
'name' => 'Event Images', | |
'server_path' => $uploads_path . '/uploads/events/', | |
'url' => $uploads_url . '/uploads/events/' | |
), | |
8 => array( | |
'name' => 'Publications Images', | |
'server_path' => $uploads_path . '/uploads/publications/', | |
'url' => $uploads_url . '/uploads/publications/' | |
), | |
9 => array( | |
'name' => 'International Images', | |
'server_path' => $uploads_path . '/uploads/international/', | |
'url' => $uploads_url . '/uploads/international/' | |
), | |
10 => array( | |
'name' => 'Ad Blocks', | |
'server_path' => $uploads_path . '/uploads/ads/', | |
'url' => $uploads_url . '/uploads/ads/' | |
) | |
); | |
$config['profile_trigger'] = rand(0,time()); // randomize the member profile trigger word because we'll never need it | |
$config['new_version_check'] = 'n'; | |
$config['site_404'] = "home/404"; | |
$config['strict_urls'] = "y"; | |
$config['word_separator'] = "dash"; | |
$config['emoticon_path'] = $uploads_url . "/smileys/"; | |
$config['captcha_path'] = $uploads_path . "/captchas/"; | |
$config['captcha_url'] = $uploads_url . "/captchas/"; | |
$config['avatar_path'] = $uploads_path . "/avatars/"; | |
$config['avatar_url'] = $uploads_url . "/avatars/"; | |
$config['photo_path'] = $uploads_path . "/member_photos/"; | |
$config['photo_url'] = $uploads_url . "/member_photos/"; | |
$config['sig_img_path'] = $uploads_path . "/signature_attachments/"; | |
$config['sig_img_url'] = $uploads_url . "/signature_attachments/"; | |
$config['prv_msg_upload_path'] = $uploads_path . "/pm_attachments/"; | |
$config['enable_sql_caching'] = "n"; # Cache Dynamic Channel Queries? | |
$config['email_debug'] = "n"; # y/n | |
$config['enable_db_caching'] = "n"; | |
$config['url_suffix'] = ""; | |
$config['language'] = "english"; | |
$config['charset'] = "UTF-8"; | |
$config['enable_hooks'] = FALSE; | |
$config['subclass_prefix'] = "EE_"; | |
$config['permitted_uri_chars'] = "a-z 0-9~%.:_\-"; | |
$config['enable_query_strings'] = FALSE; | |
$config['directory_trigger'] = "D"; | |
$config['controller_trigger'] = "C"; | |
$config['function_trigger'] = "M"; | |
$config['log_threshold'] = 0; | |
$config['log_path'] = ""; | |
$config['log_date_format'] = "Y-m-d H:i:s"; | |
$config['cache_path'] = ""; | |
$config['encryption_key'] = ""; | |
$config['global_xss_filtering'] = FALSE; | |
$config['csrf_protection'] = FALSE; | |
$config['compress_output'] = FALSE; | |
$config['time_reference'] = "local"; | |
$config['rewrite_short_tags'] = TRUE; | |
$config['proxy_ips'] = ""; | |
$config['uri_protocol'] = "AUTO"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment