Skip to content

Instantly share code, notes, and snippets.

@jtrascap
Created March 25, 2014 06:26
Show Gist options
  • Save jtrascap/9756174 to your computer and use it in GitHub Desktop.
Save jtrascap/9756174 to your computer and use it in GitHub Desktop.
/* Universal Variables */
$config['app_version'] = "255";
$config['license_number'] = "0000-0000-0000-0000";
$config['debug'] = "1";
$config['install_lock'] = "";
$config['system_folder'] = "system";
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'] = "y";
$config['cookie_prefix'] = "";
$config['site_name'] = "";
$config['allow_extensions'] = "y";
$config['profile_trigger'] = md5(mt_rand()); // Creates a hashed url segment for the members profiles, keeping spambots from finding the member signup form on all EE sites.
$config['disable_tag_caching'] = 'y';
/* Dynamic paths for cross-server compatibility
-------------------------------------------------------------------*/
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://";
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$base_path = $_SERVER['DOCUMENT_ROOT'];
$system_folder = "system";
$images_folder = "assets/img";
$uploads_folder = "assets/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;
$above_root = dirname($_SERVER['DOCUMENT_ROOT']); // If placing directories above webroot, this variable comes in handy.
$config['upload_preferences'] = array(
1 => array(
'name' => 'Upload Path 1',
'server_path' => $uploads_path . '/upload_path_1/',
'url' => $uploads_url . '/upload_path_1/'
),
2 => array(
'name' => 'Upload Path 2',
'server_path' => $uploads_path . '/upload_path_2/',
'url' => $uploads_url . '/upload_path_2/'
),
3 => array(
'name' => 'Upload Path 3',
'server_path' => $uploads_path . '/upload_path_3/',
'url' => $uploads_url . '/upload_path_3/'
)
);
$config['index_page'] = "";
$config['base_url'] = $base_url . "/";
$config['site_url'] = $config['base_url'];
$config['cp_url'] = $config['base_url'] . $system_folder . "/index.php";
$config['theme_folder_path'] = $base_path . "/assets/themes/";
$config['theme_folder_url'] = $base_url . "/assets/themes/";
$config['tmpl_file_basepath'] = $base_path . "/assets/templates/";
$config['emoticon_path'] = $images_url . "/smileys/";
$config['captcha_path'] = $images_path . "/captchas/";
$config['captcha_url'] = $images_url . "/captchas/";
$config['avatar_path'] = $images_path . "/avatars/";
$config['avatar_url'] = $images_url . "/avatars/";
$config['photo_path'] = $images_path . "/member_photos/";
$config['photo_url'] = $images_url . "/member_photos/";
$config['sig_img_path'] = $images_path . "/signature_attachments/";
$config['sig_img_url'] = $images_url . "/signature_attachments/";
$config['prv_msg_upload_path'] = $images_path . "/pm_attachments/";
/* Settings pertaining to CE Image's resizing capabilities.
-------------------------------------------------------------------*/
$config['ce_image_cache_dir'] = '/assets/img/cached/made/';
$config['ce_image_remote_dir'] = '/assets/img/cached/remote/';
/* Start Backup Pro settings overrides
-------------------------------------------------------------------*/
$config['backup_proish']['auto_threshold'] = '0';
$config['backup_proish']['exclude_paths'] = array('/assets/backup');
$config['backup_proish']['cron_notify_emails'] = array('chris@onebrightlight.com');
$config['backup_proish']['cron_attach_backups'] = '0';
$config['backup_proish']['cron_attach_threshold'] = '';
$config['backup_proish']['backup_file_location'] = $base_path;
$config['backup_proish']['backup_store_location'] = $base_path . "/assets/backup"; //if from within the config directory this should map to the backup_proish/backups directory
/* Snippet Sync settings overrides
------------------------------------------------------------------*/
$config['snippet_file_basepath'] = $base_path . "/assets/templates/snippets/";
$config['snippets_sync_prefix'] = 'snip_';
// END EE config items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment