[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 源代码 admin_configure.php

Zen Cart 源代码 admin_configure.php




下载文件

文件名: admin_configure.php
文件类型: PHP文件
文件大小: 6.53 KiB
MD5: 3b260be3f98dc50916f50b12900c16b2

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