-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.local.php
executable file
·149 lines (126 loc) · 5.05 KB
/
config.local.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
* PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
****************************************************************************/
if (!defined('BOOTSTRAP')) { die('Access denied'); }
/*
* PHP options
*/
// Log everything, but do not display
error_reporting(E_ALL);
ini_set('display_errors', 0);
// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
// 32bit PHP
@ini_set('memory_limit', '64M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
// 64bit PHP
@ini_set('memory_limit', '256M');
}
if (!defined('CONSOLE')) {
// Set maximum time limit for script execution.
@set_time_limit(3600);
}
/*
* Database connection options
*/
$config['db_host'] = 'localhost';
$config['db_name'] = 'cscart';
$config['db_user'] = 'root';
$config['db_password'] = 'root';
$config['database_backend'] = 'mysqli';
// Database tables prefix
$config['table_prefix'] = 'cscart_';
/*
* Script location options
*
* Example:
* Your url is http://www.yourcompany.com/store/cart
* $config['http_host'] = 'www.yourcompany.com';
* $config['http_path'] = '/store/cart';
*
* Your secure url is https://secure.yourcompany.com/secure_dir/cart
* $config['https_host'] = 'secure.yourcompany.com';
* $config['https_path'] = '/secure_dir/cart';
*
*/
// Host and directory where software is installed on no-secure server
$config['http_host'] = 'localhost';
$config['http_path'] = '/workspace/cscart';
// Host and directory where software is installed on secure server
$config['https_host'] = 'localhost';
$config['https_path'] = '/workspace/cscart';
/*
* Misc options
*/
// Names of index files for the frontend and backend
$config['customer_index'] = 'index.php';
$config['admin_index'] = 'admin.php';
// DEMO mode
$config['demo_mode'] = false;
// Tweaks
$config['tweaks'] = array (
'anti_csrf' => false, // protect forms from CSRF attacks
'disable_block_cache' => false, // used to disable block cache
'disable_localizations' => true, // Disable Localizations functionality
'disable_dhtml' => false, // Disable Ajax-based pagination and Ajax-based "Add to cart" button
'gzip_css_js' => false, // gzip compiled css/js files
'dev_js' => false, // set to true to disable js files compilation
'redirect_to_cart' => false, // Redirect customer to the cart contents page. Used with the "disable_dhtml" setting.
'api_https_only' => false, // Allows the use the API functionality only by the HTTPS protocol
'api_allow_customer' => false, // Allow open API for unauthorized customers
'lazy_thumbnails' => false, // generate image thumbnails on the fly
);
// Key for sensitive data encryption
$config['crypt_key'] = '4MZtezvqYa';
// Cache backend
// Available backends: file, sqlite, database, redis
// To use sqlite cache the "sqlite3" PHP module should be installed
$config['cache_backend'] = 'file';
$config['cache_redis_server'] = 'localhost';
$config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size
// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'database';
$config['session_redis_server'] = 'localhost';
// CDN server backend
$config['cdn_backend'] = 'cloudfront';
// Storage options
$config['storage'] = array(
'images' => array(
'prefix' => 'images',
'dir' => $config['dir']['root'],
'cdn' => true
),
'downloads' => array(
'prefix' => 'downloads',
'secured' => true,
'dir' => $config['dir']['var']
),
'statics' => array(
'dir' => & $config['dir']['cache_misc'],
'prefix' => 'statics',
'cdn' => true
),
'custom_files' => array(
'dir' => & $config['dir']['var'],
'prefix' => 'custom_files'
)
);
// Default permissions for newly created files and directories
define('DEFAULT_FILE_PERMISSIONS', 0666);
define('DEFAULT_DIR_PERMISSIONS', 0777);
// Maximum number of files, stored in directory. You may change this parameter straight after a store was installed. And you must not change it when the store has been populated with products already.
define('MAX_FILES_IN_DIR', 1000);
// Developer configuration file
if (file_exists(DIR_ROOT . '/local_conf.php')) {
include_once(DIR_ROOT . '/local_conf.php');
}