|
ZenCart_Documentation
1.5.0
http://www.collinsharper.com
|
00001 <?php 00017 define('HTTP_SERVER', 'http://localhost'); 00018 define('HTTPS_SERVER', 'https://localhost'); 00019 define('HTTP_CATALOG_SERVER', 'http://localhost'); 00020 define('HTTPS_CATALOG_SERVER', 'https://localhost'); 00021 00022 // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). 00023 define('ENABLE_SSL_ADMIN', 'false'); 00024 00025 // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). 00026 define('ENABLE_SSL_CATALOG', 'false'); 00027 00028 // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! 00029 // * DIR_WS_* = Webserver directories (virtual/URL) 00030 // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) 00031 $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path']; 00032 00033 define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); 00034 define('DIR_WS_CATALOG', '/'); 00035 define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); 00036 define('DIR_WS_HTTPS_CATALOG', '/'); 00037 00038 define('DIR_WS_IMAGES', 'images/'); 00039 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 00040 define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); 00041 define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); 00042 define('DIR_WS_INCLUDES', 'includes/'); 00043 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); 00044 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); 00045 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); 00046 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); 00047 define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); 00048 00049 // * DIR_FS_* = Filesystem directories (local/physical) 00050 define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/'); 00051 define('DIR_FS_CATALOG', '/'); 00052 00053 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); 00054 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); 00055 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); 00056 define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); 00057 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); 00058 define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); 00059 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); 00060 00061 // define our database connection 00062 define('DB_TYPE', 'mysql'); 00063 define('DB_PREFIX', ''); 00064 define('DB_SERVER', 'localhost'); 00065 define('DB_SERVER_USERNAME', ''); 00066 define('DB_SERVER_PASSWORD', ''); 00067 define('DB_DATABASE', ''); 00068 00069 // The next 2 "defines" are for SQL cache support. 00070 // For SQL_CACHE_METHOD, you can select from: none, database, or file 00071 // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 00072 // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder 00073 // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash 00074 define('SQL_CACHE_METHOD', 'none'); 00075 define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache'); 00076 00077 00078 //Explanations of the webserver and path parameters: 00079 // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com 00080 // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com 00081 // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com 00082 // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com 00083 /* 00084 * URL's for your site will be built via: 00085 * HTTP_SERVER plus DIR_WS_ADMIN or 00086 * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 00087 * HTTP_SERVER plus DIR_WS_CATALOG or 00088 * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG 00089 * ...depending on your system configuration settings 00090 */