[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.44 KiB
MD5: d37815262c97914eeac5e4cf63e0dbb7

dist-configure.php - 关闭高亮
  1. <?php
  2. /**
  3.  * SAMPLE dist-configure.php
  4.  *
  5.  * @package Configuration Settings
  6.  * @package Admin
  7.  * @copyright Copyright 2003-2012 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 GIT: $Id: Author: DrByte  Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
  11.  * @private
  12.  */
  13. /**
  14.  * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
  15.  * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
  16.  */
  17.   define('HTTP_SERVER', 'http://localhost');
  18.   define('HTTPS_SERVER', 'https://localhost');
  19.   define('HTTP_CATALOG_SERVER', 'http://localhost');
  20.   define('HTTPS_CATALOG_SERVER', 'https://localhost');
  21.  
  22.   // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
  23.   define('ENABLE_SSL_ADMIN', 'false');
  24.  
  25.   // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
  26.   define('ENABLE_SSL_CATALOG', 'false');
  27.  
  28. // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
  29. // * DIR_WS_* = Webserver directories (virtual/URL)
  30.   // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  31.   $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
  32.  
  33.   define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  34.   define('DIR_WS_CATALOG', '/');
  35.   define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  36.   define('DIR_WS_HTTPS_CATALOG', '/');
  37.  
  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', realpath(dirname(__FILE__) . '/../') . '/');
  51.   define('DIR_FS_CATALOG', '/');
  52.  
  53.   define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  54.   define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  55.   define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  56.   define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  57.   define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  58.   define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  59.   define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  60.  
  61. // define our database connection
  62.   define('DB_TYPE', 'mysql');
  63.   define('DB_PREFIX', '');
  64.   define('DB_CHARSET', 'utf8');
  65.   define('DB_SERVER', 'localhost');
  66.   define('DB_SERVER_USERNAME', '');
  67.   define('DB_SERVER_PASSWORD', '');
  68.   define('DB_DATABASE', '');
  69.  
  70.   // The next 2 "defines" are for SQL cache support.
  71.   // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  72.   // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
  73.   // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  74.   // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
  75.   define('SQL_CACHE_METHOD', 'none');
  76.   define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
  77.  
  78.  
  79. //Explanations of the webserver and path parameters:
  80. // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
  81. // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  82. // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
  83. // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com
  84. /*
  85.  * URLs for your site will be built via:
  86.  *     HTTP_SERVER plus DIR_WS_ADMIN or
  87.  *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
  88.  *     HTTP_SERVER plus DIR_WS_CATALOG or
  89.  *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
  90.  * ...depending on your system configuration settings
  91.  */