Skip to content

Instantly share code, notes, and snippets.

@chadclark
Last active January 3, 2016 08:49
Show Gist options
  • Save chadclark/8438599 to your computer and use it in GitHub Desktop.
Save chadclark/8438599 to your computer and use it in GitHub Desktop.
ExpressionEngine 1.x Master Config. Throwback.
<?php
if ( ! defined('EXT')){
exit('Invalid file request');
}
$conf['app_version'] = ""; // EE Version Number -- Fill this in before updating so it knows where to begin
$conf['license_number'] = "";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
switch ( $_SERVER['HTTP_HOST'] ) {
// Local Dev
case '' :
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "root";
$conf['db_password'] = "";
$conf['db_name'] = "";
break;
// Production Server
case '' :
$conf['db_hostname'] = "";
$conf['db_username'] = "";
$conf['db_password'] = "";
$conf['db_name'] = "";
break;
}
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['cookie_prefix'] = "";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "n";
$conf['system_folder'] = ""; // System Folder
$conf['site_url'] = "http://${_SERVER['HTTP_HOST']}/";
$conf['cp_url'] = "http://${_SERVER['HTTP_HOST']}/${conf['system_folder']}/";
$conf['tmpl_file_basepath'] = "${_SERVER['DOCUMENT_ROOT']}/templates";
$conf['theme_folder_path'] = "${_SERVER['DOCUMENT_ROOT']}/themes/";
$conf['theme_folder_url'] = "http://${_SERVER['HTTP_HOST']}/themes/";
$conf['captcha_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/captchas/";
$conf['captcha_url'] = "http://${_SERVER['HTTP_HOST']}/images/captchas/";
$conf['avatar_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/members/avatars/";
$conf['avatar_url'] = "http://${_SERVER['HTTP_HOST']}/images/members/avatars/";
$conf['photo_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/members/photos/";
$conf['photo_url'] = "http://${_SERVER['HTTP_HOST']}/images/members/photos/";
$conf['sig_img_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/signature_attachments/";
$conf['sig_img_url'] = "http://${_SERVER['HTTP_HOST']}/images/signature_attachments";
$conf['prv_msg_upload_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/pm_attachments/";
$conf['ft_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['system_folder']}/extensions/fieldtypes/";
$conf['ft_url'] = "http://${_SERVER['HTTP_HOST']}/${conf['system_folder']}/extensions/fieldtypes/";
$conf['enable_online_user_tracking'] = "n";
$conf['enable_hit_tracking'] = "n";
$conf['enable_entry_view_tracking'] = "n";
$conf['dynamic_tracking_disabling'] = "500";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment