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

Zen Cart 源代码 store_configure.php




下载文件

文件名: store_configure.php
文件类型: PHP文件
文件大小: 4.83 KiB
MD5: ee4e0042cae659c3296f91bd194da263

store_configure.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package Installer
  4.  * @access private
  5.  * @copyright Copyright 2003-2014 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 GIT: $Id: Author: DrByte  Modified in v1.5.4 $
  9.  */
  10.  
  11. $file_contents =
  12. '<'.'?php' . "\n" .
  13. '/**' . "\n" .
  14. ' * @package Configuration Settings circa 1.5.4' . "\n" .
  15. ' * @copyright Copyright 2003-2014 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 "admin" 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. '  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com' . "\n" .
  27. '  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com' . "\n" .
  28. '  define(\'HTTP_SERVER\', \'' . $http_server . '\');' . "\n" .
  29. '  define(\'HTTPS_SERVER\', \'' . $https_server . '\');' . "\n\n" .
  30. '  // Use secure webserver for checkout procedure?' . "\n" .
  31. '  define(\'ENABLE_SSL\', \'' . $this->getConfigKey('ENABLE_SSL') . '\');' . "\n\n" .
  32. '// NOTE: be sure to leave the trailing \'/\' at the end of these lines if you make changes!' . "\n" .
  33. '// * DIR_WS_* = Webserver directories (virtual/URL)' . "\n" .
  34. '  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)' . "\n" .
  35. '  define(\'DIR_WS_CATALOG\', \'' . $http_catalog . '\');' . "\n" .
  36. '  define(\'DIR_WS_HTTPS_CATALOG\', \'' . $https_catalog . '\');' . "\n\n" .
  37. '  define(\'DIR_WS_IMAGES\', \'images/\');' . "\n" .
  38. '  define(\'DIR_WS_INCLUDES\', \'includes/\');' . "\n" .
  39. '  define(\'DIR_WS_FUNCTIONS\', DIR_WS_INCLUDES . \'functions/\');' . "\n" .
  40. '  define(\'DIR_WS_CLASSES\', DIR_WS_INCLUDES . \'classes/\');' . "\n" .
  41. '  define(\'DIR_WS_MODULES\', DIR_WS_INCLUDES . \'modules/\');' . "\n" .
  42. '  define(\'DIR_WS_LANGUAGES\', DIR_WS_INCLUDES . \'languages/\');' . "\n" .
  43. '  define(\'DIR_WS_DOWNLOAD_PUBLIC\', DIR_WS_CATALOG . \'pub/\');' . "\n" .
  44. '  define(\'DIR_WS_TEMPLATES\', DIR_WS_INCLUDES . \'templates/\');' . "\n\n" .
  45. '  define(\'DIR_WS_PHPBB\', \'' . $this->getConfigKey('DIR_FS_PHPBB') . '/\');' . "\n\n" .
  46. '// * DIR_FS_* = Filesystem directories (local/physical)' . "\n" .
  47. '  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/' . "\n" .
  48. '  define(\'DIR_FS_CATALOG\', \'' . $this->getConfigKey('DIR_FS_CATALOG') . '/\');' . "\n\n" .
  49. '  //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash' . "\n" .
  50. '  define(\'DIR_FS_LOGS\', \'' . $this->getConfigKey('DIR_FS_CATALOG') . '/logs\');' . "\n\n" .
  51. '  define(\'DIR_FS_DOWNLOAD\', DIR_FS_CATALOG . \'download/\');' . "\n" .
  52. '  define(\'DIR_FS_DOWNLOAD_PUBLIC\', DIR_FS_CATALOG . \'pub/\');' . "\n" .
  53. '  define(\'DIR_WS_UPLOADS\', DIR_WS_IMAGES . \'uploads/\');' . "\n" .
  54. '  define(\'DIR_FS_UPLOADS\', DIR_FS_CATALOG . DIR_WS_UPLOADS);' . "\n" .
  55. '  define(\'DIR_FS_EMAIL_TEMPLATES\', DIR_FS_CATALOG . \'email/\');' . "\n\n" .
  56. '// define our database connection' . "\n" .
  57. '  define(\'DB_TYPE\', \'' . $this->getConfigKey('DB_TYPE'). '\');' . "\n" .
  58. '  define(\'DB_PREFIX\', \'' . $this->getConfigKey('DB_PREFIX'). '\');' . "\n" .
  59. '  define(\'DB_CHARSET\', \'' . $this->getConfigKey('DB_CHARSET'). '\');' . "\n" .
  60. '  define(\'DB_SERVER\', \'' . $this->getConfigKey('DB_SERVER') . '\');' . "\n" .
  61. '  define(\'DB_SERVER_USERNAME\', \'' . $this->getConfigKey('DB_SERVER_USERNAME') . '\');' . "\n" .
  62. '  define(\'DB_SERVER_PASSWORD\', \'' . $this->getConfigKey('DB_SERVER_PASSWORD') . '\');' . "\n" .
  63. '  define(\'DB_DATABASE\', \'' . $this->getConfigKey('DB_DATABASE') . '\');' . "\n\n" .
  64. '  // The next 2 "defines" are for SQL cache support.' . "\n" .
  65. '  // For SQL_CACHE_METHOD, you can select from:  none, database, or file' . "\n" .
  66. '  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache ' . "\n" .
  67. '  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder' . "\n" .
  68. '  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  ' . "\n" .
  69. '  define(\'SQL_CACHE_METHOD\', \'' . $this->getConfigKey('SQL_CACHE_METHOD') . '\'); ' . "\n" .
  70. '  define(\'DIR_FS_SQL_CACHE\', \'' . $this->getConfigKey('DIR_FS_SQL_CACHE') . '\');' . "\n\n" .
  71. //'?'.'>' .
  72. '// EOF';
  73.  


cron