瀏覽代碼

utilizar ddbb local

Nermosis 3 年之前
父節點
當前提交
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,5 +1,5 @@
1 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,7 +9,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
9 9
 | URL to your CodeIgniter root. Typically this will be your base URL,
10 10
 | WITH a trailing slash:
11 11
 |
12
-|	http://example.com/
12
+|    http://example.com/
13 13
 |
14 14
 | WARNING: You MUST set this value!
15 15
 |
@@ -22,7 +22,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
22 22
 | If you need to allow multiple domains, remember that this file is still
23 23
 | a PHP script and you can easily do that on your own.
24 24
 |
25
-*/
25
+ */
26 26
 $config['base_url'] = '';
27 27
 
28 28
 /*
@@ -34,7 +34,7 @@ $config['base_url'] = '';
34 34
 | something else. If you are using mod_rewrite to remove the page set this
35 35
 | variable so that it is blank.
36 36
 |
37
-*/
37
+ */
38 38
 $config['index_page'] = 'index.php';
39 39
 
40 40
 /*
@@ -51,8 +51,8 @@ $config['index_page'] = 'index.php';
51 51
 | 'PATH_INFO'      Uses $_SERVER['PATH_INFO']
52 52
 |
53 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,7 +63,7 @@ $config['uri_protocol']	= 'REQUEST_URI';
63 63
 | For more information please see the user guide:
64 64
 |
65 65
 | https://codeigniter.com/user_guide/general/urls.html
66
-*/
66
+ */
67 67
 $config['url_suffix'] = '';
68 68
 
69 69
 /*
@@ -75,8 +75,8 @@ $config['url_suffix'] = '';
75 75
 | there is an available translation if you intend to use something other
76 76
 | than english.
77 77
 |
78
-*/
79
-$config['language']	= 'english';
78
+ */
79
+$config['language'] = 'english';
80 80
 
81 81
 /*
82 82
 |--------------------------------------------------------------------------
@@ -88,7 +88,7 @@ $config['language']	= 'english';
88 88
 |
89 89
 | See http://php.net/htmlspecialchars for a list of supported charsets.
90 90
 |
91
-*/
91
+ */
92 92
 $config['charset'] = 'UTF-8';
93 93
 
94 94
 /*
@@ -99,8 +99,8 @@ $config['charset'] = 'UTF-8';
99 99
 | If you would like to use the 'hooks' feature you must enable it by
100 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,7 +113,7 @@ $config['enable_hooks'] = FALSE;
113 113
 | https://codeigniter.com/user_guide/general/core_classes.html
114 114
 | https://codeigniter.com/user_guide/general/creating_libraries.html
115 115
 |
116
-*/
116
+ */
117 117
 $config['subclass_prefix'] = 'MY_';
118 118
 
119 119
 /*
@@ -124,19 +124,19 @@ $config['subclass_prefix'] = 'MY_';
124 124
 | Enabling this setting will tell CodeIgniter to look for a Composer
125 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 129
 | Or if you have your vendor/ directory located somewhere else, you
130 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 134
 | For more information about Composer, please visit http://getcomposer.org/
135 135
 |
136 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,7 +157,7 @@ $config['composer_autoload'] = FALSE;
157 157
 |
158 158
 | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
159 159
 |
160
-*/
160
+ */
161 161
 $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
162 162
 
163 163
 /*
@@ -181,8 +181,8 @@ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
181 181
 | this feature is enabled, since CodeIgniter is designed primarily to
182 182
 | use segment based URLs.
183 183
 |
184
-*/
185
-$config['enable_query_strings'] = FALSE;
184
+ */
185
+$config['enable_query_strings'] = false;
186 186
 $config['controller_trigger'] = 'c';
187 187
 $config['function_trigger'] = 'm';
188 188
 $config['directory_trigger'] = 'd';
@@ -198,8 +198,8 @@ $config['directory_trigger'] = 'd';
198 198
 | WARNING: This feature is DEPRECATED and currently available only
199 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,21 +209,21 @@ $config['allow_get_array'] = TRUE;
209 209
 | You can enable error logging by setting a threshold over zero. The
210 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 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 222
 | For a live site you'll usually only enable Errors (1) to be logged otherwise
223 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,7 +233,7 @@ $config['log_threshold'] = 0;
233 233
 | Leave this BLANK unless you would like to set something other than the default
234 234
 | application/logs/ directory. Use a full server path with trailing slash.
235 235
 |
236
-*/
236
+ */
237 237
 $config['log_path'] = '';
238 238
 
239 239
 /*
@@ -247,7 +247,7 @@ $config['log_path'] = '';
247 247
 |
248 248
 | Note: Leaving it blank will default to 'php'.
249 249
 |
250
-*/
250
+ */
251 251
 $config['log_file_extension'] = '';
252 252
 
253 253
 /*
@@ -259,7 +259,7 @@ $config['log_file_extension'] = '';
259 259
 |
260 260
 | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
261 261
 |            integer notation (i.e. 0700, 0644, etc.)
262
-*/
262
+ */
263 263
 $config['log_file_permissions'] = 0644;
264 264
 
265 265
 /*
@@ -270,7 +270,7 @@ $config['log_file_permissions'] = 0644;
270 270
 | Each item that is logged has an associated date. You can use PHP date
271 271
 | codes to set your own date formatting
272 272
 |
273
-*/
273
+ */
274 274
 $config['log_date_format'] = 'Y-m-d H:i:s';
275 275
 
276 276
 /*
@@ -281,7 +281,7 @@ $config['log_date_format'] = 'Y-m-d H:i:s';
281 281
 | Leave this BLANK unless you would like to set something other than the default
282 282
 | application/views/errors/ directory.  Use a full server path with trailing slash.
283 283
 |
284
-*/
284
+ */
285 285
 $config['error_views_path'] = '';
286 286
 
287 287
 /*
@@ -292,7 +292,7 @@ $config['error_views_path'] = '';
292 292
 | Leave this BLANK unless you would like to set something other than the default
293 293
 | application/cache/ directory.  Use a full server path with trailing slash.
294 294
 |
295
-*/
295
+ */
296 296
 $config['cache_path'] = '';
297 297
 
298 298
 /*
@@ -303,15 +303,15 @@ $config['cache_path'] = '';
303 303
 | Whether to take the URL query string into consideration when generating
304 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,7 +323,7 @@ $config['cache_query_string'] = FALSE;
323 323
 |
324 324
 | https://codeigniter.com/user_guide/libraries/encryption.html
325 325
 |
326
-*/
326
+ */
327 327
 $config['encryption_key'] = '';
328 328
 
329 329
 /*
@@ -333,57 +333,57 @@ $config['encryption_key'] = '';
333 333
 |
334 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 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 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 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 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 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 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 376
 | Other session cookie settings are shared with the rest of the application,
377 377
 | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
378 378
 |
379
-*/
379
+ */
380 380
 $config['sess_driver'] = 'files';
381 381
 $config['sess_cookie_name'] = 'ci_session';
382 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 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,12 +399,12 @@ $config['sess_regenerate_destroy'] = FALSE;
399 399
 | Note: These settings (with the exception of 'cookie_prefix' and
400 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,8 +417,8 @@ $config['cookie_httponly'] 	= FALSE;
417 417
 | WARNING: This feature is DEPRECATED and currently available only
418 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,8 +431,8 @@ $config['standardize_newlines'] = FALSE;
431 431
 | WARNING: This feature is DEPRECATED and currently available only
432 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,12 +447,12 @@ $config['global_xss_filtering'] = FALSE;
447 447
 | 'csrf_expire' = The number in seconds the token should expire.
448 448
 | 'csrf_regenerate' = Regenerate token on every submission
449 449
 | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
450
-*/
451
-$config['csrf_protection'] = FALSE;
450
+ */
451
+$config['csrf_protection'] = false;
452 452
 $config['csrf_token_name'] = 'csrf_test_name';
453 453
 $config['csrf_cookie_name'] = 'csrf_cookie_name';
454 454
 $config['csrf_expire'] = 7200;
455
-$config['csrf_regenerate'] = TRUE;
455
+$config['csrf_regenerate'] = true;
456 456
 $config['csrf_exclude_uris'] = array();
457 457
 
458 458
 /*
@@ -474,8 +474,8 @@ $config['csrf_exclude_uris'] = array();
474 474
 | compression to work, nothing can be sent before the output buffer is called
475 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,7 +487,7 @@ $config['compress_output'] = FALSE;
487 487
 | reference, or convert it to the configured one timezone. See the 'date
488 488
 | helper' page of the user guide for information regarding date handling.
489 489
 |
490
-*/
490
+ */
491 491
 $config['time_reference'] = 'local';
492 492
 
493 493
 /*
@@ -501,8 +501,8 @@ $config['time_reference'] = 'local';
501 501
 |
502 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,7 +517,7 @@ $config['rewrite_short_tags'] = FALSE;
517 517
 | You can use both an array or a comma-separated list of proxy addresses,
518 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 523
 $config['proxy_ips'] = '';

+ 6 - 6
application/config/database.php 查看文件

@@ -75,13 +75,13 @@ $query_builder = true;
75 75
 
76 76
 $db['default'] = array(
77 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 82
     'username' => 'root',
83
-    'password' => 'mindden2017',
84
-    //'password' => '',
83
+    //'password' => 'mindden2017',
84
+    'password' => '',
85 85
     'database' => 'liciagbar',
86 86
     'dbdriver' => 'mysqli',
87 87
     'dbprefix' => '',