[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.64 KiB
MD5: a8e52a73492b1505f356b3d0e8afb16d

dist-configure.php - 关闭高亮
  1. <?php
  2. /**
  3.  * dist-configure.php
  4.  * SAMPLE (but NOT FUNCTIONAL) file
  5.  *
  6.  * @package Configuration Settings
  7.  * @package Admin
  8.  * @copyright Copyright 2003-2014 Zen Cart Development Team
  9.  * @copyright Portions Copyright 2003 osCommerce
  10.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  11.  * @version GIT: $Id: Author: DrByte  Modified in v1.5.4 $
  12.  * @private
  13.  */
  14. /**
  15.  * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
  16.  * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
  17.  */
  18.   define('HTTP_SERVER', 'http://localhost');
  19.   define('HTTPS_SERVER', 'https://localhost');
  20.   define('HTTP_CATALOG_SERVER', 'http://localhost');
  21.   define('HTTPS_CATALOG_SERVER', 'https://localhost');
  22.  
  23.   // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
  24.   define('ENABLE_SSL_ADMIN', 'false');
  25.  
  26.   // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
  27.   define('ENABLE_SSL_CATALOG', 'false');
  28.  
  29.  
  30.   define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  31.   define('DIR_WS_CATALOG', '/');
  32.   define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  33.   define('DIR_WS_HTTPS_CATALOG', '/');
  34.  
  35. // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
  36. // * DIR_WS_* = Webserver directories (virtual/URL)
  37.   // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  38.   define('DIR_WS_IMAGES', 'images/');
  39.   define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  40.   define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  41.   define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  42.   define('DIR_WS_INCLUDES', 'includes/');
  43.   define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  44.   define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  45.   define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  46.   define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  47.   define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
  48.  
  49. // * DIR_FS_* = Filesystem directories (local/physical)
  50.   define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/'));
  51.  
  52.   define('DIR_FS_CATALOG', '/');
  53.  
  54.   //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
  55.   define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs');
  56.  
  57.   define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  58.   define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  59.   define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  60.   define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  61.   define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  62.   define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  63.   define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  64.  
  65. // define our database connection
  66.   define('DB_TYPE', 'mysql');
  67.   define('DB_PREFIX', '');
  68.   define('DB_CHARSET', 'utf8');
  69.   define('DB_SERVER', 'localhost');
  70.   define('DB_SERVER_USERNAME', '');
  71.   define('DB_SERVER_PASSWORD', '');
  72.   define('DB_DATABASE', '');
  73.  
  74.   // The next 2 "defines" are for SQL cache support.
  75.   // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  76.   // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
  77.   // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  78.   // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
  79.   define('SQL_CACHE_METHOD', 'none');
  80.   define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
  81.  
  82.  
  83. //Explanations of the webserver and path parameters:
  84. // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
  85. // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  86. // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
  87. // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  88. /*
  89.  * URLs for your site will be built via:
  90.  *     HTTP_SERVER plus DIR_WS_ADMIN or
  91.  *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
  92.  *     HTTP_SERVER plus DIR_WS_CATALOG or
  93.  *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
  94.  * ...depending on your system configuration settings
  95.  */