[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 dist-configure.php

Zen Cart 源代码 dist-configure.php




下载文件

文件名: dist-configure.php
文件类型: PHP文件
文件大小: 4.22 KiB
MD5: 38a8d6df91712f11d6312d862ab78d0d

dist-configure.php - 关闭高亮
  1. <?php
  2. /**
  3.  * dist-configure.php
  4.  *
  5.  * @package Configuration Settings
  6.  * @package Admin
  7.  * @copyright Copyright 2003-2007 Zen Cart Development Team
  8.  * @copyright Portions Copyright 2003 osCommerce
  9.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  10.  * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
  11.  * @private
  12.  */
  13.  
  14. // Define the webserver and path parameters
  15. // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
  16. // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  17. // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
  18. // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  19. /*
  20.  * URL's for your site will be built via:  
  21.  *     HTTP_SERVER plus DIR_WS_ADMIN or
  22.  *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
  23.  *     HTTP_SERVER plus DIR_WS_CATALOG or
  24.  *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
  25.  * ...depending on your system configuration settings
  26.  *
  27.  * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
  28.  */
  29.   define('HTTP_SERVER', 'http://localhost');
  30.   define('HTTPS_SERVER', 'https://localhost');
  31.   define('HTTP_CATALOG_SERVER', 'http://localhost');
  32.   define('HTTPS_CATALOG_SERVER', 'https://localhost');
  33.  
  34.   // secure webserver for catalog module and/or admin areas?
  35.   define('ENABLE_SSL_CATALOG', 'false');
  36.   define('ENABLE_SSL_ADMIN', 'false');
  37.  
  38. // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
  39.  
  40. // * DIR_WS_* = Webserver directories (virtual/URL)
  41.   // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  42.   define('DIR_WS_ADMIN', '/admin/');
  43.   define('DIR_WS_CATALOG', '/');
  44.   define('DIR_WS_HTTPS_ADMIN', '/admin/');
  45.   define('DIR_WS_HTTPS_CATALOG', '/');
  46.  
  47.   define('DIR_WS_IMAGES', 'images/');
  48.   define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  49.   define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  50.   define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  51.   define('DIR_WS_INCLUDES', 'includes/');
  52.   define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  53.   define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  54.   define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  55.   define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  56.   define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  57.   define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
  58.  
  59. // * DIR_FS_* = Filesystem directories (local/physical)
  60.   //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  61.   define('DIR_FS_ADMIN', '/admin/');
  62.   define('DIR_FS_CATALOG', '/');
  63.  
  64.   define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  65.   define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  66.   define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  67.   define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  68.   define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  69.   define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  70.   define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  71.  
  72. // define our database connection
  73.   define('DB_TYPE', 'mysql');
  74.   define('DB_PREFIX', 'zen_');
  75.   define('DB_SERVER', 'localhost');
  76.   define('DB_SERVER_USERNAME', 'root');
  77.   define('DB_SERVER_PASSWORD', '');
  78.   define('DB_DATABASE', '');
  79.   define('USE_PCONNECT', 'false');
  80.   define('STORE_SESSIONS', 'db');
  81.   // use 'db' for best support, or '' for file-based storage
  82.  
  83.   // The next 2 "defines" are for SQL cache support.
  84.   // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  85.   // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
  86.   // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  87.   // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
  88.   define('SQL_CACHE_METHOD', 'none');
  89.   define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
  90.  
  91. ?>