PageRenderTime 125ms CodeModel.GetById 81ms app.highlight 9ms RepoModel.GetById 31ms app.codeStats 0ms

/app/config/config.example.php

https://bitbucket.org/nanomites_webdev/heroframework
PHP | 435 lines | 75 code | 48 blank | 312 comment | 8 complexity | f83fafc1e7349e181cd267391731ccf0 MD5 | raw file
  1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2
  3/* BEGIN MANDATORY CONFIGURATION */
  4/* The following variables are configured automatically with the installation wizard. */
  5
  6/*
  7|--------------------------------------------------------------------------
  8| Base Site URL
  9|--------------------------------------------------------------------------
 10|
 11| URL to your CodeIgniter root. Typically this will be your base URL,
 12| WITH a trailing slash:
 13|
 14|	http://example.com/
 15|
 16*/
 17$config['base_url']	= "";
 18
 19// rewrite base URL to SSL if accessed via SSL
 20if ($_SERVER["SERVER_PORT"] == "443" or (isset($_SERVER['https']) and $_SERVER['HTTPS'] == 'on')) {
 21	$config['base_url'] = str_replace('http://','https://',$config['base_url']);
 22}
 23
 24/*
 25|--------------------------------------------------------------------------
 26| Encryption Key
 27|--------------------------------------------------------------------------
 28|
 29| If you use the Encryption class or the Sessions class with encryption
 30| enabled you MUST set an encryption key.  See the user guide for info.
 31|
 32*/
 33$config['encryption_key'] = "10101010101010101010101010";
 34$config['cron_key'] = '0000000000000000';
 35
 36/* END MANDATORY CONFIGURATION */
 37
 38/*
 39|--------------------------------------------------------------------------
 40| Branding Config
 41|--------------------------------------------------------------------------
 42|
 43*/
 44$config['app_name'] = 'Hero';
 45$config['app_link'] = 'http://www.heroframework.com/';
 46$config['app_support'] = 'http://www.heroframework.com/support';
 47$config['default_theme'] = 'electric';
 48
 49/*
 50|--------------------------------------------------------------------------
 51| App Paths
 52|--------------------------------------------------------------------------
 53|
 54*/
 55$config['path_writeable'] = FCPATH . 'writeable/';
 56$config['path_product_files'] = $config['path_writeable'] . 'product_files/';
 57$config['path_product_images'] = $config['path_writeable'] . 'product_images/';
 58$config['path_editor_uploads'] = $config['path_writeable'] . 'editor_uploads/';
 59$config['path_custom_field_uploads'] = $config['path_writeable'] . 'custom_uploads/';
 60$config['path_image_thumbs'] = $config['path_writeable'] . 'image_thumbs/';
 61$config['path_email_templates'] = $config['path_writeable'] . 'email_templates/';
 62
 63/*
 64|--------------------------------------------------------------------------
 65| Miscellaneous
 66|--------------------------------------------------------------------------
 67|
 68*/
 69$config['upload_max'] = ini_get('upload_max_filesize');
 70if (ini_get('post_max_size') != '' and (ini_get('post_max_size') < $config['upload_max'])) {
 71	$config['upload_max'] = ini_get('post_max_size');
 72}
 73
 74// not all servers allow 0777 folders/files, this may have to be 0755
 75$config['write_mode'] = 0777;
 76
 77// how many times can a purchased download be downloaded?
 78$config['maximum_downloads_per_purchase'] = 2;
 79
 80// specify an image library to use.  leave blank to autodetect.
 81// options: GD, GD2, ImageMagick
 82$config['image_library'] = '';
 83
 84// if you specified ImageMagick or NetPBM, you must specify the path
 85$config['image_library_path'] = '';
 86
 87// secure routes (these will be redirected to HTTPS if you have an SSL certificate)
 88$config['secure_modules'] = array('users','checkout');
 89
 90// if enabled, the debugger will display a profile of all queries, memory usage, and other
 91// useful information upon each page load
 92$config['debug_profiler'] = FALSE;
 93
 94// the earliest time to run the billing cron job for subscription maintenance
 95// 24 hour clock, no leading zero, uses system time
 96$config['billing_cron_time'] = 11;
 97
 98// should we make sure that only one user is logged into an account at the same time?
 99$config['duplicate_login_check'] = 'yes';
100
101// allow special characters in usernames (e.g., for email addresses)?
102$config['username_allow_special_characters'] = FALSE;
103
104/*
105|--------------------------------------------------------------------------
106| Advanced Configuration for the Truly Bold
107|--------------------------------------------------------------------------
108|
109*/
110
111$config['max_recurring_days_from_today'] = 1095;
112
113// do not edit either of these unless you plan on also modifying lots of core files
114$config['query_result_default_limit'] = 100;
115$config['recurring_charge_failures_allowed'] = 1;
116
117/*
118|--------------------------------------------------------------------------
119|--------------------------------------------------------------------------
120|------------- STANDARD CODEIGNITER CONFIGURATION BELOW -------------------
121|--------------------------------------------------------------------------
122|--------------------------------------------------------------------------
123*/
124
125/*
126|--------------------------------------------------------------------------
127| Index File
128|--------------------------------------------------------------------------
129|
130| Typically this will be your index.php file, unless you've renamed it to
131| something else. If you are using mod_rewrite to remove the page set this
132| variable so that it is blank.
133|
134*/
135$config['index_page'] = "";
136
137/*
138|--------------------------------------------------------------------------
139| URI PROTOCOL
140|--------------------------------------------------------------------------
141|
142| This item determines which server global should be used to retrieve the
143| URI string.  The default setting of "AUTO" works for most servers.
144| If your links do not seem to work, try one of the other delicious flavors:
145|
146| 'AUTO'			Default - auto detects
147| 'PATH_INFO'		Uses the PATH_INFO
148| 'QUERY_STRING'	Uses the QUERY_STRING
149| 'REQUEST_URI'		Uses the REQUEST_URI
150| 'ORIG_PATH_INFO'	Uses the ORIG_PATH_INFO
151|
152*/
153$config['uri_protocol']	= "AUTO";
154
155/*
156|--------------------------------------------------------------------------
157| URL suffix
158|--------------------------------------------------------------------------
159|
160| This option allows you to add a suffix to all URLs generated by CodeIgniter.
161| For more information please see the user guide:
162|
163| http://codeigniter.com/user_guide/general/urls.html
164*/
165
166$config['url_suffix'] = "";
167
168/*
169|--------------------------------------------------------------------------
170| Default Language
171|--------------------------------------------------------------------------
172|
173| This determines which set of language files should be used. Make sure
174| there is an available translation if you intend to use something other
175| than english.
176|
177*/
178$config['language']	= "english";
179
180/*
181|--------------------------------------------------------------------------
182| Default Character Set
183|--------------------------------------------------------------------------
184|
185| This determines which character set is used by default in various methods
186| that require a character set to be provided.
187|
188*/
189$config['charset'] = "UTF-8";
190
191/*
192|--------------------------------------------------------------------------
193| Enable/Disable System Hooks
194|--------------------------------------------------------------------------
195|
196| If you would like to use the "hooks" feature you must enable it by
197| setting this variable to TRUE (boolean).  See the user guide for details.
198|
199*/
200$config['enable_hooks'] = TRUE;
201
202
203/*
204|--------------------------------------------------------------------------
205| Class Extension Prefix
206|--------------------------------------------------------------------------
207|
208| This item allows you to set the filename/classname prefix when extending
209| native libraries.  For more information please see the user guide:
210|
211| http://codeigniter.com/user_guide/general/core_classes.html
212| http://codeigniter.com/user_guide/general/creating_libraries.html
213|
214*/
215$config['subclass_prefix'] = 'MY_';
216
217
218/*
219|--------------------------------------------------------------------------
220| Allowed URL Characters
221|--------------------------------------------------------------------------
222|
223| This lets you specify with a regular expression which characters are permitted
224| within your URLs.  When someone tries to submit a URL with disallowed
225| characters they will get a warning message.
226|
227| As a security measure you are STRONGLY encouraged to restrict URLs to
228| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
229|
230| Leave blank to allow all characters -- but only if you are insane.
231|
232| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
233|
234*/
235$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\=';
236
237
238/*
239|--------------------------------------------------------------------------
240| Enable Query Strings
241|--------------------------------------------------------------------------
242|
243| By default CodeIgniter uses search-engine friendly segment based URLs:
244| example.com/who/what/where/
245|
246| You can optionally enable standard query string based URLs:
247| example.com?who=me&what=something&where=here
248|
249| Options are: TRUE or FALSE (boolean)
250|
251| The other items let you set the query string "words" that will
252| invoke your controllers and its functions:
253| example.com/index.php?c=controller&m=function
254|
255| Please note that some of the helpers won't work as expected when
256| this feature is enabled, since CodeIgniter is designed primarily to
257| use segment based URLs.
258|
259*/
260$config['enable_query_strings'] = FALSE;
261$config['controller_trigger'] 	= 'c';
262$config['function_trigger'] 	= 'm';
263$config['directory_trigger'] 	= 'd'; // experimental not currently in use
264
265/*
266|--------------------------------------------------------------------------
267| Error Logging Threshold
268|--------------------------------------------------------------------------
269|
270| If you have enabled error logging, you can set an error threshold to 
271| determine what gets logged. Threshold options are:
272| You can enable error logging by setting a threshold over zero. The
273| threshold determines what gets logged. Threshold options are:
274|
275|	0 = Disables logging, Error logging TURNED OFF
276|	1 = Error Messages (including PHP errors)
277|	2 = Debug Messages
278|	3 = Informational Messages
279|	4 = All Messages
280|
281| For a live site you'll usually only enable Errors (1) to be logged otherwise
282| your log files will fill up very fast.
283|
284*/
285$config['log_threshold'] = 0;
286
287/*
288|--------------------------------------------------------------------------
289| Error Logging Directory Path
290|--------------------------------------------------------------------------
291|
292| Leave this BLANK unless you would like to set something other than the default
293| /app/logs/ folder.  Use a full server path with trailing slash.
294|
295*/
296$config['log_path'] = '';
297
298/*
299|--------------------------------------------------------------------------
300| Date Format for Logs
301|--------------------------------------------------------------------------
302|
303| Each item that is logged has an associated date. You can use PHP date
304| codes to set your own date formatting
305|
306*/
307$config['log_date_format'] = 'Y-m-d H:i:s';
308
309/*
310|--------------------------------------------------------------------------
311| Cache Directory Path
312|--------------------------------------------------------------------------
313|
314| Leave this BLANK unless you would like to set something other than the default
315| /app/cache/ folder.  Use a full server path with trailing slash.
316|
317*/
318$config['cache_path'] = '';
319
320/*
321|--------------------------------------------------------------------------
322| Session Variables
323|--------------------------------------------------------------------------
324|
325| 'session_cookie_name' = the name you want for the cookie
326| 'encrypt_sess_cookie' = TRUE/FALSE (boolean).  Whether to encrypt the cookie
327| 'session_expiration'  = the number of SECONDS you want the session to last.
328|  by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
329| 'time_to_update'		= how many seconds between CI refreshing Session Information
330|
331*/
332$config['sess_cookie_name']		= 'ci_session';
333$config['sess_expiration']		= 86400;
334$config['sess_encrypt_cookie']	= FALSE;
335$config['sess_use_database']	= TRUE;
336$config['sess_table_name']		= 'ci_sessions';
337$config['sess_match_ip']		= FALSE;
338$config['sess_match_useragent']	= TRUE;
339$config['sess_time_to_update'] 	= 300;
340
341/*
342|--------------------------------------------------------------------------
343| Cookie Related Variables
344|--------------------------------------------------------------------------
345|
346| 'cookie_prefix' = Set a prefix if you need to avoid collisions
347| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
348| 'cookie_path'   =  Typically will be a forward slash
349|
350*/
351if (!empty($config['base_url'])) {
352	$config['cookie_prefix']	= '';
353	$parsed_url = parse_url($config['base_url']);
354	$host = $parsed_url['host'];
355	$config['cookie_domain']	= $host;
356	$config['cookie_path']		= (empty($parsed_url['path'])) ? "/" : $parsed_url['path'];
357}
358else {
359	$config['cookie_prefix']	= '';
360	$config['cookie_domain']	= '';
361	$config['cookie_path']		= '/';
362}
363
364/*
365|--------------------------------------------------------------------------
366| Global XSS Filtering
367|--------------------------------------------------------------------------
368|
369| Determines whether the XSS filter is always active when GET, POST or
370| COOKIE data is encountered
371|
372*/
373$config['global_xss_filtering'] = FALSE;
374
375/*
376|--------------------------------------------------------------------------
377| Output Compression
378|--------------------------------------------------------------------------
379|
380| Enables Gzip output compression for faster page loads.  When enabled,
381| the output class will test whether your server supports Gzip.
382| Even if it does, however, not all browsers support compression
383| so enable only if you are reasonably sure your visitors can handle it.
384|
385| VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
386| means you are prematurely outputting something to your browser. It could
387| even be a line of whitespace at the end of one of your scripts.  For
388| compression to work, nothing can be sent before the output buffer is called
389| by the output class.  Do not "echo" any values with compression enabled.
390|
391*/
392$config['compress_output'] = FALSE;
393
394/*
395|--------------------------------------------------------------------------
396| Master Time Reference
397|--------------------------------------------------------------------------
398|
399| Options are "local" or "gmt".  This pref tells the system whether to use
400| your server's local time as the master "now" reference, or convert it to
401| GMT.  See the "date helper" page of the user guide for information
402| regarding date handling.
403|
404*/
405$config['time_reference'] = 'gmt';
406
407
408/*
409|--------------------------------------------------------------------------
410| Rewrite PHP Short Tags
411|--------------------------------------------------------------------------
412|
413| If your PHP installation does not have short tag support enabled CI
414| can rewrite the tags on-the-fly, enabling you to utilize that syntax
415| in your view files.  Options are TRUE or FALSE (boolean)
416|
417*/
418$config['rewrite_short_tags'] = TRUE;
419
420
421/*
422|--------------------------------------------------------------------------
423| Reverse Proxy IPs
424|--------------------------------------------------------------------------
425|
426| If your server is behind a reverse proxy, you must whitelist the proxy IP
427| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
428| header in order to properly identify the visitor's IP address.
429| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
430|
431*/
432$config['proxy_ips'] = '';
433
434/* End of file config.php */
435/* Location: ./app/config/config.php */