[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * @package Installer 4 * @access private 5 * @copyright Copyright 2003-2006 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 4812 2006-10-23 01:57:45Z drbyte $ 9 */ 10 11 12 $file_contents = 13 '<'.'?php' . "\n" . 14 '//' . "\n" . 15 16 '/**' . "\n" . 17 ' *' . "\n" . 18 ' * @package Configuration Settings' . "\n" . 19 ' * @copyright Copyright 2003-2006 Zen Cart Development Team' . "\n" . 20 ' * @copyright Portions Copyright 2003 osCommerce' . "\n" . 21 ' * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0' . "\n" . 22 ' */' . "\n" . 23 '' . "\n" . 24 '' . "\n" . 25 '' . '/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/' . "\n" . 26 '' . '/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/' . "\n" . 27 '' . "\n" . 28 '// Define the webserver and path parameters' . "\n" . 29 ' // Main webserver: eg, http://localhost - should not be empty for productive servers' . "\n" . 30 ' // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com' . "\n" . 31 ' // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com' . "\n" . 32 ' // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com' . "\n" . 33 ' // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com' . "\n" . 34 ' /* ' . "\n" . 35 ' * URLs for your site will be built via: ' . "\n" . 36 ' * HTTP_SERVER plus DIR_WS_ADMIN or' . "\n" . 37 ' * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or ' . "\n" . 38 ' * HTTP_SERVER plus DIR_WS_CATALOG or ' . "\n" . 39 ' * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG' . "\n" . 40 ' * ...depending on your system configuration settings' . "\n" . 41 ' */' . "\n" . 42 ' define(\'HTTP_SERVER\', \'' . $http_server . '\');' . "\n" . 43 ' define(\'HTTPS_SERVER\', \'' . $https_server . '\');' . "\n" . 44 ' define(\'HTTP_CATALOG_SERVER\', \'' . $http_server . '\');' . "\n" . 45 ' define(\'HTTPS_CATALOG_SERVER\', \'' . $https_server . '\');' . "\n\n" . 46 ' // Use secure webserver for catalog module and/or admin areas?' . "\n" . 47 ' define(\'ENABLE_SSL_CATALOG\', \'' . $_GET['enable_ssl'] . '\');' . "\n" . 48 ' define(\'ENABLE_SSL_ADMIN\', \'' . $_GET['enable_ssl_admin'] . '\');' . "\n" . 49 '' . "\n" . 50 '// NOTE: be sure to leave the trailing \'/\' at the end of these lines if you make changes!' . "\n" . 51 '// * DIR_WS_* = Webserver directories (virtual/URL)' . "\n" . 52 ' // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)' . "\n" . 53 ' define(\'DIR_WS_ADMIN\', \'' . $http_catalog . 'admin/\');' . "\n" . 54 ' define(\'DIR_WS_CATALOG\', \'' . $http_catalog . '\');' . "\n" . 55 ' define(\'DIR_WS_HTTPS_ADMIN\', \'' . $https_catalog . 'admin/\');' . "\n" . 56 ' define(\'DIR_WS_HTTPS_CATALOG\', \'' . $https_catalog . '\');' . "\n\n" . 57 ' define(\'DIR_WS_IMAGES\', \'images/\');' . "\n" . 58 ' define(\'DIR_WS_ICONS\', DIR_WS_IMAGES . \'icons/\');' . "\n" . 59 ' define(\'DIR_WS_CATALOG_IMAGES\', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . \'images/\');' . "\n" . 60 ' define(\'DIR_WS_CATALOG_TEMPLATE\', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . \'includes/templates/\');' . "\n" . 61 ' define(\'DIR_WS_INCLUDES\', \'includes/\');' . "\n" . 62 ' define(\'DIR_WS_BOXES\', DIR_WS_INCLUDES . \'boxes/\');' . "\n" . 63 ' define(\'DIR_WS_FUNCTIONS\', DIR_WS_INCLUDES . \'functions/\');' . "\n" . 64 ' define(\'DIR_WS_CLASSES\', DIR_WS_INCLUDES . \'classes/\');' . "\n" . 65 ' define(\'DIR_WS_MODULES\', DIR_WS_INCLUDES . \'modules/\');' . "\n" . 66 ' define(\'DIR_WS_LANGUAGES\', DIR_WS_INCLUDES . \'languages/\');' . "\n" . 67 ' define(\'DIR_WS_CATALOG_LANGUAGES\', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . \'includes/languages/\');' . "\n" . 68 '' . "\n" . 69 '// * DIR_FS_* = Filesystem directories (local/physical)' . "\n" . 70 ' //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/' . "\n" . 71 ' define(\'DIR_FS_ADMIN\', \'' . $_GET['physical_path'] . '/admin/\');' . "\n" . 72 ' define(\'DIR_FS_CATALOG\', \'' . $_GET['physical_path'] . '/\');' . "\n\n" . 73 ' define(\'DIR_FS_CATALOG_LANGUAGES\', DIR_FS_CATALOG . \'includes/languages/\');' . "\n" . 74 ' define(\'DIR_FS_CATALOG_IMAGES\', DIR_FS_CATALOG . \'images/\');' . "\n" . 75 ' define(\'DIR_FS_CATALOG_MODULES\', DIR_FS_CATALOG . \'includes/modules/\');' . "\n" . 76 ' define(\'DIR_FS_CATALOG_TEMPLATES\', DIR_FS_CATALOG . \'includes/templates/\');' . "\n" . 77 ' define(\'DIR_FS_BACKUP\', DIR_FS_ADMIN . \'backups/\');' . "\n" . 78 ' define(\'DIR_FS_EMAIL_TEMPLATES\', DIR_FS_CATALOG . \'email/\');' . "\n" . 79 ' define(\'DIR_FS_DOWNLOAD\', DIR_FS_CATALOG . \'download/\');' . "\n" . 80 '' . "\n" . 81 '// define our database connection' . "\n" . 82 ' define(\'DB_TYPE\', \'' . $_POST['db_type']. '\');' . "\n" . 83 ' define(\'DB_PREFIX\', \'' . $_POST['db_prefix']. '\');' . "\n" . 84 ' define(\'DB_SERVER\', \'' . $_POST['db_host'] . '\');' . "\n" . 85 ' define(\'DB_SERVER_USERNAME\', \'' . $_POST['db_username'] . '\');' . "\n" . 86 ' define(\'DB_SERVER_PASSWORD\', \'' . $_POST['db_pass'] . '\');' . "\n" . 87 ' define(\'DB_DATABASE\', \'' . $_POST['db_name'] . '\');' . "\n" . 88 ' define(\'USE_PCONNECT\', \'false\'); // use persistent connections?' . "\n" . 89 ' define(\'STORE_SESSIONS\', \'' . $_POST['db_sess'] . '\'); // use \'db\' for best support, or \'\' for file-based storage' . "\n\n" . 90 ' // The next 2 "defines" are for SQL cache support.' . "\n" . 91 ' // For SQL_CACHE_METHOD, you can select from: none, database, or file' . "\n" . 92 ' // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache ' . "\n" . 93 ' // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder' . "\n" . 94 ' // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash ' . "\n" . 95 ' define(\'SQL_CACHE_METHOD\', \'' . $_POST['cache_type'] . '\'); ' . "\n" . 96 ' define(\'DIR_FS_SQL_CACHE\', \'' . $_POST['sql_cache_dir'] . '\');' . "\n\n" . 97 '?'.'>'; 98 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |