Nermosis 3 лет назад
Родитель
Сommit
261dc29812
2 измененных файлов: 94 добавлений и 94 удалений
  1. 88 88
      application/config/config.php
  2. 6 6
      application/config/database.php

+ 88 - 88
application/config/config.php Просмотреть файл

1
 <?php
1
 <?php
2
-defined('BASEPATH') OR exit('No direct script access allowed');
2
+defined('BASEPATH') or exit('No direct script access allowed');
3
 
3
 
4
 /*
4
 /*
5
 |--------------------------------------------------------------------------
5
 |--------------------------------------------------------------------------
9
 | URL to your CodeIgniter root. Typically this will be your base URL,
9
 | URL to your CodeIgniter root. Typically this will be your base URL,
10
 | WITH a trailing slash:
10
 | WITH a trailing slash:
11
 |
11
 |
12
-|	http://example.com/
12
+|    http://example.com/
13
 |
13
 |
14
 | WARNING: You MUST set this value!
14
 | WARNING: You MUST set this value!
15
 |
15
 |
22
 | If you need to allow multiple domains, remember that this file is still
22
 | If you need to allow multiple domains, remember that this file is still
23
 | a PHP script and you can easily do that on your own.
23
 | a PHP script and you can easily do that on your own.
24
 |
24
 |
25
-*/
25
+ */
26
 $config['base_url'] = '';
26
 $config['base_url'] = '';
27
 
27
 
28
 /*
28
 /*
34
 | something else. If you are using mod_rewrite to remove the page set this
34
 | something else. If you are using mod_rewrite to remove the page set this
35
 | variable so that it is blank.
35
 | variable so that it is blank.
36
 |
36
 |
37
-*/
37
+ */
38
 $config['index_page'] = 'index.php';
38
 $config['index_page'] = 'index.php';
39
 
39
 
40
 /*
40
 /*
51
 | 'PATH_INFO'      Uses $_SERVER['PATH_INFO']
51
 | 'PATH_INFO'      Uses $_SERVER['PATH_INFO']
52
 |
52
 |
53
 | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
53
 | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
54
-*/
55
-$config['uri_protocol']	= 'REQUEST_URI';
54
+ */
55
+$config['uri_protocol'] = 'REQUEST_URI';
56
 
56
 
57
 /*
57
 /*
58
 |--------------------------------------------------------------------------
58
 |--------------------------------------------------------------------------
63
 | For more information please see the user guide:
63
 | For more information please see the user guide:
64
 |
64
 |
65
 | https://codeigniter.com/user_guide/general/urls.html
65
 | https://codeigniter.com/user_guide/general/urls.html
66
-*/
66
+ */
67
 $config['url_suffix'] = '';
67
 $config['url_suffix'] = '';
68
 
68
 
69
 /*
69
 /*
75
 | there is an available translation if you intend to use something other
75
 | there is an available translation if you intend to use something other
76
 | than english.
76
 | than english.
77
 |
77
 |
78
-*/
79
-$config['language']	= 'english';
78
+ */
79
+$config['language'] = 'english';
80
 
80
 
81
 /*
81
 /*
82
 |--------------------------------------------------------------------------
82
 |--------------------------------------------------------------------------
88
 |
88
 |
89
 | See http://php.net/htmlspecialchars for a list of supported charsets.
89
 | See http://php.net/htmlspecialchars for a list of supported charsets.
90
 |
90
 |
91
-*/
91
+ */
92
 $config['charset'] = 'UTF-8';
92
 $config['charset'] = 'UTF-8';
93
 
93
 
94
 /*
94
 /*
99
 | If you would like to use the 'hooks' feature you must enable it by
99
 | If you would like to use the 'hooks' feature you must enable it by
100
 | setting this variable to TRUE (boolean).  See the user guide for details.
100
 | setting this variable to TRUE (boolean).  See the user guide for details.
101
 |
101
 |
102
-*/
103
-$config['enable_hooks'] = FALSE;
102
+ */
103
+$config['enable_hooks'] = false;
104
 
104
 
105
 /*
105
 /*
106
 |--------------------------------------------------------------------------
106
 |--------------------------------------------------------------------------
113
 | https://codeigniter.com/user_guide/general/core_classes.html
113
 | https://codeigniter.com/user_guide/general/core_classes.html
114
 | https://codeigniter.com/user_guide/general/creating_libraries.html
114
 | https://codeigniter.com/user_guide/general/creating_libraries.html
115
 |
115
 |
116
-*/
116
+ */
117
 $config['subclass_prefix'] = 'MY_';
117
 $config['subclass_prefix'] = 'MY_';
118
 
118
 
119
 /*
119
 /*
124
 | Enabling this setting will tell CodeIgniter to look for a Composer
124
 | Enabling this setting will tell CodeIgniter to look for a Composer
125
 | package auto-loader script in application/vendor/autoload.php.
125
 | package auto-loader script in application/vendor/autoload.php.
126
 |
126
 |
127
-|	$config['composer_autoload'] = TRUE;
127
+|    $config['composer_autoload'] = TRUE;
128
 |
128
 |
129
 | Or if you have your vendor/ directory located somewhere else, you
129
 | Or if you have your vendor/ directory located somewhere else, you
130
 | can opt to set a specific path as well:
130
 | can opt to set a specific path as well:
131
 |
131
 |
132
-|	$config['composer_autoload'] = '/path/to/vendor/autoload.php';
132
+|    $config['composer_autoload'] = '/path/to/vendor/autoload.php';
133
 |
133
 |
134
 | For more information about Composer, please visit http://getcomposer.org/
134
 | For more information about Composer, please visit http://getcomposer.org/
135
 |
135
 |
136
 | Note: This will NOT disable or override the CodeIgniter-specific
136
 | Note: This will NOT disable or override the CodeIgniter-specific
137
-|	autoloading (application/config/autoload.php)
138
-*/
139
-$config['composer_autoload'] = FALSE;
137
+|    autoloading (application/config/autoload.php)
138
+ */
139
+$config['composer_autoload'] = false;
140
 
140
 
141
 /*
141
 /*
142
 |--------------------------------------------------------------------------
142
 |--------------------------------------------------------------------------
157
 |
157
 |
158
 | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
158
 | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
159
 |
159
 |
160
-*/
160
+ */
161
 $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
161
 $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
162
 
162
 
163
 /*
163
 /*
181
 | this feature is enabled, since CodeIgniter is designed primarily to
181
 | this feature is enabled, since CodeIgniter is designed primarily to
182
 | use segment based URLs.
182
 | use segment based URLs.
183
 |
183
 |
184
-*/
185
-$config['enable_query_strings'] = FALSE;
184
+ */
185
+$config['enable_query_strings'] = false;
186
 $config['controller_trigger'] = 'c';
186
 $config['controller_trigger'] = 'c';
187
 $config['function_trigger'] = 'm';
187
 $config['function_trigger'] = 'm';
188
 $config['directory_trigger'] = 'd';
188
 $config['directory_trigger'] = 'd';
198
 | WARNING: This feature is DEPRECATED and currently available only
198
 | WARNING: This feature is DEPRECATED and currently available only
199
 |          for backwards compatibility purposes!
199
 |          for backwards compatibility purposes!
200
 |
200
 |
201
-*/
202
-$config['allow_get_array'] = TRUE;
201
+ */
202
+$config['allow_get_array'] = true;
203
 
203
 
204
 /*
204
 /*
205
 |--------------------------------------------------------------------------
205
 |--------------------------------------------------------------------------
209
 | You can enable error logging by setting a threshold over zero. The
209
 | You can enable error logging by setting a threshold over zero. The
210
 | threshold determines what gets logged. Threshold options are:
210
 | threshold determines what gets logged. Threshold options are:
211
 |
211
 |
212
-|	0 = Disables logging, Error logging TURNED OFF
213
-|	1 = Error Messages (including PHP errors)
214
-|	2 = Debug Messages
215
-|	3 = Informational Messages
216
-|	4 = All Messages
212
+|    0 = Disables logging, Error logging TURNED OFF
213
+|    1 = Error Messages (including PHP errors)
214
+|    2 = Debug Messages
215
+|    3 = Informational Messages
216
+|    4 = All Messages
217
 |
217
 |
218
 | You can also pass an array with threshold levels to show individual error types
218
 | You can also pass an array with threshold levels to show individual error types
219
 |
219
 |
220
-| 	array(2) = Debug Messages, without Error Messages
220
+|     array(2) = Debug Messages, without Error Messages
221
 |
221
 |
222
 | For a live site you'll usually only enable Errors (1) to be logged otherwise
222
 | For a live site you'll usually only enable Errors (1) to be logged otherwise
223
 | your log files will fill up very fast.
223
 | your log files will fill up very fast.
224
 |
224
 |
225
-*/
226
-$config['log_threshold'] = 0;
225
+ */
226
+$config['log_threshold'] = 4;
227
 
227
 
228
 /*
228
 /*
229
 |--------------------------------------------------------------------------
229
 |--------------------------------------------------------------------------
233
 | Leave this BLANK unless you would like to set something other than the default
233
 | Leave this BLANK unless you would like to set something other than the default
234
 | application/logs/ directory. Use a full server path with trailing slash.
234
 | application/logs/ directory. Use a full server path with trailing slash.
235
 |
235
 |
236
-*/
236
+ */
237
 $config['log_path'] = '';
237
 $config['log_path'] = '';
238
 
238
 
239
 /*
239
 /*
247
 |
247
 |
248
 | Note: Leaving it blank will default to 'php'.
248
 | Note: Leaving it blank will default to 'php'.
249
 |
249
 |
250
-*/
250
+ */
251
 $config['log_file_extension'] = '';
251
 $config['log_file_extension'] = '';
252
 
252
 
253
 /*
253
 /*
259
 |
259
 |
260
 | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
260
 | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
261
 |            integer notation (i.e. 0700, 0644, etc.)
261
 |            integer notation (i.e. 0700, 0644, etc.)
262
-*/
262
+ */
263
 $config['log_file_permissions'] = 0644;
263
 $config['log_file_permissions'] = 0644;
264
 
264
 
265
 /*
265
 /*
270
 | Each item that is logged has an associated date. You can use PHP date
270
 | Each item that is logged has an associated date. You can use PHP date
271
 | codes to set your own date formatting
271
 | codes to set your own date formatting
272
 |
272
 |
273
-*/
273
+ */
274
 $config['log_date_format'] = 'Y-m-d H:i:s';
274
 $config['log_date_format'] = 'Y-m-d H:i:s';
275
 
275
 
276
 /*
276
 /*
281
 | Leave this BLANK unless you would like to set something other than the default
281
 | Leave this BLANK unless you would like to set something other than the default
282
 | application/views/errors/ directory.  Use a full server path with trailing slash.
282
 | application/views/errors/ directory.  Use a full server path with trailing slash.
283
 |
283
 |
284
-*/
284
+ */
285
 $config['error_views_path'] = '';
285
 $config['error_views_path'] = '';
286
 
286
 
287
 /*
287
 /*
292
 | Leave this BLANK unless you would like to set something other than the default
292
 | Leave this BLANK unless you would like to set something other than the default
293
 | application/cache/ directory.  Use a full server path with trailing slash.
293
 | application/cache/ directory.  Use a full server path with trailing slash.
294
 |
294
 |
295
-*/
295
+ */
296
 $config['cache_path'] = '';
296
 $config['cache_path'] = '';
297
 
297
 
298
 /*
298
 /*
303
 | Whether to take the URL query string into consideration when generating
303
 | Whether to take the URL query string into consideration when generating
304
 | output cache files. Valid options are:
304
 | output cache files. Valid options are:
305
 |
305
 |
306
-|	FALSE      = Disabled
307
-|	TRUE       = Enabled, take all query parameters into account.
308
-|	             Please be aware that this may result in numerous cache
309
-|	             files generated for the same page over and over again.
310
-|	array('q') = Enabled, but only take into account the specified list
311
-|	             of query parameters.
306
+|    FALSE      = Disabled
307
+|    TRUE       = Enabled, take all query parameters into account.
308
+|                 Please be aware that this may result in numerous cache
309
+|                 files generated for the same page over and over again.
310
+|    array('q') = Enabled, but only take into account the specified list
311
+|                 of query parameters.
312
 |
312
 |
313
-*/
314
-$config['cache_query_string'] = FALSE;
313
+ */
314
+$config['cache_query_string'] = false;
315
 
315
 
316
 /*
316
 /*
317
 |--------------------------------------------------------------------------
317
 |--------------------------------------------------------------------------
323
 |
323
 |
324
 | https://codeigniter.com/user_guide/libraries/encryption.html
324
 | https://codeigniter.com/user_guide/libraries/encryption.html
325
 |
325
 |
326
-*/
326
+ */
327
 $config['encryption_key'] = '';
327
 $config['encryption_key'] = '';
328
 
328
 
329
 /*
329
 /*
333
 |
333
 |
334
 | 'sess_driver'
334
 | 'sess_driver'
335
 |
335
 |
336
-|	The storage driver to use: files, database, redis, memcached
336
+|    The storage driver to use: files, database, redis, memcached
337
 |
337
 |
338
 | 'sess_cookie_name'
338
 | 'sess_cookie_name'
339
 |
339
 |
340
-|	The session cookie name, must contain only [0-9a-z_-] characters
340
+|    The session cookie name, must contain only [0-9a-z_-] characters
341
 |
341
 |
342
 | 'sess_expiration'
342
 | 'sess_expiration'
343
 |
343
 |
344
-|	The number of SECONDS you want the session to last.
345
-|	Setting to 0 (zero) means expire when the browser is closed.
344
+|    The number of SECONDS you want the session to last.
345
+|    Setting to 0 (zero) means expire when the browser is closed.
346
 |
346
 |
347
 | 'sess_save_path'
347
 | 'sess_save_path'
348
 |
348
 |
349
-|	The location to save sessions to, driver dependent.
349
+|    The location to save sessions to, driver dependent.
350
 |
350
 |
351
-|	For the 'files' driver, it's a path to a writable directory.
352
-|	WARNING: Only absolute paths are supported!
351
+|    For the 'files' driver, it's a path to a writable directory.
352
+|    WARNING: Only absolute paths are supported!
353
 |
353
 |
354
-|	For the 'database' driver, it's a table name.
355
-|	Please read up the manual for the format with other session drivers.
354
+|    For the 'database' driver, it's a table name.
355
+|    Please read up the manual for the format with other session drivers.
356
 |
356
 |
357
-|	IMPORTANT: You are REQUIRED to set a valid save path!
357
+|    IMPORTANT: You are REQUIRED to set a valid save path!
358
 |
358
 |
359
 | 'sess_match_ip'
359
 | 'sess_match_ip'
360
 |
360
 |
361
-|	Whether to match the user's IP address when reading the session data.
361
+|    Whether to match the user's IP address when reading the session data.
362
 |
362
 |
363
-|	WARNING: If you're using the database driver, don't forget to update
364
-|	         your session table's PRIMARY KEY when changing this setting.
363
+|    WARNING: If you're using the database driver, don't forget to update
364
+|             your session table's PRIMARY KEY when changing this setting.
365
 |
365
 |
366
 | 'sess_time_to_update'
366
 | 'sess_time_to_update'
367
 |
367
 |
368
-|	How many seconds between CI regenerating the session ID.
368
+|    How many seconds between CI regenerating the session ID.
369
 |
369
 |
370
 | 'sess_regenerate_destroy'
370
 | 'sess_regenerate_destroy'
371
 |
371
 |
372
-|	Whether to destroy session data associated with the old session ID
373
-|	when auto-regenerating the session ID. When set to FALSE, the data
374
-|	will be later deleted by the garbage collector.
372
+|    Whether to destroy session data associated with the old session ID
373
+|    when auto-regenerating the session ID. When set to FALSE, the data
374
+|    will be later deleted by the garbage collector.
375
 |
375
 |
376
 | Other session cookie settings are shared with the rest of the application,
376
 | Other session cookie settings are shared with the rest of the application,
377
 | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
377
 | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
378
 |
378
 |
379
-*/
379
+ */
380
 $config['sess_driver'] = 'files';
380
 $config['sess_driver'] = 'files';
381
 $config['sess_cookie_name'] = 'ci_session';
381
 $config['sess_cookie_name'] = 'ci_session';
382
 $config['sess_expiration'] = 7200;
382
 $config['sess_expiration'] = 7200;
383
-$config['sess_save_path'] = NULL;
384
-$config['sess_match_ip'] = FALSE;
383
+$config['sess_save_path'] = null;
384
+$config['sess_match_ip'] = false;
385
 $config['sess_time_to_update'] = 300;
385
 $config['sess_time_to_update'] = 300;
386
-$config['sess_regenerate_destroy'] = FALSE;
386
+$config['sess_regenerate_destroy'] = false;
387
 
387
 
388
 /*
388
 /*
389
 |--------------------------------------------------------------------------
389
 |--------------------------------------------------------------------------
399
 | Note: These settings (with the exception of 'cookie_prefix' and
399
 | Note: These settings (with the exception of 'cookie_prefix' and
400
 |       'cookie_httponly') will also affect sessions.
400
 |       'cookie_httponly') will also affect sessions.
401
 |
401
 |
402
-*/
403
-$config['cookie_prefix']	= '';
404
-$config['cookie_domain']	= '';
405
-$config['cookie_path']		= '/';
406
-$config['cookie_secure']	= FALSE;
407
-$config['cookie_httponly'] 	= FALSE;
402
+ */
403
+$config['cookie_prefix'] = '';
404
+$config['cookie_domain'] = '';
405
+$config['cookie_path'] = '/';
406
+$config['cookie_secure'] = false;
407
+$config['cookie_httponly'] = false;
408
 
408
 
409
 /*
409
 /*
410
 |--------------------------------------------------------------------------
410
 |--------------------------------------------------------------------------
417
 | WARNING: This feature is DEPRECATED and currently available only
417
 | WARNING: This feature is DEPRECATED and currently available only
418
 |          for backwards compatibility purposes!
418
 |          for backwards compatibility purposes!
419
 |
419
 |
420
-*/
421
-$config['standardize_newlines'] = FALSE;
420
+ */
421
+$config['standardize_newlines'] = false;
422
 
422
 
423
 /*
423
 /*
424
 |--------------------------------------------------------------------------
424
 |--------------------------------------------------------------------------
431
 | WARNING: This feature is DEPRECATED and currently available only
431
 | WARNING: This feature is DEPRECATED and currently available only
432
 |          for backwards compatibility purposes!
432
 |          for backwards compatibility purposes!
433
 |
433
 |
434
-*/
435
-$config['global_xss_filtering'] = FALSE;
434
+ */
435
+$config['global_xss_filtering'] = false;
436
 
436
 
437
 /*
437
 /*
438
 |--------------------------------------------------------------------------
438
 |--------------------------------------------------------------------------
447
 | 'csrf_expire' = The number in seconds the token should expire.
447
 | 'csrf_expire' = The number in seconds the token should expire.
448
 | 'csrf_regenerate' = Regenerate token on every submission
448
 | 'csrf_regenerate' = Regenerate token on every submission
449
 | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
449
 | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
450
-*/
451
-$config['csrf_protection'] = FALSE;
450
+ */
451
+$config['csrf_protection'] = false;
452
 $config['csrf_token_name'] = 'csrf_test_name';
452
 $config['csrf_token_name'] = 'csrf_test_name';
453
 $config['csrf_cookie_name'] = 'csrf_cookie_name';
453
 $config['csrf_cookie_name'] = 'csrf_cookie_name';
454
 $config['csrf_expire'] = 7200;
454
 $config['csrf_expire'] = 7200;
455
-$config['csrf_regenerate'] = TRUE;
455
+$config['csrf_regenerate'] = true;
456
 $config['csrf_exclude_uris'] = array();
456
 $config['csrf_exclude_uris'] = array();
457
 
457
 
458
 /*
458
 /*
474
 | compression to work, nothing can be sent before the output buffer is called
474
 | compression to work, nothing can be sent before the output buffer is called
475
 | by the output class.  Do not 'echo' any values with compression enabled.
475
 | by the output class.  Do not 'echo' any values with compression enabled.
476
 |
476
 |
477
-*/
478
-$config['compress_output'] = FALSE;
477
+ */
478
+$config['compress_output'] = false;
479
 
479
 
480
 /*
480
 /*
481
 |--------------------------------------------------------------------------
481
 |--------------------------------------------------------------------------
487
 | reference, or convert it to the configured one timezone. See the 'date
487
 | reference, or convert it to the configured one timezone. See the 'date
488
 | helper' page of the user guide for information regarding date handling.
488
 | helper' page of the user guide for information regarding date handling.
489
 |
489
 |
490
-*/
490
+ */
491
 $config['time_reference'] = 'local';
491
 $config['time_reference'] = 'local';
492
 
492
 
493
 /*
493
 /*
501
 |
501
 |
502
 | Note: You need to have eval() enabled for this to work.
502
 | Note: You need to have eval() enabled for this to work.
503
 |
503
 |
504
-*/
505
-$config['rewrite_short_tags'] = FALSE;
504
+ */
505
+$config['rewrite_short_tags'] = false;
506
 
506
 
507
 /*
507
 /*
508
 |--------------------------------------------------------------------------
508
 |--------------------------------------------------------------------------
517
 | You can use both an array or a comma-separated list of proxy addresses,
517
 | You can use both an array or a comma-separated list of proxy addresses,
518
 | as well as specifying whole subnets. Here are a few examples:
518
 | as well as specifying whole subnets. Here are a few examples:
519
 |
519
 |
520
-| Comma-separated:	'10.0.1.200,192.168.5.0/24'
521
-| Array:		array('10.0.1.200', '192.168.5.0/24')
522
-*/
520
+| Comma-separated:    '10.0.1.200,192.168.5.0/24'
521
+| Array:        array('10.0.1.200', '192.168.5.0/24')
522
+ */
523
 $config['proxy_ips'] = '';
523
 $config['proxy_ips'] = '';

+ 6 - 6
application/config/database.php Просмотреть файл

75
 
75
 
76
 $db['default'] = array(
76
 $db['default'] = array(
77
     'dsn' => '',
77
     'dsn' => '',
78
-    'hostname' => 'office.mindden.com',
79
-    //'hostname' => "localhost",
80
-    'port' => '33306',
81
-    //'port' => '3306',
78
+    //'hostname' => 'office.mindden.com',
79
+    'hostname' => "localhost",
80
+    //'port' => '33306',
81
+    'port' => '3306',
82
     'username' => 'root',
82
     'username' => 'root',
83
-    'password' => 'mindden2017',
84
-    //'password' => '',
83
+    //'password' => 'mindden2017',
84
+    'password' => '',
85
     'database' => 'liciagbar',
85
     'database' => 'liciagbar',
86
     'dbdriver' => 'mysqli',
86
     'dbdriver' => 'mysqli',
87
     'dbprefix' => '',
87
     'dbprefix' => '',