rlargett
7/11/2010 - 9:51 PM

config.php

<?php

// 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                  = "images";
$images_path                    = $base_path . "/" . $images_folder;
$images_url                     = $base_url . "/" . $images_folder;

$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 . "/themes/";
$config['theme_folder_url']     = $base_url . "/themes/";
$config['tmpl_file_basepath']   = APPPATH . "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/"; 

?>