Skip to content

Instantly share code, notes, and snippets.

@jolantis
Forked from eeinsider/config.php
Created July 16, 2010 14:16
Show Gist options
  • Save jolantis/478419 to your computer and use it in GitHub Desktop.
Save jolantis/478419 to your computer and use it in GitHub Desktop.
ee2 config.php
<?php
/*
|--------------------------------------------------------------------------
| ExpressionEngine Config Items
|--------------------------------------------------------------------------
|
*/
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://";
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$base_path = $_SERVER['DOCUMENT_ROOT'];
// Site-wide and general Settings
$config['app_version'] = "210";
$config['install_lock'] = "1";
$config['license_number'] = "";
$config['is_system_on'] = "y";
$config['new_version_check'] = "y";
$config['allow_extensions'] = "y";
$config['autosave_interval_seconds'] = "0"; # 0: disables entry autosave
$config['system_folder'] = "system";
$config['site_index'] = "";
$config['doc_url'] = "http://expressionengine.com/user_guide/";
// General site paths and URLs
$config['base_url'] = $base_url . "/";
$config['site_url'] = $config['base_url'];
$config['cp_url'] = $config['base_url'] . "/" . $config['system_folder'];
// Member directory paths and URLs
$config['avatar_path'] = $base_path . "/uploads/members/avatars/uploads/";
$config['avatar_url'] = $base_url . "/uploads/members/avatars/uploads/";
$config['photo_path'] = $base_path . "/uploads/members/member_photos/";
$config['photo_url'] = $base_url . "/uploads/members/member_photos/";
$config['sig_img_path'] = $base_path . "/uploads/members/signature_attachments/";
$config['sig_img_url'] = $base_url . "/uploads/members/signature_attachments/";
$config['prv_msg_upload_path'] = $base_path . "/uploads/members/pm_attachments/";
// Misc directory paths and URLs
$config['theme_folder_path'] = $base_path . "/themes/";
$config['theme_folder_url'] = $base_url . "/themes/";
$config['captcha_path'] = $base_path . "/images/captchas/";
$config['captcha_url'] = $base_url . "/images/captchas/";
$config['emoticon_path'] = $base_url . "/images/smileys/";
// Templates Preferences
$config['save_tmpl_files'] = "y";
$config['tmpl_file_basepath'] = $base_path . "/assets/templates/";
$config['save_tmpl_revisions'] = "n";
$config['strict_urls'] = "y";
$config['site_404'] = "404/index";
// Global Channel Preferences
$config['use_category_name'] = "y";
$config['reserved_category_word'] = "category";
$config['word_separator'] = "dash";
$config['enable_image_resizing'] = "n";
$config['auto_convert_high_ascii'] = "n";
// Member preferences
$config['allow_member_registration'] = "n";
$config['profile_trigger'] = "--aqwviklbdfgrerfvmdknoklmwolghydf";
$config['enable_emoticons'] = 'n';
$config['enable_avatars'] = 'n';
$config['enable_photos'] = 'n'; # Allow member/user photos
$config['sig_allow_img_upload'] = 'n'; # Allow member/user to upload signatures
// Cookie settings
$config['cookie_path'] = "";
$config['cookie_domain'] = "";
$config['cookie_prefix'] = "";
$config['user_session_type'] = "c";
$config['admin_session_type'] = "cs";
// Enable some hidden variables
$config['weblog_nomenclature'] = "channel";
$config['hidden_template_indicator'] = ".";
$confif['protect_javascript'] = "y";
// Localization preferences
$config['server_timezone'] = "UP1";
$config['server_offset'] = "";
$config['time_format'] = "eu";
$config['daylight_savings'] = "y";
$config['honor_entry_dst'] = "y";
// Debugging and performance
$config['show_profiler'] = 'n';
$config['template_debugging'] = 'n';
$config['debug'] = "1"; # 0: no PHP/SQL errors shown. 1: Errors shown to Super Admins. 2: Errors shown to everyone.
$config['email_debug'] = 'n';
$config['enable_sql_caching'] = 'n'; # Cache Dynamic Channel Queries?
// Datbase preferences
$config['db_debug'] = 'n';
$config['pconnect'] = 'n';
$config['enable_db_caching'] = 'n';
// Extreme traffic options (http://expressionengine.com/user_guide/general/handling_extreme_traffic.html)
$config['enable_online_user_tracking'] = "n"; # (y/n) - Corresponds to Enable Online User Tracking
$config['enable_hit_tracking'] = "n"; # (y/n) - Corresponds to Enable Template Hit Tracking
$config['enable_entry_view_tracking'] = "n"; # (y/n) - Corresponds to Enable Weblog Entry View Tracking
$config['log_referrers'] = "n"; # (y/n) - Corresponds to Enable Referrer Logging?
$config['dynamic_tracking_disabling'] = "500"; # (numeric) - Corresponds to Suspend ALL tracking when number of online visitors exceeds:
// END EE config items
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment