Created
March 13, 2013 18:53
-
-
Save notacouch/5154994 to your computer and use it in GitHub Desktop.
Compare/contrast ExpressionEngine config bootstraps, gotta catchem all eh?
This file contains hidden or 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 A: madebymayo https://github.com/madebymayo/ExpressionEngine-Environment-Config | |
* Config B: webunder https://bitbucket.org/webunder/ee2_config_template | |
* Config C: FocusLabLLC https://github.com/focuslabllc/ee-master-config | |
* Config D: NSM Config Bootstrap http://ee-garage.com/nsm-config-bootstrap | |
* Config E: https://gist.github.com/adrianmacneil/3862276 | |
*/ | |
define('NSM_SERVER_NAME', 'nsm_server_name'); | |
define('NSM_BASEPATH', '/abc/'); | |
define('NSM_SYSTEM_FOLDER', 'ee-admin'); | |
define('NSM_ENV', 'local'); | |
define('NSM_SITE_URL', "https://".NSM_SERVER_NAME); | |
define('ENV', 'dev'); | |
define('ENV_FULL', 'Development'); | |
define('ENV_DEBUG', TRUE); | |
define('APPPATH', '/apppath/'); | |
define('FCPATH', '/fcpath/'); | |
// adrian bootstrap START | |
/* | |
* Put this file in your ExpressionEngine root folder (next to index.php) | |
*/ | |
/* | |
* OPTIONS (ALL PATHS ARE RELATIVE TO THE CURRENT DIRECTORY) | |
*/ | |
$bootstrap['images_dir'] = 'images'; | |
$bootstrap['themes_dir'] = 'themes'; | |
$bootstrap['templates_dir'] = 'templates'; | |
$bootstrap['third_party_dir'] = 'third_party'; | |
$bootstrap['cp_url'] = 'system/'; | |
$bootstrap['save_templates_as_files'] = TRUE; | |
/* | |
* DON'T EDIT BELOW THIS LINE | |
*/ | |
if ( ! defined('BOOTSTRAP_BASE_URL')) | |
{ | |
if (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off') | |
{ | |
define('BOOTSTRAP_BASE_URL', 'http://'.$_SERVER['HTTP_HOST'].'/'); | |
} | |
else | |
{ | |
define('BOOTSTRAP_BASE_URL', 'https://'.$_SERVER['HTTP_HOST'].'/'); | |
} | |
define('BOOTSTRAP_BASE_PATH', '/realpath/'); | |
/** | |
* Find the actual path from a relative path | |
*/ | |
function bootstrap_build_path($path) | |
{ | |
$realpath = '/otherrealpath/'; | |
if ( FALSE ) // (($realpath = realpath(BOOTSTRAP_BASE_PATH.$path)) === FALSE) | |
{ | |
exit(BOOTSTRAP_BASE_PATH.$path.' does not exist!'); | |
} | |
return $realpath.DIRECTORY_SEPARATOR; | |
} | |
/** | |
* Prefix base url, and remove double slashes | |
*/ | |
function bootstrap_build_url($url) | |
{ | |
return preg_replace("#(^|[^:])//+#", "\\1/", BOOTSTRAP_BASE_URL.$url.'/'); | |
} | |
} | |
$configE['site_url'] = BOOTSTRAP_BASE_URL; | |
$configE['base_url'] = BOOTSTRAP_BASE_URL; | |
$configE['cp_url'] = bootstrap_build_url($bootstrap['cp_url']); | |
$configE['avatar_path'] = bootstrap_build_path($bootstrap['images_dir'].'/avatars/'); | |
$configE['avatar_url'] = bootstrap_build_url($bootstrap['images_dir'].'/avatars/'); | |
$configE['captcha_path'] = bootstrap_build_path($bootstrap['images_dir'].'/captchas/'); | |
$configE['captcha_url'] = bootstrap_build_url($bootstrap['images_dir'].'/captchas/'); | |
$configE['captcha_path'] = bootstrap_build_path($bootstrap['images_dir'].'/captchas/'); | |
$configE['captcha_url'] = bootstrap_build_url($bootstrap['images_dir'].'/captchas/'); | |
$configE['emoticon_path'] = bootstrap_build_path($bootstrap['images_dir'].'/smileys/'); | |
$configE['emoticon_url'] = bootstrap_build_url($bootstrap['images_dir'].'/smileys/'); | |
$configE['photo_path'] = bootstrap_build_path($bootstrap['images_dir'].'/member_photos/'); | |
$configE['photo_url'] = bootstrap_build_url($bootstrap['images_dir'].'/member_photos/'); | |
$configE['prv_msg_upload_path'] = bootstrap_build_path($bootstrap['images_dir'].'/pm_attachments/'); | |
$configE['prv_msg_upload_url'] = bootstrap_build_url($bootstrap['images_dir'].'/pm_attachments/'); | |
$configE['sig_img_path'] = bootstrap_build_path($bootstrap['images_dir'].'/signature_attachments/'); | |
$configE['sig_img_url'] = bootstrap_build_url($bootstrap['images_dir'].'/signature_attachments/'); | |
$configE['theme_folder_path'] = bootstrap_build_path($bootstrap['themes_dir']); | |
$configE['theme_folder_url'] = bootstrap_build_url($bootstrap['themes_dir']); | |
$configE['third_party_path'] = bootstrap_build_path($bootstrap['third_party_dir']); | |
$configE['tmpl_file_basepath'] = bootstrap_build_path($bootstrap['templates_dir']); | |
$configE['snippet_file_basepath'] = bootstrap_build_path($bootstrap['templates_dir'].'/snippets/'); | |
$configE['save_tmpl_files'] = $bootstrap['save_templates_as_files'] ? 'y' : 'n'; | |
// adrian bootstrap END | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| | |
| Custom config file for EE2 to work with multiple server environments | |
| | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| | |
| Author: Jason Mayo | |
| URL: http://www.jasonmayo.co.uk | |
| Twitter: @madebymayo | |
| | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Instructions | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| | |
| 1. Copy this file into system root folder. | |
| 2. Clear "database.php" in "/system/expressionengine/config/" and add this line <?php require('./config.php'); ?> | |
| 3. Repeat Step 2, for "config.php" inside "/system/expressionengine/config/" | |
| 4. Set your environment URL's in the "Environment URL's" area. | |
| 5. Set your database settings in the "Database Environments" area. | |
| 6. Good to go! Tweak settings if you need to. | |
| | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Environment Setup | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* Environment URL's */ | |
$local_url = ""; | |
$dev_url = ""; | |
$staging_url = ""; | |
$live_url = ""; | |
/* Dynamic Setup */ | |
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$base_url = $protocol . $_SERVER['HTTP_HOST'] . "/"; | |
$base_path = "/abc/"; | |
$system_folder = "system"; | |
$images_folder = "images"; | |
$uploads_folder = "uploads"; | |
$images_path = $base_path . $images_folder; | |
$images_url = $base_url . $images_folder; | |
$uploads_path = $base_path . $uploads_folder; | |
$uploads_url = $base_url . $uploads_folder; | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Database | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
$active_group = 'expressionengine'; | |
$active_record = TRUE; | |
/* Database Environments */ | |
if ($base_url == $local_url) { | |
/* Local */ | |
$db['expressionengine']['hostname'] = ''; | |
$db['expressionengine']['username'] = ''; | |
$db['expressionengine']['password'] = ''; | |
$db['expressionengine']['database'] = ''; | |
} | |
elseif($base_url == $dev_url) { | |
/* Development */ | |
$db['expressionengine']['hostname'] = ''; | |
$db['expressionengine']['username'] = ''; | |
$db['expressionengine']['password'] = ''; | |
$db['expressionengine']['database'] = ''; | |
} | |
elseif($base_url == $staging_url) { | |
/* Staging */ | |
$db['expressionengine']['hostname'] = ''; | |
$db['expressionengine']['username'] = ''; | |
$db['expressionengine']['password'] = ''; | |
$db['expressionengine']['database'] = ''; | |
} | |
elseif($base_url == $live_url) { | |
/* Live */ | |
$db['expressionengine']['hostname'] = ''; | |
$db['expressionengine']['username'] = ''; | |
$db['expressionengine']['password'] = ''; | |
$db['expressionengine']['database'] = ''; | |
} | |
/* Misc Database Settings */ | |
$db['expressionengine']['dbdriver'] = 'mysql'; | |
$db['expressionengine']['pconnect'] = FALSE; | |
$db['expressionengine']['dbprefix'] = 'exp_'; | |
$db['expressionengine']['swap_pre'] = 'exp_'; | |
$db['expressionengine']['db_debug'] = FALSE; | |
$db['expressionengine']['autoinit'] = FALSE; | |
$db['expressionengine']['char_set'] = 'utf8'; | |
$db['expressionengine']['dbcollat'] = 'utf8_general_ci'; | |
$db['expressionengine']['cache_on'] = FALSE; | |
$db['expressionengine']['cachedir'] = '$base_path . $system_folder . "/expressionengine/cache/db_cache/"'; | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Basic Settings | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* Version */ | |
$configA['app_version'] = "253"; | |
$configA['new_version_check'] = "n"; | |
/* License Number */ | |
$configA['license_number'] = ""; | |
/* Site Name */ | |
$configA['site_label'] = "EE Multi Environment Config 1.0"; | |
$configA['site_name'] = "EE Multi Environment Config 1.0"; | |
/* Index Page */ | |
/* Keep clear if removing index.php from URL */ | |
$configA['site_index'] = "index.php"; | |
/* Enable Debugging */ | |
$configA['debug'] = "1"; | |
/* System On */ | |
$configA['is_system_on'] = "y"; | |
/* Allow Extensions */ | |
$configA['allow_extensions'] = "y"; | |
/* Encryption Key */ | |
$configA['encryption_key'] = ""; | |
/* Language */ | |
$configA['language'] = "english"; | |
/* Hooks */ | |
$configA['enable_hooks'] = FALSE; | |
/* Allow Registration */ | |
$configA['allow_registration'] = "n"; | |
/* Images */ | |
$configA['enable_avatars'] = "n"; | |
$configA['enable_photos'] = "n"; | |
$configA['sig_allow_img_upload'] = "n"; | |
/* Templates */ | |
$configA['save_tmpl_files'] = "y"; | |
$configA['save_tmpl_revisions'] = "y"; | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Paths | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* Base URL */ | |
$configA['base_url']= $base_url; | |
/* Site URL */ | |
$configA['site_url'] = $base_url; | |
/* Control Panel URL */ | |
$configA['cp_url'] = $base_url . "admin.php"; | |
/* Themes */ | |
$configA['theme_folder_url'] = $base_url . "themes/"; | |
$configA['theme_folder_path'] = $base_path . "themes/"; | |
/* Templates Server Path */ | |
$configA['tmpl_file_basepath'] = $base_path . "assets/templates/"; | |
$configA['stash_file_basepath'] = $base_path . "assets/templates-stash/"; | |
/* Captcha */ | |
$configA['captcha_url'] = $images_url . "captchas/"; | |
$configA['captcha_path'] = $images_path . "captchas/"; | |
/* Avatar */ | |
$configA['avatar_url'] = $images_url . "avatars/"; | |
$configA['avatar_path'] = $images_path . "avatars/"; | |
/* Member Photos */ | |
$configA['photo_url'] = $images_url . "member_photos/"; | |
$configA['photo_path'] = $images_path . "member_photos/"; | |
/* Signature */ | |
$configA['sig_img_url'] = $images_url . "signature_attachments/"; | |
$configA['sig_img_path'] = $images_path . "signature_attachments/"; | |
/* Private Message Upload Server Path */ | |
$configA['prv_msg_upload_path'] = $images_path . "pm_attachments/"; | |
/* File Upload URL & Server Paths */ | |
$configA['upload_preferences'] = array( | |
1 => array( | |
'name' => 'Images', | |
'server_path' => $uploads_path . "/images/", | |
'url' => $uploads_url . "/images/" | |
), | |
2 => array( | |
'name' => 'Files', | |
'server_path' => $uploads_path . "/files/", | |
'url' => $uploads_url . "/files/" | |
), | |
3 => array( | |
'name' => 'Icons', | |
'server_path' => $uploads_path . "/icons/", | |
'url' => $uploads_url . "/icons/" | |
) | |
); | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Other Settings | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* Tracking */ | |
$configA['enable_online_user_tracking'] = "n"; | |
$configA['enable_hit_tracking'] = "n"; | |
$configA['enable_entry_view_tracking'] = "n"; | |
$configA['enable_entry_view_tracking'] = "n"; | |
$configA['log_referrers'] = "n"; | |
/* Query Strings */ | |
$configA['enable_query_strings'] = FALSE; | |
$configA['directory_trigger'] = "D"; | |
$configA['controller_trigger'] = "C"; | |
$configA['function_trigger'] = "M"; | |
/* Error Logging */ | |
$configA['log_threshold'] = 0; | |
$configA['log_path'] = ""; | |
$configA['log_date_format'] = "Y-m-d H:i:s"; | |
/* Misc */ | |
$configA['charset'] = "UTF-8"; | |
$configA['uri_protocol'] = "AUTO"; | |
$configA['subclass_prefix'] = "EE_"; | |
$configA['permitted_uri_chars'] = "a-z 0-9~%.:_\-"; | |
$configA['global_xss_filtering'] = FALSE; | |
$configA['csrf_protection'] = FALSE; | |
$configA['compress_output'] = FALSE; | |
$configA['time_reference'] = "local"; | |
$configA['rewrite_short_tags'] = TRUE; | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| Add-Ons | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* Use this area for add-ons that require config settings to be set */ | |
/* NSM Htacces Generator */ | |
$configA['nsm_htaccess_generator_path'] = array($base_path . ".htaccess"); | |
/* CE Tweet */ | |
$configA['ce_tweet_consumer_key'] = ''; | |
$configA['ce_tweet_consumer_secret'] = ''; | |
$configA['ce_tweet_oauth_token'] = ''; | |
$configA['ce_tweet_oauth_secret'] = ''; | |
/* Minimee */ | |
$configA['minimee_cache_path'] = $base_path . "assets/min/"; | |
$configA['minimee_cache_url'] = $base_url . "assets/min/"; | |
$configA['minimee_base_path'] = $base_path; | |
$configA['minimee_base_url'] = $base_url; | |
$configA['minimee_debug'] = 'n'; | |
$configA['minimee_remote_mode'] = 'auto'; | |
if ($base_url == $local_url) { | |
$configA['minimee_disable'] = 'y'; | |
} | |
else { | |
$configA['minimee_disable'] = 'n'; | |
} | |
/* CE Image */ | |
$configA['ce_image_cache_dir'] = "/" . $images_folder . "/made/"; | |
/* | |
|--------------------------------------------------------------------------------------------------------------------------- | |
| End of config.php | |
|--------------------------------------------------------------------------------------------------------------------------- | |
*/ | |
/* | |
|-------------------------------------------------------------------------- | |
| ExpressionEngine Config Items | |
|-------------------------------------------------------------------------- | |
| | |
| The following items are for use with ExpressionEngine. The rest of | |
| the config items are for use with CodeIgniter, some of which are not | |
| observed by ExpressionEngine, e.g. 'permitted_uri_chars' | |
| | |
*/ | |
// GENERAL SETTINGS | |
$configB['app_version'] = "255"; | |
$configB['install_lock'] = ""; | |
$configB['license_number'] = "0000-0000-0000-0000"; | |
$configB['debug'] = "1"; | |
$configB['system_folder'] = "system"; | |
$configB['is_system_on'] = "n"; | |
$configB['allow_extensions'] = "y"; | |
$configB['site_label'] = 'EE Template'; | |
$configB['cookie_prefix'] = ""; | |
$configB['doc_url'] = "/user_guide/"; | |
$configB['webmaster_email'] = "[email protected]"; | |
$configB['encryption_key'] = "TXbLQVbPQOvwV2uixpJRhgeMXbU7yvlrJgW9YcusoB0jTuAInpo2uCQQ"; | |
// DEFAULT LOCATIONS | |
$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'); | |
$base_url .= '://'.$_SERVER['HTTP_HOST']; | |
$configB['site_index'] = ''; | |
$configB['site_url'] = $base_url; | |
$configB['server_path'] = FCPATH; | |
$configB['cp_url'] = $base_url . '/admin.php'; | |
// THEME PREFERENCES | |
$configB['theme_folder_url'] = $base_url .'/themes/'; | |
$configB['theme_folder_path'] = $configB['server_path'] .'themes/'; | |
$configB['cp_theme'] = "default"; | |
// TEMPLATE PREFERENCES | |
$configB['save_tmpl_revisions'] = "y"; | |
$configB['save_tmpl_files'] = "y"; | |
$configB['tmpl_file_basepath'] = APPPATH.'templates/'; | |
$configB['strict_urls'] = "y"; | |
$configB['site_404'] = "site/404"; | |
// CODEIGNITER CONFIG ITEMS | |
$configB['admin_session_type'] = 'cs'; | |
$configB['auto_assign_cat_parents'] = 'y'; | |
$configB['auto_convert_high_ascii'] = 'y'; | |
$configB['autosave_interval_seconds'] = '0'; | |
$configB['ban_action'] = 'restrict'; | |
$configB['ban_destination'] = 'http://www.yahoo.com/'; | |
$configB['ban_message'] = 'This site is currently unavailable'; | |
$configB['banish_masked_ips'] = 'y'; | |
$configB['banishment_message'] = 'You have exceeded the allowed page load frequency.'; | |
$configB['banishment_type'] = 'message'; | |
$configB['banishment_url'] = ''; | |
$configB['banned_emails'] = ''; | |
$configB['banned_ips'] = ''; | |
$configB['banned_screen_names'] = ''; | |
$configB['banned_usernames'] = ''; | |
// MEMBER PREFERENCES | |
$configB['allow_member_registration'] = "n"; | |
$configB['allow_username_change'] = 'y'; | |
$configB['profile_trigger'] = ' ' . time(); | |
$configB['allow_dictionary_pw'] = 'n'; | |
$configB['allow_member_localization'] = 'n'; | |
$configB['allow_multi_emails'] = 'n'; | |
$configB['allow_multi_logins'] = 'y'; | |
$configB['allow_avatar_uploads'] = 'n'; | |
$configB['enable_avatars'] = 'y'; | |
$configB['avatar_max_height'] = '100'; | |
$configB['avatar_max_kb'] = '50'; | |
$configB['avatar_max_width'] = '100'; | |
$configB['avatar_url'] = '/images/avatars/'; | |
$configB['avatar_path'] = $configB['server_path'].'images/avatars/'; | |
$configB['enable_emoticons'] = "n"; | |
$configB['emoticon_url'] = "/images/smileys/"; | |
$configB['enable_photos'] = "n"; | |
$configB['photo_url'] = $base_url.'/images/member_photos/'; | |
$configB['photo_path'] = $configB['server_path'].'images/member_photos/'; | |
$configB['allow_signatures'] = 'n'; | |
$configB['sig_allow_img_upload'] = "n"; | |
$configB['sig_img_url'] = $base_url.'/images/signature_attachments/'; | |
$configB['sig_img_path'] = $configB['server_path'].'images/signature_attachments/'; | |
$configB['prv_msg_upload_path'] = $configB['server_path'].'images/pm_attachments/'; | |
$configB['captcha_url'] = $base_url.'/images/captchas/'; | |
$configB['captcha_path'] = $configB['server_path'] . 'images/captchas/'; | |
// HIDDEN CONFIGS | |
$configB['login_reminder'] = "n"; | |
$configB['cp_session_ttl'] = 3000; | |
$configB['hidden_template_indicator'] = "_"; | |
$configB['autosave_interval_seconds'] = "0"; | |
$configB['publish_page_title_focus'] = "y"; | |
$configB['xss_clean_member_group_exception'] = '1|5'; // Sets the member group IDs to exclude XSS cleaning on. | |
$configB['user_session_ttl'] = 3000; // Users Session Length 600 = 10min | |
// DEBUGGING AND PERFORMANCE | |
$configB['show_profiler'] = "n"; | |
$configB['template_debugging'] = "n"; | |
$configB['debug'] = "1"; # 0: no PHP/SQL errors shown. 1: Errors shown to Super Admins. 2: Errors shown to everyone. | |
$configB['disable_all_tracking'] = "y"; | |
$configB['enable_sql_caching'] = "n"; | |
$configB['email_debug'] = "n"; | |
$configB['enable_db_caching'] = "n"; | |
$configB['enable_search_log'] = 'n'; | |
$configB['enable_throttling'] = 'n'; | |
// TRAKING OPTIONS | |
$configB['enable_online_user_tracking'] = "n"; | |
$configB['dynamic_tracking_disabling'] = "500"; | |
$configB['enable_hit_tracking'] = "n"; | |
$configB['enable_entry_view_tracking'] = "n"; | |
$configB['log_referrers'] = "n"; | |
// LOW VARIABLES PREFERENCES | |
$configB['low_variables_save_as_files'] = 'y'; | |
$configB['low_variables_file_path'] = APPPATH.'variables/'; | |
// CE IMAGE SETTINGS | |
$configB['ce_image_cache_dir'] = "/library/cache/"; | |
$configB['ce_image_remote_dir'] = "/library/cache/"; | |
$configB['ce_image_memory_limit'] = 64; | |
$configB['ce_image_remote_cache_time'] = 1440; | |
$configB['ce_image_quality'] = 100; | |
$configB['ce_image_disable_xss_check'] = "yes"; | |
// UPDATER PREFERENCES | |
$configB['updater']['file_transfer_method'] = 'local'; // local, ftp, sftp | |
$configB['updater']['ftp']['hostname'] = ''; | |
$configB['updater']['ftp']['username'] = ''; | |
$configB['updater']['ftp']['password'] = ''; | |
$configB['updater']['ftp']['port'] = '21'; | |
$configB['updater']['ftp']['passive'] = 'yes'; | |
$configB['updater']['ftp']['ssl'] = 'no'; | |
$configB['updater']['sftp']['hostname'] = ''; | |
$configB['updater']['sftp']['username'] = ''; | |
$configB['updater']['sftp']['password'] = ''; | |
$configB['updater']['sftp']['port'] = '22'; | |
$configB['updater']['path_map']['root'] = FCPATH; // Document Root | |
$configB['updater']['path_map']['backup'] = str_replace("public_html", "backup", FCPATH); // Backup Dir | |
$configB['updater']['path_map']['system'] = str_replace("public_html", "system", FCPATH); // System Dir | |
$configB['updater']['path_map']['system_third_party'] = APPPATH . 'third_party/'; // Third Party dir system dir | |
$configB['updater']['path_map']['themes'] = FCPATH . 'themes/'; // Themes dir | |
$configB['updater']['path_map']['themes_third_party'] = FCPATH . 'themes/third_party/'; // Third Party dir in themes dir | |
// BACKUP PRO PREFERENCES | |
$configB['m62_backup']['exclude_paths'] = array(); | |
$configB['m62_backup']['allowed_access_levels'] = array(); | |
$configB['m62_backup']['auto_threshold'] = '0'; | |
$configB['m62_backup']['backup_file_location'] = array(realpath($_SERVER['DOCUMENT_ROOT']), str_replace("public_html/", "system", FCPATH)); | |
$configB['m62_backup']['backup_store_location'] = str_replace("public_html/", "backup/backup_pro", FCPATH); | |
$configB['m62_backup']['license_number'] = ''; | |
$configB['m62_backup']['cron_notify_emails'] = array('[email protected]'); | |
$configB['m62_backup']['cron_attach_backups'] = '0'; | |
$configB['m62_backup']['cron_attach_threshold'] = '0'; | |
$configB['m62_backup']['ftp_hostname'] = ''; | |
$configB['m62_backup']['ftp_username'] = ''; | |
$configB['m62_backup']['ftp_password'] = '0'; | |
$configB['m62_backup']['ftp_port'] = '21'; | |
$configB['m62_backup']['ftp_passive'] = '0'; | |
$configB['m62_backup']['ftp_store_location'] = ''; | |
$configB['m62_backup']['s3_access_key'] = ''; | |
$configB['m62_backup']['s3_secret_key'] = ''; | |
$configB['m62_backup']['s3_bucket'] = ''; | |
$configB['m62_backup']['cf_username'] = ''; | |
$configB['m62_backup']['cf_api'] = ''; | |
$configB['m62_backup']['cf_bucket'] = ''; | |
$configB['m62_backup']['cf_location'] = 'us'; | |
// UPLOAD PREFERENCES | |
$configB['upload_preferences'] = array ( | |
1 => | |
array ( | |
'name' => 'Main Uploads', | |
'server_path' => FCPATH . 'library/uploads/', | |
'url' => '/library/uploads/', | |
), | |
); | |
// LINK VAULT SEETINGS | |
// $configB['link_vault_salt'] = 'mTjFsLfMDzPwbZvlIO4e'; | |
// $configB['link_vault_hidden_folder'] = '../private/'; | |
// $configB['link_vault_leech_url'] = 'https://www.google.com.au/'; | |
// $configB['link_vault_missing_url'] = 'https://www.google.com.au/'; | |
// $configB['link_vault_block_leeching'] = 0; | |
// $configB['link_vault_log_leeching'] = 0; | |
// $configB['link_vault_log_link_clicks'] = 0; | |
// $configB['link_vault_debug'] = TRUE; | |
// $configB['link_vault_aws_access_key'] = 'MYAMAZONWEBSERVICESACCESSKEY'; | |
// $configB['link_vault_aws_secret_key'] = 'thisismyamazonwebservicessecretkey'; | |
// END EE config items | |
/* | |
|-------------------------------------------------------------------------- | |
| Base Site URL | |
|-------------------------------------------------------------------------- | |
| | |
| URL to your CodeIgniter root. Typically this will be your base URL, | |
| WITH a trailing slash: | |
| | |
| http://example.com/ | |
| | |
*/ | |
$configB['base_url'] = $configB['site_url']; | |
/* | |
|-------------------------------------------------------------------------- | |
| Index File | |
|-------------------------------------------------------------------------- | |
| | |
| Typically this will be your index.php file, unless you've renamed it to | |
| something else. If you are using mod_rewrite to remove the page set this | |
| variable so that it is blank. | |
| | |
*/ | |
$configB['index_page'] = ""; | |
/* | |
|-------------------------------------------------------------------------- | |
| URI PROTOCOL | |
|-------------------------------------------------------------------------- | |
| | |
| This item determines which server global should be used to retrieve the | |
| URI string. The default setting of "AUTO" works for most servers. | |
| If your links do not seem to work, try one of the other delicious flavors: | |
| | |
| 'AUTO' Default - auto detects | |
| 'PATH_INFO' Uses the PATH_INFO | |
| 'QUERY_STRING' Uses the QUERY_STRING | |
| 'REQUEST_URI' Uses the REQUEST_URI | |
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO | |
| | |
*/ | |
$configB['uri_protocol'] = 'AUTO'; | |
/* | |
|-------------------------------------------------------------------------- | |
| URL suffix | |
|-------------------------------------------------------------------------- | |
| | |
| This option allows you to add a suffix to all URLs generated by CodeIgniter. | |
| For more information please see the user guide: | |
| | |
| http://codeigniter.com/user_guide/general/urls.html | |
*/ | |
$configB['url_suffix'] = ''; | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Language | |
|-------------------------------------------------------------------------- | |
| | |
| This determines which set of language files should be used. Make sure | |
| there is an available translation if you intend to use something other | |
| than english. | |
| | |
*/ | |
$configB['language'] = 'english'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Character Set | |
|-------------------------------------------------------------------------- | |
| | |
| This determines which character set is used by default in various methods | |
| that require a character set to be provided. | |
| | |
*/ | |
$configB['charset'] = 'UTF-8'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Enable/Disable System Hooks | |
|-------------------------------------------------------------------------- | |
| | |
| If you would like to use the "hooks" feature you must enable it by | |
| setting this variable to TRUE (boolean). See the user guide for details. | |
| | |
*/ | |
$configB['enable_hooks'] = FALSE; | |
/* | |
|-------------------------------------------------------------------------- | |
| Class Extension Prefix | |
|-------------------------------------------------------------------------- | |
| | |
| This item allows you to set the filename/classname prefix when extending | |
| native libraries. For more information please see the user guide: | |
| | |
| http://codeigniter.com/user_guide/general/core_classes.html | |
| http://codeigniter.com/user_guide/general/creating_libraries.html | |
| | |
*/ | |
$configB['subclass_prefix'] = 'EE_'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Allowed URL Characters | |
|-------------------------------------------------------------------------- | |
| | |
| This lets you specify which characters are permitted within your URLs. | |
| When someone tries to submit a URL with disallowed characters they will | |
| get a warning message. | |
| | |
| As a security measure you are STRONGLY encouraged to restrict URLs to | |
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- | |
| | |
| Leave blank to allow all characters -- but only if you are insane. | |
| | |
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! | |
| | |
*/ | |
$configB['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Enable Query Strings | |
|-------------------------------------------------------------------------- | |
| | |
| By default CodeIgniter uses search-engine friendly segment based URLs: | |
| example.com/who/what/where/ | |
| | |
| You can optionally enable standard query string based URLs: | |
| example.com?who=me&what=something&where=here | |
| | |
| Options are: TRUE or FALSE (boolean) | |
| | |
| The two other items let you set the query string "words" that will | |
| invoke your controllers and its functions: | |
| example.com/index.php?c=controller&m=function | |
| | |
| Please note that some of the helpers won't work as expected when | |
| this feature is enabled, since CodeIgniter is designed primarily to | |
| use segment based URLs. | |
| | |
*/ | |
$configB['enable_query_strings'] = FALSE; | |
$configB['directory_trigger'] = 'D'; | |
$configB['controller_trigger'] = 'C'; | |
$configB['function_trigger'] = 'M'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Error Logging Threshold | |
|-------------------------------------------------------------------------- | |
| | |
| If you have enabled error logging, you can set an error threshold to | |
| determine what gets logged. Threshold options are: | |
| | |
| 0 = Disables logging, Error logging TURNED OFF | |
| 1 = Error Messages (including PHP errors) | |
| 2 = Debug Messages | |
| 3 = Informational Messages | |
| 4 = All Messages | |
| | |
| For a live site you'll usually only enable Errors (1) to be logged otherwise | |
| your log files will fill up very fast. | |
| | |
*/ | |
$configB['log_threshold'] = 0; | |
/* | |
|-------------------------------------------------------------------------- | |
| Error Logging Directory Path | |
|-------------------------------------------------------------------------- | |
| | |
| Leave this BLANK unless you would like to set something other than the default | |
| system/logs/ folder. Use a full server path with trailing slash. | |
| | |
*/ | |
$configB['log_path'] = ''; | |
/* | |
|-------------------------------------------------------------------------- | |
| Date Format for Logs | |
|-------------------------------------------------------------------------- | |
| | |
| Each item that is logged has an associated date. You can use PHP date | |
| codes to set your own date formatting | |
| | |
*/ | |
$configB['log_date_format'] = 'Y-m-d H:i:s'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Cache Directory Path | |
|-------------------------------------------------------------------------- | |
| | |
| Leave this BLANK unless you would like to set something other than the default | |
| system/cache/ folder. Use a full server path with trailing slash. | |
| | |
*/ | |
$configB['cache_path'] = ''; | |
/* | |
|-------------------------------------------------------------------------- | |
| Encryption Key | |
|-------------------------------------------------------------------------- | |
| | |
| If you use the Encryption class or the Sessions class with encryption | |
| enabled you MUST set an encryption key. See the user guide for info. | |
| | |
*/ | |
$configB['encryption_key'] = ''; | |
/* | |
|-------------------------------------------------------------------------- | |
| Global XSS Filtering | |
|-------------------------------------------------------------------------- | |
| | |
| Determines whether the XSS filter is always active when GET, POST or | |
| COOKIE data is encountered | |
| | |
*/ | |
$configB['global_xss_filtering'] = FALSE; | |
/* | |
|-------------------------------------------------------------------------- | |
| CSRF Protection | |
|-------------------------------------------------------------------------- | |
| | |
| Determines whether Cross Site Request Forgery protection is enabled. | |
| For more info visit the security library page of the user guide | |
| | |
*/ | |
$configB['csrf_protection'] = FALSE; | |
/* | |
|-------------------------------------------------------------------------- | |
| Output Compression | |
|-------------------------------------------------------------------------- | |
| | |
| Enables Gzip output compression for faster page loads. When enabled, | |
| the output class will test whether your server supports Gzip. | |
| Even if it does, however, not all browsers support compression | |
| so enable only if you are reasonably sure your visitors can handle it. | |
| | |
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it | |
| means you are prematurely outputting something to your browser. It could | |
| even be a line of whitespace at the end of one of your scripts. For | |
| compression to work, nothing can be sent before the output buffer is called | |
| by the output class. Do not "echo" any values with compression enabled. | |
| | |
*/ | |
$configB['compress_output'] = FALSE; | |
/* | |
|-------------------------------------------------------------------------- | |
| Master Time Reference | |
|-------------------------------------------------------------------------- | |
| | |
| Options are "local" or "gmt". This pref tells the system whether to use | |
| your server's local time as the master "now" reference, or convert it to | |
| GMT. See the "date helper" page of the user guide for information | |
| regarding date handling. | |
| | |
*/ | |
$configB['time_reference'] = 'local'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Rewrite PHP Short Tags | |
|-------------------------------------------------------------------------- | |
| | |
| If your PHP installation does not have short tag support enabled CI | |
| can rewrite the tags on-the-fly, enabling you to utilize that syntax | |
| in your view files. Options are TRUE or FALSE (boolean) | |
| | |
*/ | |
$configB['rewrite_short_tags'] = TRUE; | |
/* | |
|-------------------------------------------------------------------------- | |
| Reverse Proxy IPs | |
|-------------------------------------------------------------------------- | |
| | |
| If your server is behind a reverse proxy, you must whitelist the proxy IP | |
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR | |
| header in order to properly identify the visitor's IP address. | |
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201' | |
| | |
*/ | |
$configB['proxy_ips'] = ''; | |
/* End of file config.php */ | |
/* Location: ./system/expressionengine/config/config.php */ | |
// focus lab START | |
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; | |
$base_url = $protocol . $_SERVER['HTTP_HOST']; | |
$base_path = $_SERVER['DOCUMENT_ROOT']; | |
$system_folder = APPPATH . '../'; | |
$images_folder = 'images'; | |
$images_path = $base_path . '/' . $images_folder; | |
$images_url = $base_url . '/' . $images_folder; | |
$configC['index_page'] = ''; | |
$configC['site_index'] = ''; | |
$configC['base_url'] = $base_url . '/'; | |
$configC['site_url'] = $configC['base_url']; | |
$configC['cp_url'] = $configC['base_url'] . 'admin.php'; | |
$configC['theme_folder_path'] = $base_path . '/themes/'; | |
$configC['theme_folder_url'] = $base_url . '/themes/'; | |
$configC['emoticon_path'] = $images_url . '/smileys/'; | |
$configC['emoticon_url'] = $images_url . '/smileys/'; | |
$configC['captcha_path'] = $images_path . '/captchas/'; | |
$configC['captcha_url'] = $images_url . '/captchas/'; | |
$configC['avatar_path'] = $images_path . '/avatars/'; | |
$configC['avatar_url'] = $images_url . '/avatars/'; | |
$configC['photo_path'] = $images_path . '/member_photos/'; | |
$configC['photo_url'] = $images_url . '/member_photos/'; | |
$configC['sig_img_path'] = $images_path . '/signature_attachments/'; | |
$configC['sig_img_url'] = $images_url . '/signature_attachments/'; | |
$configC['prv_msg_upload_path'] = $images_path . '/pm_attachments/'; | |
// $configC['third_party_path'] = $base_path . '/../third_party/'; | |
/** | |
* Custom upload directory paths | |
* | |
* The array keys must match the ID from exp_upload_prefs | |
*/ | |
// $configC['upload_preferences'] = array( | |
// 1 => array( | |
// 'name' => 'Default Uploads', | |
// 'server_path' => $images_path . '/uploads', | |
// 'url' => $images_url . '/uploads/' | |
// ), | |
// 2 => array( | |
// 'name' => 'Second Folder', | |
// 'server_path' => $images_path . '/another_one', | |
// 'url' => $images_url . '/another_one/' | |
// ) | |
// ); | |
/** | |
* Template settings | |
* | |
* Working locally we want to reference our template files. | |
* In staging and production we do not use flat files (for ever-so-slightly better performance) | |
* This approach requires that we synchronize templates after each deployment of template changes | |
* | |
* For the distributed Focus Lab, LLC Master Config file this is commented out | |
* You can enable this "feature" by uncommenting the second 'save_tmpl_files' line | |
*/ | |
$configC['save_tmpl_files'] = 'y'; | |
// $configC['save_tmpl_files'] = (ENV == 'prod') ? 'n' : 'y'; | |
$configC['tmpl_file_basepath'] = $base_path . '/../templates'; | |
$configC['hidden_template_indicator'] = '_'; | |
/** | |
* Debugging settings | |
* | |
* These settings are helpful to have in one place | |
* for debugging purposes | |
*/ | |
$configC['is_system_on'] = 'y'; | |
$configC['allow_extensions'] = 'y'; | |
$configC['email_debug'] = (ENV_DEBUG) ? 'y' : 'n' ; | |
// If we're not in production show the profile on the front-end but not in the CP | |
$configC['show_profiler'] = ( ! ENV_DEBUG OR (isset($_GET['D']) && $_GET['D'] == 'cp')) ? 'n' : 'y' ; | |
// Show template debugging if we're not in production | |
$configC['template_debugging'] = (ENV_DEBUG) ? 'y' : 'n' ; | |
/** | |
* Set debug to '2' if we're in dev mode, otherwise just '1' | |
* | |
* 0: no PHP/SQL errors shown | |
* 1: Errors shown to Super Admins | |
* 2: Errors shown to everyone | |
*/ | |
$configC['debug'] = (ENV_DEBUG) ? '2' : '1' ; | |
/** | |
* Tracking & Performance settings | |
* | |
* These settings may impact what happens on certain page loads | |
* and turning them off could help with performance in general | |
*/ | |
$configC['disable_all_tracking'] = 'y'; // If set to 'y' some of the below settings are disregarded | |
$configC['enable_sql_caching'] = 'n'; | |
$configC['disable_tag_caching'] = 'n'; | |
$configC['enable_online_user_tracking'] = 'n'; | |
$configC['dynamic_tracking_disabling'] = '500'; | |
$configC['enable_hit_tracking'] = 'n'; | |
$configC['enable_entry_view_tracking'] = 'n'; | |
$configC['log_referrers'] = 'n'; | |
$configC['gzip_output'] = 'y'; // Set to 'n' if your host is EngineHosting | |
/** | |
* 3rd Party Add-on config items as needed | |
*/ | |
/** | |
* Member-based settings | |
*/ | |
$configC['profile_trigger'] = rand(0,time()); // randomize the member profile trigger word because we'll never need it | |
/** | |
* Other system settings | |
*/ | |
$configC['new_version_check'] = 'n'; // no slowing my CP homepage down with this | |
$configC['daylight_savings'] = ((bool) date('I')) ? 'y' : 'n'; // Autodetect DST | |
$configC['use_category_name'] = 'y'; | |
$configC['reserved_category_word'] = 'category'; | |
$configC['word_separator'] = 'dash'; // dash|underscore | |
// focus lab END | |
// nsm config bootstrap START | |
/** | |
* Config. This shouldn't have to be changed if you're using the Newism EE2 template. | |
*/ | |
$configD = array( | |
// General preferences | |
'is_system_on' => 'y', | |
'license_number' => '', | |
'site_index' => '', | |
'admin_session_type' => 'cs', | |
'new_version_check' => 'y', | |
'doc_url' => 'http://expressionengine.com/user_guide/', | |
'site_url' => NSM_SITE_URL, | |
'base_url' => NSM_SITE_URL, | |
'cp_url' => NSM_SITE_URL.'/'.NSM_SYSTEM_FOLDER.'/index.php', | |
// Set this so we can use query strings | |
'uri_protocol' => 'PATH_INFO', | |
// Third party directory | |
// @see http://expressionengine.com/user_guide/general/hidden_configuration_variables.html#third-party-path | |
'third_party' => NSM_BASEPATH . '/third_party/', | |
// Datbase preferences | |
'db_debug' => 'n', | |
'pconnect' => 'n', | |
'enable_db_caching' => 'n', | |
// Site preferences | |
// Some of these preferences might actually need to be set in the index.php files. | |
// Not sure which ones yet, I'll figure that out when I have my first MSM site. | |
'is_site_on' => 'y', | |
'site_404' => 'site/four04', | |
// Localization preferences | |
'server_timezone' => 'UP10', | |
'server_offset' => FALSE, | |
'time_format' => 'eu', | |
'daylight_savings' => 'n', | |
'honor_entry_dst' => 'y', | |
// Channel preferences | |
'use_category_name' => 'y', | |
'word_separator' => 'dash', | |
'reserved_category_word' => 'category', | |
// Template preferences | |
'strict_urls' => 'y', | |
'save_tmpl_files' => 'y', | |
'save_tmpl_revisions' => 'y', | |
'tmpl_file_basepath' => NSM_BASEPATH . '/templates/', | |
// Theme preferences | |
'theme_folder_path' => NSM_BASEPATH . '/content/themes/', | |
'theme_folder_url' => NSM_SITE_URL . '/themes/', | |
// Tracking preferences | |
'enable_online_user_tracking' => 'n', | |
'dynamic_tracking_disabling' => '500', | |
'enable_hit_tracking' => 'n', | |
'enable_entry_view_tracking' => 'n', | |
'log_referrers' => 'n', | |
// Member preferences | |
'allow_registration' => 'n', | |
'profile_trigger' => '--sdjhkj2lffgrerfvmdkndkfisolmfmsd' . time(), | |
'prv_msg_upload_path' => NSM_BASEPATH . '/content/uploads/member/pm_attachments', | |
'enable_emoticons' => 'n', | |
'enable_avatars' => 'n', | |
'avatar_path' => NSM_BASEPATH . '/content/uploads/member/avatars/', | |
'avatar_url' => NSM_SITE_URL . '/uploads/member/avatars/', | |
'avatar_max_height' => 100, | |
'avatar_max_width' => 100, | |
'avatar_max_kb' => 100, | |
'enable_photos' => 'n', | |
'photo_path' => NSM_BASEPATH . '/content/uploads/member/photos/', | |
'photo_url' => NSM_SITE_URL . '/uploads/member/photos/', | |
'photo_max_height' => 200, | |
'photo_max_width' => 200, | |
'photo_max_kb' => 200, | |
'sig_allow_img_upload' => 'n', | |
'sig_img_path' => NSM_BASEPATH . '/content/uploads/member/signature_attachments/', | |
'sig_img_url' => NSM_SITE_URL . '/uploads/member/signature_attachments/', | |
'sig_img_max_height' => 80, | |
'sig_img_max_width' => 480, | |
'sig_img_max_kb' => 30, | |
'sig_maxlength' => 500, | |
'captcha_font' => 'y', | |
'captcha_rand' => 'y', | |
'captcha_require_members' => 'n', | |
'captcha_path' => NSM_BASEPATH . '/content/'.NSM_SYSTEM_FOLDER.'/images/captchas/', | |
'captcha_url' => NSM_SITE_URL.'/'.NSM_SYSTEM_FOLDER.'/images/captchas/', | |
// Encryption / Session key | |
'encryption_key' => '', | |
// File Upload config. See: http://expressionengine.com/user_guide/general/hidden_configuration_variables.html#upload-preferences | |
//'upload_preferences' = array( | |
// 1 => array( // ID of upload destination | |
// 'name' => 'Staging Image Uploads', // Display name in control panel | |
// 'server_path' => '/home/user/example.com/staging/images/uploads/', // Server path to upload directory | |
// 'url' => 'http://staging.example.com/images/uploads/' // URL of upload directory | |
// ) | |
// ), | |
// NSM htaccess Generator | |
'nsm_htaccess_generator_path' => array(NSM_BASEPATH . "/content/.htaccess") | |
); | |
// nsm config bootstrap END | |
echo '<pre>'.PHP_EOL; | |
$config_diff = array_merge(array_diff_key($configA, $configB),array_diff_key($configB, $configA)); | |
//var_dump($config_diff); | |
//var_dump(array_diff_key($configC, array_merge($configA,$configB))); | |
var_dump(array_diff_key($configD, array_merge($configA,$configB,$configC))); | |
// repeat with E |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment